subject

Problem 2: heaps.

min-heap: construct a min_heap from the following set of integers. remember to use successive adds to arrive at your final heap. (you do not need to show all the intermediate steps, however, showing those can in case you make an error somewhere down the line.)

1, 19, 7, 5, 6, 42, 21, 13, 56, 78, 29, 3, 14

remove_min: show the result of two successive remove_min operations on the heap formed in part a.
perform the following operations on the min_heap: add(45)

as you must have noticed the set of integers provided to both the bst and heap problems were the same. however, the structures formed are vastly different. what can you say about the relative heights (and therefore the worst-case cost of operations) of the bst as compared to the heap? what conclusions are you able to draw regarding the relative efficiency of the 2 data structures? (remember that log213 = 3.7)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
You know the right answer?
Problem 2: heaps.

min-heap: construct a min_heap from the following set of integers. r...
Questions
question
Social Studies, 17.10.2019 14:10
question
Biology, 17.10.2019 14:10
question
Social Studies, 17.10.2019 14:10
question
Social Studies, 17.10.2019 14:10