Insert elements 41, 38, 31, 12, 11, 50, 55 and 22 (one by one) into an original empty BST tree. Below are a number of st

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Insert elements 41, 38, 31, 12, 11, 50, 55 and 22 (one by one) into an original empty BST tree. Below are a number of st

Post by answerhappygod »

Insert elements 41, 38, 31, 12, 11, 50, 55 and 22 (one by one)
into an original empty BST tree.
Below are a number of statements about the resulting tree.
Indicate which of these is correct:
A. The sequence of the elements according to "in order" is 11,
12, 22, 31, 38, 41, 50, 55
B. The sequence of the elements according to "preorder" is 41,
38, 31, 12, 11, 22, 50, 55
C. The sequence of the elements according to "preorder" is 11,
22, 12, 31, 38, 55, 50, 41
D. The sequence of the elements according to "mail order" is 11,
22, 12, 31, 38, 55, 50, 41
Correct answer is:
Only statement A is correct.
Only statements A and D are correct.
Only statements A and C are correct.
Only statements A, B and D are correct.
Only statements A, C and D are correct.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply