I work on the tree where each node has N children.
In my case each node has a unique identifier. i want to deduce an identifier of father node from the child identifier.
So, we can add an information on child identifier to deduce that for example: if the father's node is "123", the child node is "123.3" and then we deduce that the father of (123.3) is "123". but there is a problem where we have a large tree, then a node identifier can be "18.104.22.168.2.4.5...", not be a good solution.
What would be the best approach to generate a child identifier with a simple number and then deduce the father identifier (considering that it is unique in the entire tree)?