Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


odd even mergesort (Batchers mergesort)

saspjssaspjs Member Posts: 3
Can anyone directed me to a sample code of Batchers odd even mergesort.
I am completely stuck after the mergesort function and need help with the recursive merge portion. This is what I have:

void mergesort(int array[], int F, int L)
int mid;
mid = (F+L)/2;
mergesort(array, F, mid);
mergesort(array, mid+1, L);

//merge the two halves
merge(array, F, mid, L);


  • Shawn CarterShawn Carter Member Posts: 0

    _____ // // free video tutorials and ebooks about ( Visual Basic .NET, Perl, C++, Visual Basic, Java, Scratch, Assembly, R, Python, PHP, PL/SQL, Ruby, JavaScript, Delphi, Objective-C, C, C#, Go, MATLAB, Swift Fortran, Crystal, ML, Lisp, Scala, Julia, VBScript, Ada, FoxPro, Clojure, COBOL, Awk, Hack, Erlang, Rust, F#, Kotlin, Bash, LabVIEW, ABAP, Transact-SQL, D, Prolog, SAS, Dart, Alice, Scheme, Logo, Apex, Lua ) ___

Sign In or Register to comment.