Documentation

CslibFrontier.Algorithms.WordRAM.ChainCover

Dilworth minimum chain cover and maximum antichain on the word RAM #

This file implements and proves O(n^{5/2}) machine-level running-time bounds on the standard-basis word RAM (Basis.standard) for Fulkerson's reduction of Dilworth's minimum chain cover and maximum antichain to Hopcroft–Karp maximum bipartite matching:

Main definitions #

Main results #

References #

Poset instances and encodings #

An n-element strict comparability relation lt : Fin n × Fin n → Bool for computing a Dilworth minimum chain cover and maximum antichain on the word RAM.

  • n : ℕ

    Number of elements of the poset.

  • lt : Fin self.n × Fin self.n → Bool

    Strict comparability indicator lt (i, j) = true when element i is strictly below j.

Construct a PosetInstance from an enumerated poset e : Fin n ≃ α.

Row-major word encoding n :: matrixWords (1 + n * n words).

Chain label list [c₀, …, c_{n - 1}] computed by Fulkerson's reduction on inst.lt.

Sorted index list of the König uncovered antichain of inst.lt.

Sufficient word-value envelope for O(n^{5/2}) chain cover and antichain computation.

Scratch register aliases and Fulkerson core #

Standard-basis word-RAM program computing inst.chainLabelsList (ExecutesList) in O(n^{5/2}) instructions via Fulkerson's bipartite matching reduction.

Standard-basis word-RAM program computing the König uncovered maximum antichain inst.antichainList (ExecutesList) in O(n^{5/2}) instructions.

O(n^{5/2}) Word-RAM minimum chain cover labels (ExecutesList).

O(n^{5/2}) Word-RAM maximum antichain (ExecutesList).