51.
The procedure given below is used to maintain min-order in the min heap. Find out the missing statements, represented as X.
procedure TrickleDownMin(i)
	 if A[i] has children then 
		m := index of smallest of the children 
		        or grandchildren (if any) of A[i] 
		if A[m] is a grandchild of A[i] then
			 if A[m] < A[i] then 
				swap A[i] and A[m]
				X: _______________________
					____________________
			 endif 	
			TrickleDownMin(m)
		 endif 
		else //{A[m] is a child of A[i]} 
			if A[m] << A[i] then 
				swap A[i] and A[m] 
		endif
	 endif

55.
The main distinguishable characterstic of a binomial heap from a binary heap is that

Read More Section(Heaps)

Each Section contains maximum 100 MCQs question on Heaps. To get more questions visit other sections.