User:IssaRice/Summary of counting techniques: Difference between revisions

From Machinelearning
No edit summary
No edit summary
 
Line 8: Line 8:
| || <math>\{\{a_1, \ldots, a_k\} : a_1,\ldots, a_k \in A\}</math> || <math>\sum_{i=1}^k \binom n i</math>
| || <math>\{\{a_1, \ldots, a_k\} : a_1,\ldots, a_k \in A\}</math> || <math>\sum_{i=1}^k \binom n i</math>
|-
|-
| || <math display="inline">\{ f : A \to \mathbf N \mid \sum_{a \in A} f(a) = k\}</math>
| || <math display="inline">\{ f : A \to \mathbf N \mid \sum_{a \in A} f(a) = k\}</math> (multisets with cardinality <math>k</math>) ||
|-
|-
| || <math>\{\{a_1, \ldots, a_n\} : a_1,\ldots, a_n \in A\}</math> || <math>\sum_{i=1}^n \binom n i = 2^n - 1</math> (a quick way to see this identity is that we want the power set without the empty set)
| || <math>\{\{a_1, \ldots, a_n\} : a_1,\ldots, a_n \in A\}</math> || <math>\sum_{i=1}^n \binom n i = 2^n - 1</math> (a quick way to see this identity is that we want the power set without the empty set)

Latest revision as of 02:38, 14 August 2019

Let A be a set with n elements, and let B be a set with m elements.

Description Set representing counting problem number of ways to count
Pick k things from A with replacement {(a1,,ak):a1,,akA} nk
{{a1,,ak}:a1,,akA} i=1k(ni)
{f:ANaAf(a)=k} (multisets with cardinality k)
{{a1,,an}:a1,,anA} i=1n(ni)=2n1 (a quick way to see this identity is that we want the power set without the empty set)
{(a1,,ak):a1,,akA and all ai distinct} P(n,k)=n!(nk)!=n(n1)(n(k+1))
{(a1,,an):a1,,anA and all ai distinct} P(n,n)=n!
{{a1,,ak}:a1,,akA and all ai distinct} (nk)=P(n,k)/(k!)=n!k!(nk)!
{(a,b):aA and bB} nm
{{a,b}:aA and bB}