if we have 1 2 5 7 3 4 6
    can you explain how to do in place merge... the elements are in an array

    ?







On Sun, Jul 11, 2010 at 10:29 AM, jalaj jaiswal
<jalaj.jaiswa...@gmail.com>wrote:

> its easy
>  suppose the array is  12345 4321 2345 4321
> it increases then dcreases then increases and decreases again
>
> first of all in a single scan find the location of decreasing sub-arrays
> here it is 5 to 8 and 13-16
> and reverse the decreasing array.
> so the array becomes
> 12345 1234 2345 1234
> now do simple inplace merging of sorted arrays.
>
> On Sun, Jul 11, 2010 at 9:08 PM, srikanth sg <srikanthini...@gmail.com>wrote:
>
>>
>> thr is no search option there ..
>> if u can gimme the link that will be good ..
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algoge...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> With Regards,
> Jalaj Jaiswal
> +919026283397
> B.TECH IT
> IIIT ALLAHABAD
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> 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 algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to