| Learn | Algorithm - Multithreaded Algorithms - Merge sort multithread |
|---|
| merge-sort multithread A is an array and p and q indexes of the array such as you gonna sort the sub-array A[p..r]. B is a sub-array which will be populated by the sort. A call to p-merge-sort(A,p,r,B,s) sorts elements from A[p..r] and put them in B[s..s+r-p]. Here is the auxiliary function that performs the merge in parallel. And here is the auxiliary function dichotomic-search. x is the key to look for in the sub-array T[p..r]. Syntax
|
Read Article
https://develop.horje.com/learn/1434/reference