ACTIVITY 2: HEAPSORT The idea is that the imported array-to-sort will have to be an array of DSAHeapEntry objects, heapSort() will need to replace its heap with this array. • Then you can use the pseudo code in the lecture notes. Write a good test harness using either a random list of varying size such as found in the SortsTest, or read in the numbers from the 7000 names file.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter18: Stacks And Queues
Section: Chapter Questions
Problem 16PE: The implementation of a queue in an array, as given in this chapter, uses the variable count to...
icon
Related questions
Question
ACTIVITY 2: HEAPSORT
The idea is that the imported array-to-sort will have to be an array of
DSAHeapEntry objects, heapSort() will need to replace its heap with this array.
• Then you can use the pseudo code in the lecture notes.
Write a good test harness using either a random list of varying size such as found in the
SortsTest, or read in the numbers from the 7000 names file.
Transcribed Image Text:ACTIVITY 2: HEAPSORT The idea is that the imported array-to-sort will have to be an array of DSAHeapEntry objects, heapSort() will need to replace its heap with this array. • Then you can use the pseudo code in the lecture notes. Write a good test harness using either a random list of varying size such as found in the SortsTest, or read in the numbers from the 7000 names file.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning