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 |
What is the difference between static and dynamic data?
How would you dynamically allocate a one-dimensional and two-dimensional array of integers?
Does hashmap allow duplicate keys?
What are sorting algorithms used for?
What is frozenset?
Can you sort a string?
Why is sorting necessary?
What is the idea behind splaying?
Define non-terminal nodes in a tree?
what is the difference between dynamic as well as non - dynamic data structures.
How many types of linked list exist?
Are lists mutable?