For the set of numbers {14, 7, 12, 20, 2, 18, 17, 10, 3, 5, 16, 19, 8} 1. Draw a Binary Search Tree diagram for the set of numbers. a) Send me a diagram of what the binary tree looks like. If you don’t have a way of drawing it using your PC, draw it on a piece of paper and take a picture of it. b) Fill in the array structures leftPtr & rightPtr (see below), based on the diagram of your binary tree. leftPtr and rightPtr store the address of the child node to the left and right. In my example, I used 12 as my root. You can use or another number from the set if you want. I did a couple as an example, you do the rest.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

For the set of numbers {14, 7, 12, 20, 2, 18, 17, 10, 3, 5, 16, 19, 8}
1. Draw a Binary Search Tree diagram for the set of numbers.
a) Send me a diagram of what the binary tree looks like. If you don’t have a way of
drawing it using your PC, draw it on a piece of paper and take a picture of it.
b) Fill in the array structures leftPtr & rightPtr (see below), based on the diagram of your
binary tree. leftPtr and rightPtr store the address of the child node to the left and right.
In my example, I used 12 as my root. You can use or another number from the set if
you want. I did a couple as an example, you do the rest.
2. Generate pseudocode for a function that will find the minimum value in the tree, in the most
efficient manner (i.e. not linear search)
3. Generate pseudocode for a function that will find the maximum value in the tree, in the most
efficient manner (i.e. not linear search)
Send to me in a MS Word document if possible. There are (4) deliverables (1a, 1b, 2 & 3)

Send to me in a MS Word document if possible. There are (4) deliverables (1a, 1b, 2 & 3).
Array Structures: 3 arrays (value, leftPtr, rightPtr)
root = 2
address value
leftPtr rightPtr
14
1
7
12
3
20
4
2.
18
17
7
10
8.
4
null
10
16
11
19
12
8.
Transcribed Image Text:Send to me in a MS Word document if possible. There are (4) deliverables (1a, 1b, 2 & 3). Array Structures: 3 arrays (value, leftPtr, rightPtr) root = 2 address value leftPtr rightPtr 14 1 7 12 3 20 4 2. 18 17 7 10 8. 4 null 10 16 11 19 12 8.
Expert Solution
Step 1

Computer Engineering homework question answer, step 1, image 1

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY