I’m a very beginner in C. However, I need a program that solves a problem for me. How can I do the following?
I need a tree structure. This is not traditional tree as every leaf can have various many leafs. Therefore every leaf should contain a linked list which contains the children of the leaf. In every link there is a char[][]-array and some int variables which tells how good a leaf is. And then I have to do some best-first search to find the best char[][]-array and output it. If I found a suitable array, I can stop the tree walk.
Me, I’d keep the linked list sorted at insertion time, so that you can always return the first list item in a tree node.
Something along the lines of