Generate Parking Functions#

To generate Parking Function(s):

parkingfunctions.generates.generator(num_cars=9, num_funcs=1)#

Generates list of parking functions.

Generates and returns a list of size num_funcs of valid parking functions [pf] each of desired length num_cars.

Parameters
  • num_cars (int) – Int representing the size of individual pfs.

  • num_funcs (int) – Int representing the number of pfs returned.

Returns

A list of randomly generated valid parking functions.

Return type

list