CarPermutation
Spot j holds the car that parks there, each car taking the first free spot at or after its preference.
FindStat
Mp00053via ParkingFunctionCarPermutation(ParkingFunction)Spot j holds the car that parks there, each car taking the first free spot at or after its preference.Typed signatures
| Type | Package | Applies |
|---|---|---|
(parking_function) -> permutation | combinatorics | always |
Details
- Takes a
ParkingFunctionand returns aPermutation— 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
About
| Examples | 1 |
|---|---|
| Crosswalk | FindStat |