1 / 4

Sorting – More quicksort related

Sorting – More quicksort related. Jie Liu, Ph.D. Professor Department of Computer Science Western Oregon University USA liuj@wou.edu. Parallel Quick sort. 1. The simplest , two processor, one from the left, one from the right Speedup of two – max

kosey
Télécharger la présentation

Sorting – More quicksort related

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sorting – More quicksort related Jie Liu, Ph.D. Professor Department of Computer Science Western Oregon University USA liuj@wou.edu

  2. Parallel Quick sort • 1. The simplest , two processor, one from the left, one from the right • Speedup of two – max • 2. Push every thing on to a stack, the free processor pick from the top • When the work is heavy, not many processors can participate • Speedup has an upper bound of 6 to 8

  3. Hyper quick sort • Sort its local array • The designated processor find out the mean and send to all others. • Others split the values to two sets, the upper half keep the high set and send out the low set to the lower processor, • Lower half does the opposite • Iterate steps 1 to 4 until the cubes has a size of 1 • Modified (on the mean) not better

  4. Parallel Sorting by Regular Sampling • Sort the local • Select and ship the sample • ** one processor sorts the sample, selects p -1 pivots, and sends it all others • All other divide the sorted list according to the pivots of step 3, • Each processor sends out sub arrays and collect data from others • Each sort locally

More Related