Ask Your Question

Counting lattice path with Sage

asked 2021-01-07 11:21:18 -0600

oldani gravatar image

updated 2021-01-07 11:21:38 -0600

Quite newbie with Sage but I try to count very standard lattice path with steps (1,0) and (0,1) on a grin (0,0) to (m,n) for positive integers n and m. I want also put constraints like for example "not touching the main. diagonal".

I can program it but maybe there are Sage libraries that can help me?

Thanks for any suggestions Gianfranco

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2021-01-07 11:26:01 -0600

slelievre gravatar image

Sage has rich functionality in combinatorics.

In particular Dyck words are implemented and can be plotted using N and E steps, or NE and SE steps.


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2021-01-07 11:21:18 -0600

Seen: 39 times

Last updated: Jan 07