Validate Parking Functions#
To validate a Parking Function:
- parkingfunctions.validate.pigeonhole_check(park_func)#
Validates a Parking Function.
Validates a parking function with pigeonhole principle.
- Parameters
park_func (list) – A list representing a parking function.
- Returns
If parking function is valid.
- Return type
bool
- parkingfunctions.validate.get_outcome(park_func)#
Returns the outcome of a given parking function.
Takes in a parking function and returns the outcome.
- Parameters
park_func (list) – A list representing a parking function.
- Returns
The outcome of a given parking function with displacement.
- Return type
list