I want to Know how one can convert a tree into an array and find Sub-tree of any node…I have gone through one of the blog which discuss about it but not able to get What are 3 arrays discover,begin ,and end. The code which describe about Starting time i.e IN array and finishing time i.e OUT array ,I am familiar with that. It will be great help if someone explain me his method to convert a tree to an array or explain what the 3 arrays are used for with an example.
here is the blog.Thanks in Advance !!!