Freeks/combinatorics.book(保存済みの内容) … 編集へ / ファイル一覧へ

ページ 4 / 13 … 1 2 3 4 5 6 … 13 … ← 前のページ … 次のページ →


4 #30b Ballot problem (alternative proof) forget

From 11d.book. An alternative proof of #30: prove the ratio form directly by induction from the recurrence and the relations between binomial coefficients.
Ballot problem: when \(A\) gets \(p\) votes and \(B\) gets \(q\) votes (\(p > q\)), the number of counting orders in which \(A\) is always ahead of \(B\) is \(N(p,q) = \frac{p-q}{p+q}\binom{p+q}{q}\).
\(N\) is assumed to be a function satisfying the counting recurrence (existence is not shown): \(N(p+1, 0) = 1\). If \(p \le q + 1\), \(N(p, q+1) = 0\). If \(q < p\), split by whether the last vote is for \(A\) or \(B\): \(N(p+1, q+1) = N(p, q+1) + N(p+1, q)\).

4.1 Symmetry and relations of binomial coefficients

The number of ways to choose from \(n\) elements \(a\) of them equals the number of ways to choose \(b = n - a\) (from \(\binom{a+b}{a}\,a!\,b! = (a+b)!\)).
The ratio of \(\binom{m+1}{q+1}\) and \(\binom{m+1}{q}\) (\(m = p + q\)): \((q+1)\binom{m+1}{q+1} = (p+1)\binom{m+1}{q}\). From the absorption identity and symmetry.

4.2 Computation with numbers

A natural number plus 1 is nonzero.
Computation used in the induction step: if \(p = q + j + 1\), \(M = p + q + 1\), \(M a = j Y\), \(M b = (j+2) X\), \((q+1) Y = (p+1) X\), \(c = a + b\) and \(T = X + Y\), then \((M+1) c = (j+1) T\). No division is used: multiply both sides by \(M\) and \(q+1\), then cancel.

4.3 One step of induction

When \(p = q + j + 1\), if the ratio form holds for \((p, q+1)\) and \((p+1, q)\), it also holds for \((p+1, q+1)\). Use the recurrence \(N(p+1,q+1) = N(p,q+1) + N(p+1,q)\), Pascal's relation for binomial coefficients, and then the computation above.

4.4 Induction (on \(p + q\))

For \(p + q = m\), any \((p,q)\) with \(p = q + k\) satisfies \((p+q)\,N(p,q) = k\binom{p+q}{q}\), proved by induction on \(m\). For \(q = 0\), \(N(p+1,0) = 1\). For \(k = 0\) (\(p = q\)), \(N = 0\). For \(k = j + 1\), reduce to \((p-1, q)\) and \((p, q-1)\) by the recurrence and use the computation above.

4.5 Ballot problem

Just put \(m = p + q\) in the induction result above (\(p = q + k\)): \((p+q)\,N(p,q) = k\binom{p+q}{q}\), that is, \(N(p,q) = \frac{p-q}{p+q}\binom{p+q}{q}\).
\(\begin{cases} \forall p , q \in \mathbb{M} . ( N ( p ) ) ( q ) \in \mathbb{M} \\ \forall p \in \mathbb{M} . ( N ( p + 1 ) ) ( 0 ) = 1 \\ \forall p , q \in \mathbb{M} . ( p \le q + 1 \Longrightarrow ( N ( p ) ) ( q + 1 ) = 0 ) \\ \forall p , q \in \mathbb{M} . ( q < p \Longrightarrow ( N ( p + 1 ) ) ( q + 1 ) = ( N ( p ) ) ( q + 1 ) + ( N ( p + 1 ) ) ( q ) ) \end{cases} , p , q , k \in \mathbb{M} , p = q + k \Longrightarrow ( p + q ) \cdot ( N ( p ) ) ( q ) = k \cdot ( ( p + q ) \mathrm{C} q )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,ax_s ,Lc∈ ,LP ,LC0 ,Lrel ,Lsym ,⋅0X

ページ 4 / 13 … ← 前のページ … 次のページ →