Exact Sampling of Permutations with a Fixed Longest Increasing Subsequence
arXiv:2606.02263
Abstract
We study exact uniform sampling of permutations of length whose longest increasing subsequence (LIS) has prescribed length . Our main result is, to the best of our knowledge, the first polynomial-time exact sampler for this problem, valid for every . Via the Robinson--Schensted correspondence the problem reduces to sampling a Young diagram with first row of length from the hook-length-squared (conditioned Plancherel) law. We sample this shape one coordinate at a time, where each conditional weight, a sum over exponentially many completions, collapses, through the Cauchy--Binet formula, to a single coefficient of the determinant of a small polynomial matrix. A direct implementation runs in expected time in the word-RAM model. Aggregating the scores and exploiting the Hankel structure of the evaluated matrices reduces this to . In the linear regime we give a direct rejection sampler running in expected time, matching, up to constants, the cost of computing the LIS of one permutation. For the relaxed constraint , plain rejection sampling gives expected time for every , and so the worst case over all improves to .