Not algo specifc, used as an example for proof of contradicction
This principle states that, for is a positive integer, and objects are placed into boxes. Then there is at least one box containing two or more of the objects.
Let represent the fact that objects are placed into boxes. Such that:
let represent the fact that at least one box containing two or more of the objects
Let represent statement
Step 1 Assume negation
Negation of can be represented by
(De Morgan’s laws)
The negation of states that is true and is false.
Assume:
- number of total objects exceeds number of boxes
- no box has more more than one object
Step 2 Show that a contradiction occurs
No box has more than one object. Thus Direct contradiction with the assumed statement “number of total objects exceeds number of boxes”
Thus as is false. is true