Clicker Questions
Question 1: Is the tree below a binary heap? Please answer “Yes” or “No”.
Question 2: When the following binary heap is store in a vector, what is the index of the number 65?
Question 3: When the following binary heap is store in a vector, what is the index of the number 84?
Question 4: If the value 33 is pushed onto the heap, in what index of the vector will be stored?
Question 5: In the following heap, we call Pop()
. What will be the index of the value 22 in the vector version of the heap, when Pop()
is done?