Skip to content
StackDecode
SortingExplained

Bitonic Sort

A sorting network that builds bitonic sequences, then merges them.

Time

O(log² n) parallel depth

Extra space

O(1)

Use it for

GPUs and parallel hardware, power-of-two sizes.

An animated walkthrough for this algorithm isn’t built yet. The summary above explains the idea; see the related animated algorithms below to practise the same technique.