Skip to main content

Lab 3 - Parallel Sorting and Searching Algorithms

Introductionโ€‹

In this laboratory, we will discuss some examples of parallel sorting algorithms.

๐Ÿ“„๏ธ Shear Sort

Another example of a sorting algorithm designed for multi-processor systems where each processor is connected to only a portion of the other processors is shear sort (also known as row-column sort or snake-order sort). It assumes that we are working with processors connected in a matrix-like form. In this setup, a processor can communicate with neighbors to the left, right, above, and below. If we imagine that processors are arranged in a matrix, the two phases of the shear sort algorithm are as follows: