Hi,
I need to use a tree structure to represent data divided in groups and
I'm thinking about representing it with a binary tree:
left child - sibling
right child - child
that's good for traversing, etc.
My doubt arises when I need to reference the parent of a node.
The only way I can think of is adding a field to each node pointing to
the parent
Any other suggestions?
Would you use a binary tree or stick with a general tree? Or maybe
another data structure like a list of lists?
Enrico