What operation does the following algorithm describe?Algorithm aHeapAlgorithm (heap, newNode) if (newNode not the root) set parent to parent of newNode if (newNode key > parent key) exchange newNode and parent) aHeapAlgorithm (heap, parent) end if end ifend aHeapAlgorithm
A. build heap
B. insert heap
C. reheap up
D. reheap down
Answer: C
You might also like to view...
What will be printed after the following code is executed?
``` for (int number = 5; number <= 15; number +=3) System.out.print(number + ", "); ``` a. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, b. 5, 8, 11, 14, 17, c. 5, 8, 11, 14 d. This is an invalid for statement.
If a remote wireless bridge is set to ____, it can only transmit to another bridge in root mode.
A. access point mode B. root mode C. nonroot mode D. repeater mode
When using Skype, a(n) ________ indicator next to your name shows that you are online.
a. blue b. red c. green d. yellow
The conversion of the analog incoming signal to the initial value stored in the module is called the ____________________ data.
Fill in the blank(s) with the appropriate word(s).