wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

How many trees can be formed using 3 nodes

A
4
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
5
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
6
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
7
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B 6

6 trees can be formed using 3 nodes.

The root node has two children, each of which is an ordered tree with two elements. There are two ways we could order the two remaining nodes. So there are 3*2 = 6 possible ordered trees with three nodes given that the root node has two children.

A tree is a widely used data structure implementing this ADT—that simulates a hierarchical tree structure, with a root value and sub trees of children with a parent node, represented as a set of linked nodes.



flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
The Flower
BIOLOGY
Watch in App
Join BYJU'S Learning Program
CrossIcon