Lattice path

From testwiki
Jump to navigation Jump to search

Template:Short description

Lattice path of length 5 in Template:Bug workaround with Template:Math

In combinatorics, a lattice path Template:Mvar in the Template:Mvar-dimensional integer lattice Template:Tmath of length Template:Mvar with steps in the set Template:Mvar, is a sequence of vectors Template:Tmath such that each consecutive difference vivi1 lies in Template:Mvar.[1] A lattice path may lie in any lattice in Template:Tmath,[1] but the integer lattice Template:Tmath is most commonly used.

An example of a lattice path in Template:Tmath of length 5 with steps in S={(2,0),(1,1),(0,1)} is L={(1,2),(0,1),(2,1),(2,2),(2,3),(4,3)}.

North-East lattice paths

A North-East (NE) lattice path is a lattice path in 2 with steps in S={(0,1),(1,0)}. The (0,1) steps are called North steps and denoted by Ns; the (1,0) steps are called East steps and denoted by Es.

NE lattice paths most commonly begin at the origin. This convention allows encoding all the information about a NE lattice path L in a single permutation word. The length of the word gives the number of steps of the lattice path, k. The order of the Ns and Es communicates the sequence of L. Furthermore, the number of Ns and the number of Es in the word determines the end point of L.

If the permutation word for a NE lattice path contains n N-steps and e E-steps, and if the path begins at the origin, then the path necessarily ends at (e,n). This follows because the path "walks" exactly n steps North and e steps East from (0,0).

The four NE lattice paths starting from (0,0) with exactly one N and three Es. The endpoint is necessarily at (3,1).

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 nth Catalan number Cn. A Dyck path is a lattice path in 2 from (0,0) to (2n,0) with steps in S={(1,1),(1,1)} that never passes below the x-axis.[2] Equivalently, a Dyck path is a NE lattice path from (0,0) to (n,n) that lies strictly below (but may touch) the diagonal y=x.[2][3]
  • The Schröder numbers count the number of lattice paths from (0,0) to (n,n) with steps in (1,0),(0,1) and (1,1) that never rise above the diagonal y=x.[2]
  • The number of NE lattice paths from (0,0) to (a,b) counts the number of combinations of a objects out of a set of 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 (0,0) to (2,3) is equal to (2+32)=(52)=10.

The number of lattice paths from (0,0) to (n,k) is equal to the binomial coefficient (n+kn). The diagram shows this for 0kn=4. If one rotates the diagram 135° clockwise about the origin and extends it to include all n,k{0}, then one obtains Pascal's triangle. This result is because the kth entry of the nth row of Pascal's Triangle is the binomial coefficient (nk).

Problems and proofs

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

  • k=0n(nk)2=(2nn).

Proof: The right-hand side is equal to the number of NE lattice paths from (0,0) to (n,n). Each of these NE lattice paths intersects exactly one of the lattice points in the rectangular array with coordinates (x,nx) for x{0,1,,n}. This is shown in the figure below for n=4: Every NE lattice path from (0,0) to (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, (nk)2, represents two copies of the set of NE lattice paths from (0,0) to (k,nk) attached endpoint-to-startpoint. Rotating the second copy 90° clockwise does not change the combinatorics of the object: (nk)=(nnk). 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 (0,0) to (n,n) are accounted for. In particular, any lattice path passing through the red lattice point (for example) is counted by the squared set of lattice paths (also shown in red).

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

See also

References

Template:Reflist [4]

[5]