Skip to content

CarPermutation ​

Spot j holds the car that parks there, each car taking the first free spot at or after its preference.

CarPermutation(ParkingFunction)Spot j holds the car that parks there, each car taking the first free spot at or after its preference.
Typed signatures
TypePackageApplies
(parking_function) -> permutationcombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a ParkingFunction and returns a Permutation — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • FindStat's Mp00053, Sage's cars_permutation. A surjection.

Examples

Basic #

the parking function 21132113

live ↗
InCarPermutation(ParkingFunction⁡([2,1,1,3]))\mathrm{CarPermutation}({\operatorname{ParkingFunction}}([2, 1, 1, 3]))OutPermutation⁡([2,1,3,4]){\operatorname{Permutation}}([2, 1, 3, 4])
About
Examples1
CrosswalkFindStat