Lattice path – Wikipedia

Lattice path of length 5 in

${displaystyle mathbb {Z} ^{2}}$

with

${displaystyle S=left{(2,0),(1,1),(0,-1)right}}$

.

In combinatorics, a lattice path

${displaystyle L}$

in

${displaystyle mathbb {Z} ^{d}}$

of length

${displaystyle k}$

with steps in

${displaystyle S}$

is a sequence

${displaystyle v_{0},v_{1},ldots ,v_{k}in mathbb {Z} ^{d}}$

such that each consecutive difference

${displaystyle v_{i}-v_{i-1}}$

lies in

${displaystyle S}$

.[1]
A lattice path may lie in any lattice in

${displaystyle mathbb {R} ^{d}}$

,[1] but the integer lattice

${displaystyle mathbb {Z} ^{d}}$

is most commonly used.

An example of a lattice path in

${displaystyle mathbb {Z} ^{2}}$

of length 5 with steps in

${displaystyle S=lbrace (2,0),(1,1),(0,-1)rbrace }$

is

${displaystyle L=lbrace (-1,-2),(0,-1),(2,-1),(2,-2),(2,-3),(4,-3)rbrace }$

.

North-East lattice paths

A North-East (NE) lattice path is a lattice path in

${displaystyle mathbb {Z} ^{2}}$

with steps in

${displaystyle S=lbrace (0,1),(1,0)rbrace }$

. The

${displaystyle (0,1)}$

steps are called North steps and denoted by

${displaystyle N}$

‘s;
the

${displaystyle (1,0)}$

steps are called East steps and denoted by

${displaystyle E}$

‘s.

NE lattice paths most commonly begin at the origin. This convention allows us to encode all the information about a NE lattice path

${displaystyle L}$

in a single permutation word. The length of the word gives us the number of steps of the lattice path,

${displaystyle k}$

. The order of the

${displaystyle N}$

‘s and

${displaystyle E}$

‘s communicates the sequence of

${displaystyle L}$

. Furthermore, the number of

${displaystyle N}$

‘s and the number of

${displaystyle E}$

‘s in the word determines the end point of

${displaystyle L}$

.

If the permutation word for a NE lattice path contains

${displaystyle n}$

${displaystyle N}$

steps and

${displaystyle e}$

${displaystyle E}$

steps, and if the path begins at the origin, then the path necessarily ends at

${displaystyle (e,n)}$

. This follows because you have “walked” exactly

${displaystyle n}$

steps North and

${displaystyle e}$

steps East from

${displaystyle (0,0)}$

.

Counting lattice paths

Lattice paths are often used to count other combinatorial objects. Similarly, there are many combinatorial objects that count the number of lattice paths of a certain kind. This occurs when the lattice paths are in bijection with the object in question. For example,

• Dyck paths are counted by the
${displaystyle n^{text{th}}}$

Catalan number

${displaystyle C_{n}}$

. A Dyck path is a lattice path in

${displaystyle mathbb {Z} ^{2}}$

from

${displaystyle (0,0)}$

to

${displaystyle (2n,0)}$

with steps in

${displaystyle S=lbrace (1,1),(1,-1)rbrace }$

that never passes below the

${displaystyle x}$

-axis.[2] Equivalently, a Dyck path is a NE lattice path from

${displaystyle (0,0)}$

to

${displaystyle (n,n)}$

that lies strictly below (but may touch) the diagonal

${displaystyle y=x}$

.[2][3]

• The Schröder numbers count the number of lattice paths from
${displaystyle (0,0)}$

to

${displaystyle (n,n)}$

with steps in

${displaystyle (1,0),(0,1)}$

and

${displaystyle (1,1)}$

that never rise above the diagonal

${displaystyle y=x}$

.[2]

• The number of NE lattice paths from
${displaystyle (0,0)}$

to

${displaystyle (a,b)}$

counts the number of combinations of

${displaystyle a}$

objects out of a set of

${displaystyle a+b}$

objects.

Combinations and NE lattice paths

NE lattice paths have close connections to the number of combinations, which are counted by the binomial coefficient, and arranged in Pascal’s triangle. The diagram below demonstrates some of these connections.

The number of lattice paths from

${displaystyle (0,0)}$

to

${displaystyle (2,3)}$

is equal to

${displaystyle {binom {2+3}{2}}={binom {5}{2}}=10}$

.

The number of lattice paths from

${displaystyle (0,0)}$

to

${displaystyle (n,k)}$

is equal to the binomial coefficient

${displaystyle {binom {n+k}{n}}}$

. The diagram shows this for

${displaystyle 0leq kleq n=4}$

. If one rotates the diagram 135° clockwise about the origin and extend it to include all

${displaystyle n,kin mathbb {N} cup lbrace 0rbrace }$

, one obtains Pascal’s triangle. This result is no surprise, because the

${displaystyle k^{text{th}}}$

entry of the

${displaystyle n^{text{th}}}$

row of Pascal’s Triangle is the binomial coefficient

${displaystyle {binom {n}{k}}}$

.

Problems and proofs

The graphical representation of NE lattice paths lends itself to many bijective proofs involving combinations. Here are a few examples.

• ${displaystyle sum _{k=0}^{n}{binom {n}{k}}^{2}={binom {2n}{n}}}$

.

Proof: The right-hand side is equal to the number of NE lattice paths from

${displaystyle (0,0)}$

to

${displaystyle (n,n)}$

. Each of these NE lattice paths intersects exactly one of the lattice points in the rectangular array with coordinates

${displaystyle (x,n-x)}$

for

${displaystyle xin lbrace 0,1,ldots ,nrbrace }$

. This is shown in the figure below for

${displaystyle n=4}$

: Every NE lattice path from

${displaystyle (0,0)}$

to

${displaystyle (4,4)}$

intersects exactly one of the colored nodes.

Each NE lattice path passes through exactly one colored node.

On the left-hand side, the binomial coefficient squared,

${displaystyle {binom {n}{k}}^{2}}$

, represents two copies of the set of NE lattice paths from

${displaystyle (0,0)}$

to

${displaystyle (k,n-k)}$

attached endpoint to start point. Rotate the second copy 90° clockwise. This does not change the combinatorics of the object:

${displaystyle {binom {n}{k}}={binom {n}{n-k}}}$

. So the total number of lattice paths remains the same.

Sets of NE lattice paths squared, with the second copy rotated 90° clockwise.

Superimpose the NE lattice paths squared onto the same rectangular array, as seen in the figure below. We see that all NE lattice paths from

${displaystyle (0,0)}$

to

${displaystyle (n,n)}$

are accounted for. In particular, notice that any lattice path passing through the red lattice point (for example) is counted by the squared set of lattice paths (also shown in red).

${displaystyle Box }$

Superimposed sets of NE lattice paths squared. All NE lattice paths are accounted for.