Hardest Reductions: Median and Mode's Parallel Hurdle

Unlike simple sums, operations such as finding the median or mode often lack straightforward associative properties, making their efficient parallelization inherently complex and requiring specialized algorithms like selection algorithms or approximation methods.

The top 3

  1. Median's Parallel Bottleneck: Sorting's Global Dependency: Finding the median in parallel is notoriously difficult because it typically requires a global order (sorting or selection algorithms), unlike sum or min which are local and decomposable. Parallel sorting algorithms like Merge Sort or Quick Sort have overheads that can negate gains for smaller datasets, while selection algorithms like Introselect or Quickselect still demand significant data coordination across threads.
  2. Mode's Parallel Predicament: Distributed Frequency Counting: Parallelizing the mode is challenging due to the need for distributed frequency counting; consolidating counts from different threads or processes efficiently without contention or excessive memory usage is complex, especially for datasets with many unique values or ties, often requiring distributed hash maps or merges.
  3. Easy Reductions vs. Hard: Local vs. Global Dependencies: The core difference lies in data dependencies: simple reductions (sum, min, max) are 'embarrassingly parallel' as they combine local results independently, whereas median and mode require global knowledge of the dataset, demanding complex synchronization, communication, and data shuffling across parallel units.

Sources

Open the full topic