Question
Start theTreesapplet . 2 The purpose of this exercise is to build a binary search tree but choosing different orders for inserting the nodes. 3
Start theTreesapplet
. 2 The purpose of this exercise is to build a binary search tree but choosing different orders for inserting the nodes.
3 Type in the following flower names in the given order. Take a screenshot when done. Aster Bluebell Coreopsis Daisy Echinacea Fern Gladiolus
4 What does your tree look like? Describe it in words below.
5 What generalization can you make about inserting elements from a sorted list into a binary search tree?
6 Clear the tree and insert the flowers in some other order so that the tree is more balanced .Take a screenshot. Also write down the exact order that you used to get it to look this way
. 7 Is there more than one order that you could have used that would have created the more balanced tree ? If so, why are multiple different tree shapes possible
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started