Addition principle

From HandWiki
Short description: Counting principle in combinatorics
A collection of five dots and one of zero dots merge into one of five dots.
5+0=5 illustrated with collections of dots.

In combinatorics, the addition principle[1][2] or rule of sum[3][4] is a basic counting principle. Stated simply, it is the intuitive idea that if we have A number of ways of doing something and B number of ways of doing another thing and we can not do both at the same time, then there are [math]\displaystyle{ A + B }[/math] ways to choose one of the actions.[3][1] In mathematical terms, the addition principle states that, for disjoint sets A and B, we have [math]\displaystyle{ |A\cup B| = |A| + |B| }[/math].[2]

The rule of sum is a fact about set theory.[citation needed]

The addition principle can be extended to several sets. If [math]\displaystyle{ S_1, S_2,\ldots, S_n }[/math] are pairwise disjoint sets, then we have:[1][2][math]\displaystyle{ |S_1|+|S_2|+\cdots+|S_{n}| = |S_1 \cup S_2 \cup \cdots \cup S_n|. }[/math]This statement can be proven from the addition principle by induction on n.[2]

Simple example

Five shapes split into a group of three shapes and one of two shapes.
3+2=5 illustrated with shapes.

A person has decided to shop at one store today, either in the north part of town or the south part of town. If they visit the north part of town, they will shop at either a mall, a furniture store, or a jewelry store (3 ways). If they visit the south part of town then they will shop at either a clothing store or a shoe store (2 ways).

Thus there are [math]\displaystyle{ 3 + 2 = 5 }[/math] possible shops the person could end up shopping at today.

Inclusion–exclusion principle

Main page: Inclusion–exclusion principle
A series of Venn diagrams illustrating the principle of inclusion-exclusion.
A series of Venn diagrams illustrating the principle of inclusion-exclusion.

The inclusion–exclusion principle (also known as the sieve principle[5]) can be thought of as a generalization of the rule of sum in that it too enumerates the number of elements in the union of some sets (but does not require the sets to be disjoint). It states that if A1, ..., An are finite sets, then[5] [math]\displaystyle{ \left|\bigcup_{i=1}^n A_i\right| =\sum_{i=1}^n\left|A_i\right| -\sum_{i,j\,:\,1 \le i \lt j \le n}\left|A_i\cap A_j\right| + \sum_{i,j,k\,:\,1 \le i \lt j \lt k \le n}\left|A_i\cap A_j\cap A_k\right|-\ \cdots\ + (-1)^{n-1} \left|A_1\cap\cdots\cap A_n\right|. }[/math]

Subtraction principle

Similarly, for a given finite set S, and given another set A, if [math]\displaystyle{ A \subset S }[/math], then [math]\displaystyle{ |A^c| = |S| - |A| }[/math].[6][7] To prove this, notice that [math]\displaystyle{ |A^c| + |A| = |S| }[/math] by the addition principle.[7]

Applications

The addition principle can be used to prove Pascal's rule combinatorially. To calculate [math]\displaystyle{ \binom{n + 1}{k} }[/math], one can view it as the number of ways to choose k people from a room containing n children and 1 teacher. Then there are [math]\displaystyle{ \binom{n}{k} }[/math] ways to choose people without choosing the teacher, and [math]\displaystyle{ \binom{n}{k-1} }[/math] ways to choose people that includes the teacher. Thus [math]\displaystyle{ \binom{n+1}{k} = \binom{n}{k} + \binom{n}{k-1} }[/math].[8](p83)

The addition principle can also be used to prove the multiplication principle.[2]

References

  1. 1.0 1.1 1.2 Biggs 2002, p. 91.
  2. 2.0 2.1 2.2 2.3 2.4 mps (22 March 2013). "enumerative combinatorics". https://planetmath.org/EnumerativeCombinatorics. 
  3. 3.0 3.1 Leung, K. T.; Cheung, P. H. (1988-04-01) (in en). Fundamental Concepts of Mathematics. Hong Kong University Press. pp. 66. ISBN 978-962-209-181-8. https://books.google.com/books?id=QqgaZ799QGAC&pg=PA66. 
  4. Penner, R. C. (1999) (in en). Discrete Mathematics: Proof Techniques and Mathematical Structures. World Scientific. pp. 342. ISBN 978-981-02-4088-2. https://books.google.com/books?id=t5r79vZ9ogoC&pg=PA342. 
  5. 5.0 5.1 Biggs 2002, p. 112.
  6. Diedrichs, Danilo R. (2022). Transition to advanced mathematics. Stephen Lovett. Boca Raton, FL. p. 172. ISBN 978-1-003-04620-2. OCLC 1302331608. 
  7. 7.0 7.1 Moreno, Miguel (2018). "Lecture notes: Combinatorics". https://u.math.biu.ac.il/~morenom3/Combinatorics%20spring%202018.pdf. 
  8. Henry Adams; Kelly Emmrich; Maria Gillespie; Shannon Golden; Rachel Pries (15 November 2021). "Counting Rocks! An Introduction to Combinatorics". arXiv:2108.04902 [math.HO].

Bibliography

See also

fi:Todennäköisyysteoria#Tuloperiaate ja summaperiaate