hw7.pdf

# hw7.pdf - ECE368 Fall 2017 Homework 7 IMPORTANT Do NOT...

• Homework Help
• 5

This preview shows page 1 - 2 out of 5 pages.

ECE368 Fall 2017 Homework 7 IMPORTANT: Do NOT leave your name or Purdue ID on this homework. Write your homework security number at the TOP of EACH page. Read and sign the Academic Honesty Statement that follows: “In signing this statement, I hereby certify that the work on this exercise is my own and that I have not copied the work of any other student while completing it. I understand that, if I fail to honor this agreement, I will receive a score of zero for this exercise and will be subject to further disciplinary action.” Homework security number: Please acknowledge any people who have helped you with this homework. Question Credits 1 2 3 1

Subscribe to view the full document.

1. (30 points) A k-ary max-heap is a generalization of a binary max-heap in which each node in the heap has at most k children instead of two. In other words, it is an almost complete k-ary tree in which every node satisfies the max-heap property. (a) Given the array A[12] = [S, O, R, T, I, N, G, I, S, F, U, N] , show how you will build the max-heap for k = 3 by inserting the elements of array A in succession. Show the snap-
You've reached the end of this preview.
• Fall '08
• Staff

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern