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, 21.06.2019 20:00
Which of the following is not a subset of {1,2,3}?
Answers: 2
question
Mathematics, 21.06.2019 21:10
Given: lines a and b are parallel and line c is a transversal. prove: 2 is supplementary to 8 what is the missing reason in the proof? statement reason 1. a || b, is a transv 1. given 2. ∠6 ≅ ∠2 2. ? 3. m∠6 = m∠2 3. def. of congruent 4. ∠6 is supp. to ∠8 4. def. of linear pair 5. ∠2 is supp. to ∠8 5. congruent supplements theorem corresponding angles theorem alternate interior angles theorem vertical angles theorem alternate exterior angles theorem
Answers: 3
question
Mathematics, 21.06.2019 23:00
Someone answer this asap for the length, in feet, of a rectangular rug is represented by the expression 5x² + 2x. the width, in feet, is represented by the expression 3x². which expression represents the perimeter, in feet, of the rug? a. 8x² + 2x b. 8x² + 4x c. 16x² + 2x d. 16x² + 4x
Answers: 2
question
Mathematics, 21.06.2019 23:30
Can someone me with my math problem pls my teacher is on my back about this
Answers: 2
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
History, 07.10.2020 01:01
question
Biology, 07.10.2020 01:01
question
Chemistry, 07.10.2020 01:01
question
English, 07.10.2020 01:01
question
Mathematics, 07.10.2020 01:01
Questions on the website: 13722361