Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Odd-Even Sort

Sorting Algorithm

Odd-even sort, also known as odd-even transposition sort, brick sort, or parity sort, is a comparison-based sorting algorithm related to bubble sort, originally developed for parallel processors with local interconnections. It works by comparing all odd-indexed pairs of adjacent elements and swapping any pair found out of order, then repeating the comparison on even-indexed pairs, alternating between the two passes until the list is sorted.

Facts
Time Complexity
Time Complexity (category)
Quadratic Time -- O(n^2) 1
Sources
1. Odd-Even Sort (Wikipedia)
Wikipedia infobox: time complexity quadratic
Quote, Wikipedia infobox: time complexity quadratic
quadratic
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.