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

From Machinelearning
No edit summary
No edit summary
Line 4: Line 4:
! Description !! Set representing counting problem !! number of ways to count
! Description !! Set representing counting problem !! number of ways to count
|-
|-
| || <math>\{(a_1, \ldots, a_k) : a_1,\ldots, a_k \in A\}</math> || <math>n^k</math>
| Pick <math>k</math> things from <math>A</math> with replacement || <math>\{(a_1, \ldots, a_k) : a_1,\ldots, a_k \in A\}</math> || <math>n^k</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>\{\{a_1, \ldots, a_k\} : a_1,\ldots, a_k \in A\}</math> || <math>\sum_{i=1}^k \binom n i</math>

Revision as of 02:30, 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,…,ak∈A} nk
{{a1,…,ak}:a1,…,ak∈A} ∑i=1k(ni)
{{a1,…,an}:a1,…,an∈A} ∑i=1n(ni)=2n−1
{(a1,…,ak):a1,…,ak∈A and all ai distinct} P(n,k)=n!(n−k)!=n(n−1)⋯(n−(k+1))
{(a1,…,an):a1,…,an∈A and all ai distinct} P(n,n)=n!
{{a1,…,ak}:a1,…,ak∈A and all ai distinct} (nk)=P(n,k)/(k!)=n!k!(n−k)!
{(a,b):a∈A and b∈B} nm
{{a,b}:a∈A and b∈B}