Thursday, July 30, 2009

Tree structure programming question help?

Hi,


I am having trouble figuring this question out. Any help would be greatly appriciated. THanks





Give an O(n) time algorithm for computing the depth of all the nodes of a tree T, where n is the number of nodes of T.

Tree structure programming question help?
O(logn) is the time complexity of trees

fresh flower

No comments:

Post a Comment