Advanced maths

Tournament score sequence realization calculator

Determine whether a proposed list of outdegrees can be realized by a tournament, and construct an orientation of the complete graph when it can.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Determine whether a proposed list of outdegrees can be realized by a tournament, and construct an orientation of the complete graph when it can. A tournament chooses exactly one winner in every pair of distinct vertices. The tool applies Landau’s score-sequence conditions and then builds an explicit edge orientation, preserving the correspondence to the original item labels.

THE FORMULASorted scores s satisfy Σfirst_k s_i≥k(k−1)/2, with equality at k=n.

A worked example

Scores 0,1,2 sum to three, the number of matches on three vertices. A transitive tournament realizes them: the strongest item beats both others, the middle beats the weakest, and the weakest wins none. Every unordered pair receives exactly one directed edge.

Good to know

1–30 integer scores in 0…n−1. Landau inequalities are checked and a match-to-winner flow constructs an orientation. Labels retain the entered score order. No general directed graph or draw/tie model.

Scores count pairwise victories

For n items, each item plays every other exactly once, so its score is an integer between zero and n minus one. The total number of victories is n times n minus one divided by two.

Draws, skipped pairings and repeated matches are not part of a tournament score sequence. A league table with unequal games played therefore cannot be validated merely by entering its win totals into this calculation.

A transitive tournament realizes scores zero one two012One win per pairTotals: 0,1,2Sum = 3 matches
Scores 0,1,2 sum to three, the number of matches on three vertices. A transitive tournament realizes them: the strongest item beats both others, the middle beats the weakest, and the weakest wins none. Every unordered pair receives exactly one directed edge. Static schematic; numerical labels define the example.

Tournament degrees concern exactly one directed edge per vertex pair, unlike ordinary undirected degree realization. The Dominator tree calculator for a directed graph and start vertex offers a complementary calculation under its own stated assumptions.

Landau’s prefix inequalities

Sort the scores in nondecreasing order. For every first k scores, their sum must be at least k times k minus one divided by two, and equality must hold for the full sequence.

The first k vertices have that many games among themselves, so they must collectively own at least those wins. Landau’s theorem states these necessary inequalities are sufficient as well. An offending prefix pinpoints a structural impossibility that checking only the total sum would miss.

Worked example and mathematical rule

Scores 0,1,2 sum to three, the number of matches on three vertices. A transitive tournament realizes them: the strongest item beats both others, the middle beats the weakest, and the weakest wins none. Every unordered pair receives exactly one directed edge.

Sorted scores s satisfy Σfirst_k s_i≥k(k−1)/2, with equality at k=n.

Constructing an orientation

After the inequalities pass, the implementation assigns each unordered pair’s single victory to one endpoint while meeting every vertex’s required total. The resulting directed edges are a witness, not merely a yes label.

Count outgoing edges at each original vertex to verify its score. There is exactly one directed edge per pair and no self-edge. The construction can choose any valid tournament, since score sequences usually do not identify a unique match-by-match history.

Sorting does not erase item identity

The theorem uses sorted values for its inequalities, but input positions remain the item labels for the returned orientation. Equal scores can be interchangeable in the existence argument while still referring to different people or objects in an application.

Do not assume the first returned vertex corresponds to the smallest score unless that was the input order. Keep a name-to-index legend when transferring a proposed ranking or game schedule into the calculator.

Realizable does not mean transitive

A tournament can contain directed cycles even when its score sequence is valid. A transitive tournament has scores zero through n minus one exactly once, but many other realizable sequences represent cyclic comparisons.

The score list alone may not determine whether a particular pair has one orientation or the other. If individual game outcomes are already known, this existence calculation cannot override them; the witness may be a different tournament with identical totals.

Useful checks and counterexamples

All-zero scores fail as soon as there is more than one item, and all-maximum scores fail for the same reason: each game produces one winner. A balanced odd-size tournament can give every item the same outdegree.

Complementing all orientations replaces each score s with n minus one minus s and preserves realizability. These examples help test the total-sum and prefix logic. Report a constructed orientation only as one possible realization, not as a reconstruction of unrecorded historical matches.

A few questions, answered

Can scores include draws?

No. Every pair contributes one decisive victory.

Why is the correct total insufficient?

Some low-score subsets may still lack enough wins to account for their internal games.

Is the returned tournament unique?

Usually not. Different orientations can have the same score sequence.

Are labels reordered by the sorted test?

The certificate refers to original input positions.

Find your calculator

Start typing to explore the library.