Source: wikibot/tournament-sort

= Tournament sort
{wiki=Tournament_sort}

Tournament sort is a comparison-based sorting algorithm that utilizes a tournament structure to organize elements, enabling efficient sorting. The idea behind tournament sort is to think of the elements to be sorted as participants in a tournament. Here’s how it typically works: 1. **Tournament Structure**: - The elements are compared in pairs (like matches in a tournament). Each comparison determines which element "wins" and moves to the next round, while the "loser" is eliminated from that round.