How many different trees are possible with 10 nodes ?
Answer / phool chand
1014
For example, consider a tree with 3 nodes(n=3), it will have the maximum combination of 5 different (ie, 23 - 3 = 5) trees.
In general: If there are n nodes, there exist 2n-n different trees.
Is This Answer Correct ? | 0 Yes | 0 No |
Why do we use arrays?
Write a Program for Linked list manipulation.
How would you use qsort() function to sort the name stored in an array of pointers to string?
How do we find duplicate elements in an array?
What is data structure and why it is important?
How do you sort an arraylist?
What happens when arraylist is full?
What is the type of the algorithm used in solving the 8 Queens problem?
How do you define a set?
What are the types of collision resolution strategies in open addressing?
What are the types of queues?
What is different between array and list?