How to decompose a permutation into a pair of labeled Dyck paths by playing a game

Louis J. Billera, Lionel Levine, Karola MészárosarXiv 2013

Abstract

This paper introduces a beautiful bijection between permutations and pairs of labeled Dyck paths, inspired by a two-player game called "Ethiopian Dinner." The authors show that optimal play in this game naturally decomposes a permutation into two independent structures, providing a fresh combinatorial lens to prove classical identities and analyze random preferences.

Introduction

In combinatorial mathematics, permutations are foundational objects, but they can be difficult to decompose into simpler, independent structures. This research explores a specific game-theoretic scenario: two players, Alice and Bob, are sharing a meal of $2n$ morsels. Alice and Bob have different preferences—Alice prefers morsels with higher labels (values), while Bob prefers morsels positioned further to the right.

Previous research established that the number of possible sets of morsels Alice could end up with is the Catalan number $C_n$, a famous sequence in combinatorics often associated with Dyck paths. However, a full bijective mapping that explains how a specific preference ordering (a permutation) leads to a specific outcome was missing. The authors bridge this gap by showing how a permutation can be uniquely "unpacked" into two labeled Dyck paths that represent each player's experience.

Methods

The authors utilize a "crossout procedure" to model optimal play. In this game, players alternate turns, but they effectively "play backwards" to ensure they get the best possible outcome. The procedure is surprisingly simple:

  1. Bob's turn: Mark the smallest unmarked number in the permutation with a "B".
  2. Alice's turn: Mark the leftmost unmarked number with an "A".
  3. Repeat until all numbers are marked.

From these markings, the authors construct two Dyck paths (paths that move up and down but never dip below the starting height):

  • $p_A$: Encodes the values of the morsels Alice eats.
  • $p_B$: Encodes the positions of the morsels Bob eats.
Figure 1: An example of the bijection mapping a permutation $w$ to two labeled Dyck paths $p_A(w)$ and $p_B(w)$. The red values correspond to Alice's choices, and the blue indices correspond to Bob's.

They further enrich these paths with labels on the "down steps." These labels track "inversions" — instances where a player eats a less-preferred item before a more-preferred one. The core of the paper is the proof that this mapping is a bijection: every permutation corresponds to exactly one unique set of labeled paths, and vice versa.

Key Insights and Results

  • Statistical Independence: Perhaps the most surprising finding is that if you pick a permutation at random, Alice’s meal (what she eats and in what order) is statistically independent of Bob’s meal. Their "enjoyment" doesn't interfere with each other in a probabilistic sense.
  • Pareto Efficiency: The authors prove there are no "BA inversions." This means there is never a situation where Alice and Bob would both prefer to swap items they've already "eaten." The crossout strategy is inherently efficient.
  • Refining Classical Identities: By using $q$-analogues, the authors provide new, game-theoretic proofs for classical combinatorial identities involving the heights of Dyck paths. For instance, Corollary 8 derives the identity that the sum over all Dyck paths of the product of their down-step heights equals the product of the first $n$ odd integers ($(2n-1)!!$).
  • Connection to Hermite Histories: The labeling scheme connects the game to "Hermite histories," a known structure in combinatorics used to study matchings and orthogonal polynomials.

Formal results include Theorem 1, which establishes the formal one-to-one correspondence, and Theorem 2, which provides formulas for the distribution of "AA" and "BB" inversions. Theorem 9 calculates the exact probability that Alice eats a specific set of morsels under random preferences, showing she is guaranteed her favorite and never stuck with her least favorite.

Conclusion

The paper focuses on a specific two-player game with fixed, opposing preference styles (value-based vs. position-based). While the results are elegant for even-length permutations, future work could explore extensions to three or more players or different preference structures, though these might break the independence property and the specific link to Dyck paths.

Summary updated

Abstract

We give a bijection between permutations of length 2n and certain pairs of Dyck paths with labels on the down steps. The bijection arises from a game in which two players alternate selecting from a set of 2n items: the permutation encodes the players' preference ordering of the items, and the Dyck paths encode the order in which items are selected under optimal play. We enumerate permutations by certain statistics, AA inversions and BB inversions, which have natural interpretations in terms of the game. We give new proofs of classical identities such as \sum_p \prod_{i=1}^n q^{h_i -1} [h_i]_q = [1]_q [3]_q ... [2n-1]_q where the sum is over all Dyck paths p of length 2n, and the h_i are the heights of the down steps of p.
BibTeX
@misc{billera2013how,
  author = {Louis J. Billera and Lionel Levine and Karola Mészáros},
  title = {{How to decompose a permutation into a pair of labeled Dyck paths by playing a game}},
  year = {2013},
  eprint = {1306.6744},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1306.6744},
}
Figure