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...
Case Based Critical ThinkingCase 1You are in the process of gathering images for a website you are creating. Answer the following questions about using images on the website. Which of the following type of images can be used on your website free and without restriction?
A. Stock photos B. Clip art images C. Public domain D. Images already published on the web
An example of an event that might be registered is the "Press the enter key."
Answer the following statement true (T) or false (F)
Objects on lower layers are not visible because which of the following is set to 100% by default?
A. Brightness B. Clarity C. Color D. Opacity
Given that s = 5, t = 2, p = 5, and q = 6 what will be the value of m in the following equation? (Note: assume that all variables are declared as integers.) double m = s % t + q % p;
A. 3.7 B. 2.0 C. 0.7 D. 3.0