SlideShare a Scribd company logo
3
Most read
5
Most read
14
Most read
Introduction to Invariance Principle
If there is repetition, look for what does not change
–Arthur Engel.
Freeman Cheng, Idris Tarwala
Erindale Secondary School
Overview
Introduction
Coloring
Pairty
Monovariants
Definition
An invariant is something that doesn’t change.
Sometimes we are presented with a problem where some task is
repeatedly performed, such as tiling a chessboard with 2x1 tiles.
We ask ourselves, in such processes, what doesn’t change? Some
questions to consider asking yourself:
1. Can a given end state be reached?
2. What are the possible end states?
3. Is there a convergence to an end state?
4. Or is there a period?
(Four questions adapted from PSS by Arthur Engel).
Coloring Arguments
The first three examples can be solved using coloring arguments.
Tiling a Chessboard w/ Two Missing Pieces
Example 1
Can we completely tile a 8x8 chessboard with two opposite corner
pieces removed, with 2x1 tiles? (No overlapping, of course).
At first, we’re not sure how to approach this problem, so the best
strategy at the moment is to try tiling ourselves.
Example 1
Can we completely tile a 8x8 chessboard with two opposite corner
pieces removed, with 2x1 tiles? (No overlapping, of course).
Solution
We list some observations. First, color the chessboard in
alternating pattern like in previous slide.
1. Every 2x1 tile covers one black square and one white square.
2. In the modified board there are 32 black squares, and 30
white squares.
3. Observation 1 implies that in any configuration, the number
of black squares covered must equal the number of white
squares covered. Thus, by observation 2, not all tiles can be
covered without overlap.
Tiling with T-tetrominos
Example 2
Prove that a 10x10 board cannot be covered by T-shaped
tetrominos? (No overlap, of course).
Solution
Color the board like shown below.
Solution
Some observations.
1. The T-tetromino can either cover an area with 3 white, 1
black (type 1) or 1 white, 3 black (type 2).
2. If the board can be completely tiled, it will take 100
4 = 25 tiles.
3. Suppose that we can tile the board completely, then there
must be an equal number of type 1s and type 2s since the
number of white squares is equal to the number of black
squares (they need to balance each other).
4. This is impossible, since 25 is odd.
Colored Points the Plane
Example 3
a) Each point on the plane is colored either red or blue. Prove that
there exist two points of the same color of distance 1.
b) Each point on the plane is colored either red, blue, or green.
Prove that there exist two points of the same color of distance 1.
Solution
a) Construct an equilateral triangle, then proof by contradiction.
b) Solution orally given. For people reviewing, it is left to the
reader as exercise.
Parity (Evens and Odds)
The next three example deal with invariance in parity.
Numbers on a Circle
Example 4
A circle is divided into 6 sectors. The numbers 1, 0, 1, 0, 0, and 0
are written in that order. You can increase two adjacent numbers
by 1. Is it possible to make all numbers equal?
Again, it is important to try some examples.
Solution
Again, we make some observations.
1. Adding 1 to two adjacent sectors does not affect the
difference between the two sectors.
2. Label the values in each sector a, b, c, d, e, f . Any move does
not affect the value a − b + c − d + e − f = 2.
3. For all values in each sector to equal,
a = b = c = d = e = f =⇒ a − b + c − d + e − f = 0,
which by observation 2 is impossible.
Numbers on a Blackboard
Example 5
Let n be an odd positive integer. The first 2n integers are written
on the blackboard. Erase any two integers on the blackboard, and
replace them with their difference. Eventually, there will be one
number left. Prove that this number is odd.
Solution
Some observations.
1. The initial sum
1 + 2 + ... + 2n =
(2n + 1)(2n)
2
= (2n + 1)(n)
which has to be odd.
2. Let numbers x and y be erased where x ≥ y. Then, the
number x − y is added. The net change is
−(x + y) + (x − y) = −2y
which is even.
3. Every move, the net change is even, so after every move the
sum remains odd.
A Codeforces Problem
Example 6
The jury picked an integer x not less than 0 and not greater than
214 − 1. You have to guess this integer. To do so, you may ask no
more than 2 queries. Each query should consist of 100 integer
numbers a1, a2, ..., a100 (each integer should be not less than 0 and
not greater than 214 − 1). In response to your query, the jury will
pick one integer i (1 ≤ i ≤ 100) and tell you the value of ai XOR
x (the bitwise XOR of ai and x). There is an additional constraint
on the queries: all 200 integers you use in the queries should be
distinct. How should we submit the queries?
Solution
Consider 14-digit binary string where leading digits can be 0. We
make a construction. Query 1: construct binary numbers with first
7 digits as 1, the last 7 randomized (we are guaranteed over 100
numbers since 27 > 100. Similarly, for query 2, make the last 7
digits 0 and first 7 randomized. Thus, we can uniquely determine
our number.
Monovariants
Definition
A monovariant is a property that only changes in one direction
(increases or decreases). For example, the total sum of some
sequence is strictly decreasing.
The next problem deals with monovariants.
Enemies at Erindale
Example 7
In Erindale, each student has at most three enemies. Prove that
the students can be split into two groups, such that each student
has at most one enemy in his/her group.
Solution
Consider the algorithm: first split randomly. Then, if a student has
two or more enemies in his/her group, move the student to the
other group. To prove that this algorithm terminates, consider the
sum of all enemy relationships. After each iteration of the
algorithm, the sum decreases by at least 1. (Easy to verify this, left
to the reader). Since the total sum of enemy relationships in the
two groups is a non-negative integer value, algorithm must
terminate ie. there will be no student with more than 1 enemy.
References
A significant chunk of problems were Howard Halim’s handout on
invariance principle (howardhalim.com). Also thanks to Andrew
Tang for showing me the CodeForces problem.

More Related Content

DOCX
For demo lesson plan
DOCX
Lesson plan in math (scientific notation)
DOCX
Lesson plan (inset demo)
DOCX
Detailed Lesson Plan in Mathematics
PPTX
Ict Tools In Mathematics Instruction
PPTX
PROBABILITY OF MUTUALLY EXCLUSIVE EVENTS final.pptx
PDF
5As Method of Lesson Plan on Ssolving systems of linear equations in two vari...
PPTX
A higher problem solving strategy
For demo lesson plan
Lesson plan in math (scientific notation)
Lesson plan (inset demo)
Detailed Lesson Plan in Mathematics
Ict Tools In Mathematics Instruction
PROBABILITY OF MUTUALLY EXCLUSIVE EVENTS final.pptx
5As Method of Lesson Plan on Ssolving systems of linear equations in two vari...
A higher problem solving strategy

What's hot (20)

DOCX
Finite Geometric Series dlp
DOCX
Contextualized Lesson Plan in Math 8 Graphs of Linear Equations using Intercepts
DOCX
Table of specification in math test
PDF
Lesson plan-advanced algebra Grade 7
DOCX
Detailed lesson plan of Similar Triangles in Inductive Method
DOCX
MATH Lesson Plan sample for demo teaching
PPT
1.2 Irrational Numbers ppt
PPTX
Probability of Union of Two events
PDF
Math 9 Curriculum Guide rev.2016
PDF
Linear Equations in Two Variables
PPTX
Difference between routine and non routine problems
PDF
Solving Systems of Linear Equations in Two Variables by Graphing
DOCX
Lesson plan about statistics math 7
PPTX
Irrational number
PPSX
Adding and Subtracting Polynomials - Math 7 Q2W4 LC1
DOCX
A detailed lesson plan in permutation
DOCX
Semi-detailed Lesson Plan in Probabilty
DOCX
COT2 Lesson Plan Grade 8
DOCX
Detailed Lesson Plan in Math
PPTX
7.7 Solving Radical Equations
Finite Geometric Series dlp
Contextualized Lesson Plan in Math 8 Graphs of Linear Equations using Intercepts
Table of specification in math test
Lesson plan-advanced algebra Grade 7
Detailed lesson plan of Similar Triangles in Inductive Method
MATH Lesson Plan sample for demo teaching
1.2 Irrational Numbers ppt
Probability of Union of Two events
Math 9 Curriculum Guide rev.2016
Linear Equations in Two Variables
Difference between routine and non routine problems
Solving Systems of Linear Equations in Two Variables by Graphing
Lesson plan about statistics math 7
Irrational number
Adding and Subtracting Polynomials - Math 7 Q2W4 LC1
A detailed lesson plan in permutation
Semi-detailed Lesson Plan in Probabilty
COT2 Lesson Plan Grade 8
Detailed Lesson Plan in Math
7.7 Solving Radical Equations
Ad

Similar to Introduction to Invariance Principle (20)

PDF
PPTX
Sept. 29, 2014
PPTX
Mathematical Statistics Homework Help
PPTX
Stochastic Process Exam Help
PPTX
Mathematical Statistics Homework Help
DOC
Mth 4108-1 b
DOC
Mth 4108-1 b
PPTX
November 3, 2014
PPT
counting principle.ppt
PPTX
Q3_W1_Exploring_Random_Variables.Powerpoint
PPTX
Stochastic Process Assignment Help
PPTX
October 21, 2015
PDF
Results of Round 1
PPTX
Tutorial linear equations and linear inequalities
PPTX
Solving and graphing inequalities lecture
PPTX
Solving and graphing inequalities lecture 1
PPTX
counting techniques
PPTX
CM 01 CP 03 Topics 01-03 Problem Solving and Reasoning.pptx
PPT
Schl2008
PPTX
Unit_I_Lesson-1_Exploring_Random_Variables.pptx
Sept. 29, 2014
Mathematical Statistics Homework Help
Stochastic Process Exam Help
Mathematical Statistics Homework Help
Mth 4108-1 b
Mth 4108-1 b
November 3, 2014
counting principle.ppt
Q3_W1_Exploring_Random_Variables.Powerpoint
Stochastic Process Assignment Help
October 21, 2015
Results of Round 1
Tutorial linear equations and linear inequalities
Solving and graphing inequalities lecture
Solving and graphing inequalities lecture 1
counting techniques
CM 01 CP 03 Topics 01-03 Problem Solving and Reasoning.pptx
Schl2008
Unit_I_Lesson-1_Exploring_Random_Variables.pptx
Ad

Recently uploaded (20)

PDF
Computing-Curriculum for Schools in Ghana
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Presentation on HIE in infants and its manifestations
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
GDM (1) (1).pptx small presentation for students
PDF
01-Introduction-to-Information-Management.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Cell Structure & Organelles in detailed.
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Computing-Curriculum for Schools in Ghana
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Final Presentation General Medicine 03-08-2024.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Pharma ospi slides which help in ospi learning
Presentation on HIE in infants and its manifestations
Pharmacology of Heart Failure /Pharmacotherapy of CHF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
GDM (1) (1).pptx small presentation for students
01-Introduction-to-Information-Management.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Cell Structure & Organelles in detailed.
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Microbial diseases, their pathogenesis and prophylaxis
Final Presentation General Medicine 03-08-2024.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf

Introduction to Invariance Principle

  • 1. Introduction to Invariance Principle If there is repetition, look for what does not change –Arthur Engel. Freeman Cheng, Idris Tarwala Erindale Secondary School
  • 3. Definition An invariant is something that doesn’t change. Sometimes we are presented with a problem where some task is repeatedly performed, such as tiling a chessboard with 2x1 tiles. We ask ourselves, in such processes, what doesn’t change? Some questions to consider asking yourself: 1. Can a given end state be reached? 2. What are the possible end states? 3. Is there a convergence to an end state? 4. Or is there a period? (Four questions adapted from PSS by Arthur Engel).
  • 4. Coloring Arguments The first three examples can be solved using coloring arguments.
  • 5. Tiling a Chessboard w/ Two Missing Pieces Example 1 Can we completely tile a 8x8 chessboard with two opposite corner pieces removed, with 2x1 tiles? (No overlapping, of course). At first, we’re not sure how to approach this problem, so the best strategy at the moment is to try tiling ourselves.
  • 6. Example 1 Can we completely tile a 8x8 chessboard with two opposite corner pieces removed, with 2x1 tiles? (No overlapping, of course).
  • 7. Solution We list some observations. First, color the chessboard in alternating pattern like in previous slide. 1. Every 2x1 tile covers one black square and one white square. 2. In the modified board there are 32 black squares, and 30 white squares. 3. Observation 1 implies that in any configuration, the number of black squares covered must equal the number of white squares covered. Thus, by observation 2, not all tiles can be covered without overlap.
  • 8. Tiling with T-tetrominos Example 2 Prove that a 10x10 board cannot be covered by T-shaped tetrominos? (No overlap, of course).
  • 9. Solution Color the board like shown below.
  • 10. Solution Some observations. 1. The T-tetromino can either cover an area with 3 white, 1 black (type 1) or 1 white, 3 black (type 2). 2. If the board can be completely tiled, it will take 100 4 = 25 tiles. 3. Suppose that we can tile the board completely, then there must be an equal number of type 1s and type 2s since the number of white squares is equal to the number of black squares (they need to balance each other). 4. This is impossible, since 25 is odd.
  • 11. Colored Points the Plane Example 3 a) Each point on the plane is colored either red or blue. Prove that there exist two points of the same color of distance 1. b) Each point on the plane is colored either red, blue, or green. Prove that there exist two points of the same color of distance 1.
  • 12. Solution a) Construct an equilateral triangle, then proof by contradiction. b) Solution orally given. For people reviewing, it is left to the reader as exercise.
  • 13. Parity (Evens and Odds) The next three example deal with invariance in parity.
  • 14. Numbers on a Circle Example 4 A circle is divided into 6 sectors. The numbers 1, 0, 1, 0, 0, and 0 are written in that order. You can increase two adjacent numbers by 1. Is it possible to make all numbers equal? Again, it is important to try some examples.
  • 15. Solution Again, we make some observations. 1. Adding 1 to two adjacent sectors does not affect the difference between the two sectors. 2. Label the values in each sector a, b, c, d, e, f . Any move does not affect the value a − b + c − d + e − f = 2. 3. For all values in each sector to equal, a = b = c = d = e = f =⇒ a − b + c − d + e − f = 0, which by observation 2 is impossible.
  • 16. Numbers on a Blackboard Example 5 Let n be an odd positive integer. The first 2n integers are written on the blackboard. Erase any two integers on the blackboard, and replace them with their difference. Eventually, there will be one number left. Prove that this number is odd.
  • 17. Solution Some observations. 1. The initial sum 1 + 2 + ... + 2n = (2n + 1)(2n) 2 = (2n + 1)(n) which has to be odd. 2. Let numbers x and y be erased where x ≥ y. Then, the number x − y is added. The net change is −(x + y) + (x − y) = −2y which is even. 3. Every move, the net change is even, so after every move the sum remains odd.
  • 18. A Codeforces Problem Example 6 The jury picked an integer x not less than 0 and not greater than 214 − 1. You have to guess this integer. To do so, you may ask no more than 2 queries. Each query should consist of 100 integer numbers a1, a2, ..., a100 (each integer should be not less than 0 and not greater than 214 − 1). In response to your query, the jury will pick one integer i (1 ≤ i ≤ 100) and tell you the value of ai XOR x (the bitwise XOR of ai and x). There is an additional constraint on the queries: all 200 integers you use in the queries should be distinct. How should we submit the queries?
  • 19. Solution Consider 14-digit binary string where leading digits can be 0. We make a construction. Query 1: construct binary numbers with first 7 digits as 1, the last 7 randomized (we are guaranteed over 100 numbers since 27 > 100. Similarly, for query 2, make the last 7 digits 0 and first 7 randomized. Thus, we can uniquely determine our number.
  • 20. Monovariants Definition A monovariant is a property that only changes in one direction (increases or decreases). For example, the total sum of some sequence is strictly decreasing. The next problem deals with monovariants.
  • 21. Enemies at Erindale Example 7 In Erindale, each student has at most three enemies. Prove that the students can be split into two groups, such that each student has at most one enemy in his/her group.
  • 22. Solution Consider the algorithm: first split randomly. Then, if a student has two or more enemies in his/her group, move the student to the other group. To prove that this algorithm terminates, consider the sum of all enemy relationships. After each iteration of the algorithm, the sum decreases by at least 1. (Easy to verify this, left to the reader). Since the total sum of enemy relationships in the two groups is a non-negative integer value, algorithm must terminate ie. there will be no student with more than 1 enemy.
  • 23. References A significant chunk of problems were Howard Halim’s handout on invariance principle (howardhalim.com). Also thanks to Andrew Tang for showing me the CodeForces problem.