Life as an N-ary Tree


Our life is like an n-ary tree.

Each node of n-ary tree can have n or fewer child nodes. In case of our life, every decision point is a node and all possible options or choices which can be made at that decision point are its child nodes. For example: a career choice is a node, which may have various child nodes or options like engineering, medicine, journalism, law etc. Similarly, it can also have minor day to day decision nodes like restaurants to have dinner at and in this case various possible restaurants will be it’s child nodes. Thus this design can handle all types of decisions and its choices as it’s children.

Also if a same decision is to be made at multiple times in one’s life, then in each case it will be a new instance with same or different choices as children. For example one may wish to make a career change multiple times in life and each time there will be a new decision point with new children.

Thus there are no back-links or backtracking possible in our n-ary tree of life. “Life is a one way and forward is the way to go!” After a choice has been made about a decision, it’s a line in stone, which can never be changed. We can always learn from the choices made in past but we can never undo or delete our choices. NEVER. One has to live with the decisions made in the past. It’s good to learn lessons and make better decisions in future.

Next, lets have a look at the traversal strategy of the n-ary tree of life. Only Depth First Search (DFS) is available. It means that we need to make a decision from all the choices. Breadth First Search (BFS) in which case all the options are explored to the paths they lead and then making an informed decision is not available. For example: It would have been great if we could try multiple career choices for a while and then make a final decision. But it is not so. Every decision is final in the n-ary tree of life and it also has its consequences on the choices available and the decisions which can be made in future. In this case “wisdom” is to make the best possible decision from all available choices based on our limited knowledge of choices and it’s repercussions.

Every choice has a pay-off or value associated with it. It is not known to us but again we can make a guess about it based on our “wisdom”. The basic strategy is to choose the path of life which has the maximum pay-off. However given that life offers only Depth First Search and that too without backtracking, it’s really difficult although not impossible to find it. Some of the paths may be close to best, some worst and some mediocre.

Also as in case of n-ary trees, greedy strategy may not be the best possible strategy. Firstly it’s not possible to find the best choice out of all¬†available choices. And secondly even if the best choice is made, the current best choice may not necessarily be on the best or good paths of life. Similarly, sometimes even a low-paying current choice may actually lie of the better paths of life. Thus we should not to get disheartened by the current low pay-off choice as it may possibly lie on on of the better paths. Always have hope of making better choices in future which lead to better paths.

So actually, our life is not about the road not taken, it’s about the decisions made at every decision point in our life. We are the controllers of our n-ary trees of life. It’s always in our hands to make a decision out of all available choices. Let’s be brave to accept and face the decisions we have taken in past. More importantly, let’s gain the wisdom, to take the right decisions in our lives which maximizes the overall pay-off and leads to the best possible path in life.

P.S. –