Question
C++ Binary Search Trees C++
Consider the BST in the previous question, but before the insert of node 31. Here it is again: Sa 25 What is the BF of node 5

PART B

Now We Insert node 20.
Is the tree balanced?
If not, what is the point of Imbalance and BF of that node?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Part A

1-0 = 1 50 1-0=1 30 60 (25 2 Bf of node 50 = 1 2 Tree is balanced (BF is O/11-1) 2 Theres no imbalance.

Part B

요 30 60 25 inserted 20 no de 20 Tree isnt balanced Imbalance is at node 30 there. BF is 2

Please up vote

Add a comment
Know the answer?
Add Answer to:
C++ Binary Search Trees C++ PART B Now We Insert node 20. Is the tree balanced?...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT