Computational complexity King Sorting algorithm Tournament
A king
u in a tournament is a player who beats any other player
v directly or indirectly. That is, either
u→v (
u beats
v) or there exists a third player
w such that
u→w and
w→v. A sorted sequence of kings in a tournament of
n players is a sequence of players,
S=(u
1,u
2,…,u
n)
, such that
u
i→u
i+1
and
u
i
in a king in sub-tournament
T
u
i
={u
i,u
i+1,…,u
n}
for
i=1,2,…,n−1. The existence of a sorted sequence of kings in any tournament is shown by Lou et al. [Proc. 31st Southeastern Internat. Conf. on Combinatorics, Graph Theory, and Computing, 2000] where a sorting algorithm with a complexity of
Θ(n
3)
is given. In this paper, we present another constructive proof for the existence of a sorted sequence of kings of a tournament and propose an efficient algorithm with a complexity of
Θ(n
2)
.