Dyck path
Status: #good
Tags: #definition
Dyck path
A Dyck path of length
- (up) given by the vector (1, 1) - so up and to the right
- (down) given by the vector (-1, 1) - down and to the right
- You cannot ever end up below the
-axis (you are allowed to touch it though)
Let the number of Dyck paths of lengthbe .
We say a peak of a Dyck path is a up step followed by a down step.
We note that you need the ending point to be even.
Examples
, there is exactly 1 path of length 0 (doing nothing) , you have to go up and then go back down (because you can't go down first) - up up down down
- up down up down
- up up up down down down
- up up down up down down
- up up down down up down
- up down up up down down
- up down up down up down
Properties
- The number of Dyck paths is equal to the Catalan numbers, which we shall denote
. proofs here