Suppose that we have implemented a priority queue by storing the-03454
Suppose that we have implemented a priority queue by storing the items in a heap. We are now executing a reheapification downward and the out-of-place node has priority of 42. The nodes parent has a priority of 72, the left child has priority 52 and the nodes right child has priority 62. Which statement best describes the status of the reheapification.
This multiple choice question (MCQ) is related to the book/course vu cs301 Data Structures. It can also be found in vu cs301 Final Term - Quiz No.15.
Suppose that we have implemented a priority queue by storing the items in a heap. We are now executing a reheapification downward and the out-of-place node has priority of 42. The nodes parent has a priority of 72, the left child has priority 52 and the nodes right child has priority 62. Which statement best describes the status of the reheapification.
The reheapification is done.
The next step will interchange the two children of the out-of-place node.
The next step will swap the out-of-place node with its parent.
The next step will swap the out-of-place node with its left child.