subject
Mathematics, 10.03.2020 07:44 vincentmoine

Problem 1. Consider an array of size nine with the numbers in the following order 40, 20, 80, 60, 30, 90, 10, 70, 50. (a) Form the heap using the algorithm described in class. Show the heap as a tree. Show the heap as an array. Exactly how many comparisons did heap creation use? (b) Start with the heap created in Part (a). Show the array after each element sifts down during the Finish phase. How many comparisons does each sift use? What is the total number of comparisons after heap creation?

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 20.06.2019 18:04
For the equation below, x is the input and y is the output. y = -4x + 3 if the input is -8, then the output is
Answers: 1
question
Mathematics, 21.06.2019 14:50
Need to increase the numbers of customers i talk to daily by 20% how many customers do i need to talk to if i talk to a average of 8 customers per hour during an 8 hour shift
Answers: 2
question
Mathematics, 21.06.2019 16:00
In the diagram, the ratio of ab to ae is (1/2) . what is the ratio of the length of to the length of ?
Answers: 3
question
Mathematics, 21.06.2019 16:30
Hi my sisters and brothers can tell me the answer because i don’t understand the question
Answers: 1
You know the right answer?
Problem 1. Consider an array of size nine with the numbers in the following order 40, 20, 80, 60, 30...
Questions
question
Mathematics, 13.11.2020 01:30
question
Mathematics, 13.11.2020 01:30
question
History, 13.11.2020 01:30
question
Mathematics, 13.11.2020 01:30
question
Mathematics, 13.11.2020 01:30
question
Arts, 13.11.2020 01:30
Questions on the website: 13722362