Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert a valid parking function into its corresponding Dyck word
ResourceFunction["ParkingFunctionToDyckWords"][pf] converts a valid parking function pf into its corresponding Dyck word. |
Find the Dyck words for the given parking function:
| In[1]:= |
| Out[2]= |
The Dyck words is invariant for a parking function under permutation:
| In[3]:= | ![]() |
| Out[4]= |
Visualize a parking function as a Dyck path that stays on or above the diagonal and does not cross it:
| In[5]:= |
| Out[6]= |
Use "[" to denote a north step and "]" to denote an east step:
| In[7]:= | ![]() |
| Out[8]= | ![]() |
The input must be a valid parking function. Otherwise the function returns unevaluated:
| In[9]:= |
| Out[9]= |
| In[10]:= |
| Out[10]= |
This work is licensed under a Creative Commons Attribution 4.0 International License