Counting records in a random, non-uniform, permutation
Abstract
Counting permutations of [n] by the number of records, i.e. left-to-right maxima, is a classic problem in combinatorial enumeration. In the first volume of ``The Art of Computer Programming", Donald Knuth demonstrated its relevance for analysis of average case complexity of a basic algorithm for determining a maximum in a linear list of numbers. It is well known that the expected, and likely, number of those records in a uniformly\/ random permutation is asymptotic to n. Cyril Banderier, Rene Beier, and Kurt Mehlhorn studied the case of a non-uniform random permutation, which is obtained from a generic permutation of [n] by selecting its elements one after another independently with probability p, and permuting the selected elements uniformly at random. They proved that En(p), the largest expected number of the maxima, is between constn/p and O((n/p) n) if p is fixed. For p 1/n and simultaneously 1-p const n-1/2 n, we prove that En(p) is exactly of order (1-p)n/p.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.