CS 284a Lecture Tuesday, 29 October, 1997

10/29/97


Click here to start


Table of Contents

CS 284a Lecture Tuesday, 29 October, 1997

Multithreaded Sorting: The Problem with Quicksort and Mergesort

The PSRS Algorithm (Parallel Sorting by Regular Sampling)

PSRS Algorithm

Step 1: Divide the Data into Segments

Step 2: In Parallel, Sort the Data Segments

Step 3: Take Evenly-Spaced Sample Points From the Sorted Data Segments

Step 4: Sort the Data Sample

Step 5: Choose Evenly-Spaced Pivots From the Sorted Data Sample

Step 6: Partition the Sorted Data Segments Using the Pivots

Step 7: Compute the Sizes of the Result Partitions

Step 8: In Parallel, Merge the Partitioned Data Segments into the Result Partitions

Overall Sequential Complexity

Multithreaded PSRS

Multithreaded PSRS Algorithm

Multithreaded Performance Issues

Costs of Partitioning

Author: John Thornley

Email: cs284@cs.caltech.edu

Home Page: http://www.cs.caltech.edu/~cs284/