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

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


2 #30 The ballot problem forget

The ballot problem: in a count where \(A\) gets \(p\) votes and \(B\) gets \(q\) (\(p > q\)), the number of orderings in which \(A\) stays ahead of \(B\) throughout is \(N(p,q) = \binom{p+q-1}{q} - \binom{p+q-1}{q-1} = \frac{p-q}{p+q}\binom{p+q}{q}\).
We assume \(N\) is a function satisfying the counting recurrence (existence is not shown): \(N(p+1, 0) = 1\). If \(p \le q + 1\), then \(N(p, q+1) = 0\). If \(q < p\), split by whether the last vote is for \(A\) or \(B\), which gives \(N(p+1, q+1) = N(p, q+1) + N(p+1, q)\).

2.1 Symmetry of binomial coefficients and computation

For \(n\) items, choosing \(a\) and choosing \(b = n - a\) are equinumerous (from \(\binom{a+b}{a}\,a!\,b! = (a+b)!\)).
To pass from the difference form to the ratio form we use only the following computation (\(n\) is the value of \(N\), \(u, w, t\) are binomial coefficients, \(c = r + 1\), \(d = m + 1\)).

2.2 Difference form

Prove \(N(p, r+1) + \binom{m}{r} = \binom{m}{r+1}\) (\(p + r = m\), \(r + 1 \le p\)) by induction on \(m\).

2.3 Ratio form

From the difference form, prove \((p+q)\,N(p,q) = (p-q)\binom{p+q}{q}\) without using division (put \(p = q + k\), so \(p - q = k\)).
\(\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}.\) ,Axℤ ,ax_s ,Lc∈ ,LP ,LC0 ,LAb ,Lsym ,Ralg ,Dform ,⋅𝕄:D ,⋅0X

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