subject

1. the preorder traversal of a binary tree is “a b c d e f g h i,” while its inorder traversal is “c d e b f a i h g.” draw the corresponding the tree.

2. for the set of keys {1,4,5,10,16,17,21} give the sequence of key insertions so the final tree has height 2, 3, 4, 5, and 6, respectively. how many comparisons need to be performed by the operation lookup(21) in each of these cases?

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:00, Gaby702
Which is produced by the endocrine system to control how cells and organs function
Answers: 2
image
Computers and Technology, 22.06.2019 13:00, olorteguimikie
Which part of the cpu accepts data?
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, zay179
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
image
Computers and Technology, 23.06.2019 18:20, Blossom824
What is wi-fi infrastructure? a metropolitan area network that uses radio signals to transmit and receive data a communications technology aimed at providing high-speed wireless data over metropolitan area networks a means by which portable devices can connect wirelessly to a local area network, using access points that send and receive data via radio waves includes the inner workings of a wi-fi service or utility, including the signal transmitters, towers, or poles and additional equipment required to send out a wi-fi signal
Answers: 2
You know the right answer?
1. the preorder traversal of a binary tree is “a b c d e f g h i,” while its inorder traversal is “c...

Questions in other subjects:

Konu
Health, 29.10.2020 23:00
Konu
Mathematics, 29.10.2020 23:00
Konu
Mathematics, 29.10.2020 23:00