For multiple ordered lists you can build a single Max heap out of elements from all this list and Process as its done in heapsort
On Wed, Jun 9, 2010 at 9:14 PM, Rohit Saraf <[email protected]>wrote: > I had answered this question(of multiple lists) 2 or three days back. > Go into the archive if u wanna see :P > -------------------------------------------------- > Rohit Saraf > Second Year Undergraduate, > Dept. of Computer Science and Engineering > IIT Bombay > http://www.cse.iitb.ac.in/~rohitfeb14<http://www.cse.iitb.ac.in/%7Erohitfeb14> > > > > On Wed, Jun 9, 2010 at 6:52 PM, Raj N <[email protected]> wrote: > >> But what if the same same problem is extended for multiple lists. As the >> individual lists have already been sorted, is there any efficient way or any >> other sorting algo which exploits this fact. >> >> >> On Tue, Jun 8, 2010 at 10:56 PM, divya jain <[email protected]>wrote: >> >>> merging as in merge sort. >>> >>> On 8 June 2010 19:59, Raj N <[email protected]> wrote: >>> >>>> What is the most efficient way of combining 2 separate ordered list >>>> into a single ordered list ? >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Algorithm Geeks" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]<algogeeks%[email protected]> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/algogeeks?hl=en. >>>> >>>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Algorithm Geeks" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<algogeeks%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<algogeeks%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
