Ask Your Question
0

Counting lattice path with Sage

asked 2021-01-07 18:21:18 +0200

oldani gravatar image

updated 2021-01-07 18:21:38 +0200

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
0

answered 2021-01-07 18:26:01 +0200

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.

See

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

Stats

Asked: 2021-01-07 18:21:18 +0200

Seen: 44 times

Last updated: Jan 07