Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Trees are more abstract than lists, queues and stacks. You don't ordinarily find people using them in ordinary life but, can you think of things

Trees are more abstract than lists, queues and stacks. You don't ordinarily find people using them in ordinary life but, can you think of things that are stored in a tree? Your family history perhaps? What kind of a tree is that?

Using a binary tree describe what would go in each of parts (root, sub-tree, leaf, child and node) if you stored your family history in the tree. Start with your great grandparents and work down to your place in the tree. How many levels does this tree have?

Very often simple arithmetic can be stored in a binary tree (a + b = c). What are the three ways to traverse such a tree? If you wrote what you found at each node what would you write if you traversed the tree in order? Post order? Pre order?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions