GATE CSE
First time here? Checkout the FAQ!
x
+2 votes
791 views
In Optimal merge pattern when do we get more than one tree(Sub trees) when creating a merge pattern?
Can you explain/draw optimal merge tree for n=7, <8,15,3,10,20,2,30>
asked in Algorithms by Loyal (3.4k points)   | 791 views

1 Answer

+3 votes
Best answer
Caption

 

answered by Active (1.1k points)  
selected by
Thanks
if we find that there is a two new elements are available in the array and these  both elements are less the the node (to which we are going to add new element) then we will going for the other tree.


Top Users Sep 2017
  1. Habibkhan

    8796 Points

  2. rishu_darkshadow

    3572 Points

  3. Warrior

    2914 Points

  4. Arjun

    2840 Points

  5. A_i_$_h

    2550 Points

  6. manu00x

    2268 Points

  7. nikunj

    1990 Points

  8. Bikram

    1874 Points

  9. makhdoom ghaya

    1820 Points

  10. SiddharthMahapatra

    1718 Points


26,346 questions
33,928 answers
80,525 comments
31,231 users