Construct a binary tree for the numbers 3,4,5,6,7,8,9. Then for each number input taken at runtime, show the number of iterations required to reach that node from root node containing the target number. (10) 2. Construct a binary tree with the following keys as strings a. Desktop, CSU, Spring2022, CIS260, CIS 265, Vacation, Hackathon Your first task is to put this data in an array of string and search for a folder name. Let us say that the folder name is “Hackathon”. Using the array subscript, how many iterations does it take to find the folder? (10) Next, convert this array into a Binary tree and arrange in alphabetical order, and try to find the same folder. List the number of Iterations.(10) Bonus: Now replace the folder names with file contents. So you need a File class where there is a filename variable and file content variable, both should be strings. So the node would have file object instead of just names. So you have an array of File class objects, so the binary tree will have file names and they will have pointers to indexes in the array (3) (activity done In Java code please)

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

1. Construct a binary tree for the numbers 3,4,5,6,7,8,9. Then for each number input taken at runtime, show the number of iterations required to reach that node from root node containing the target number. (10) 2. Construct a binary tree with the following keys as strings a. Desktop, CSU, Spring2022, CIS260, CIS 265, Vacation, Hackathon Your first task is to put this data in an array of string and search for a folder name. Let us say that the folder name is “Hackathon”. Using the array subscript, how many iterations does it take to find the folder? (10) Next, convert this array into a Binary tree and arrange in alphabetical order, and try to find the same folder. List the number of Iterations.(10) Bonus: Now replace the folder names with file contents. So you need a File class where there is a filename variable and file content variable, both should be strings. So the node would have file object instead of just names. So you have an array of File class objects, so the binary tree will have file names and they will have pointers to indexes in the array (3) (activity done In Java code please)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 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