00:01
Hello students, in this problem we need to draw the binary sets tree.
00:04
The following numbers were inserted into the tree in the following order that is 30, 12, 10, 40, 50, 45, 60, 70.
00:13
The first sum i take 30 as the initial node.
00:20
Then we compare the next number 12 to the root node and since 12 is smaller than 30, so we added it as the left child of 30.
00:36
Next we compare 10 to 30.
00:45
Since it is smaller than 30 and 12, so we added it as the left child of 12.
01:07
Then we compare 40 to 30 and since it is larger, so we added it as the right child of 30.
01:32
Next we compare 50 to 30.
01:35
Since it is larger, so we added with the right child of 40.
01:49
Next we compare 45 to 30 which is larger than 30 and 12 but less than 50.
02:01
So we added as the left child of 50.
02:08
Finally we compare 60 to 30 which is greater than all the values...