I want to take the code for a Wolfram Demonstration for a Delannoy number and make a function that can return a list of Delannoy plots. The code is available from the download link. The demonstration is available on the Wolfram Demonstrations Project and is optimized for desktops.
How can I make a function DelannoyNumberPlot
that reproduces the graphic on Wikipedia?
A good first step is to use RandomChoice
but you would have to discard sets of paths that don't reach the corner. There is the constraint of reaching the corner (usually in two dimensions) with north, east, or northeast movements.
There is plenty of material on the enumeration of Delannoy numbers, but I don't think there is much material out there on the construction of sets of Delannoy numbers. I also would maybe like to make a function RandomDelannoyPlot
that would randomly select a Delannoy graph plot.
When there are too many Delannoy plots to list all of them, you could use RandomDelannoyPlot[n]
to get a sample. I would like to just generate as many random plots as the user asks for, instead of taking a random sample of all the Delannoy plots for a given input. For example, RandomPermutation could be used.