SlideShare a Scribd company logo
1 of 23
Download to read offline
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

What's hot

Geometric Sequence
Geometric SequenceGeometric Sequence
Geometric SequenceJoey Valdriz
 
Lesson plan on Linear inequalities in two variables
Lesson plan on Linear inequalities in two variablesLesson plan on Linear inequalities in two variables
Lesson plan on Linear inequalities in two variablesLorie Jane Letada
 
Detailed Lesson Plan in Mathematics
Detailed Lesson Plan in MathematicsDetailed Lesson Plan in Mathematics
Detailed Lesson Plan in MathematicsAbbygale Jade
 
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...Determining the Inverse, Converse, and Contrapositive of an If-then Statement...
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...Ma. Loiel Salome Nabelon
 
Linear Equations in Two Variables
Linear Equations in Two VariablesLinear Equations in Two Variables
Linear Equations in Two Variablessheisirenebkm
 
Detailed lesson plan of Similar Triangles in Inductive Method
Detailed lesson plan of Similar Triangles in Inductive MethodDetailed lesson plan of Similar Triangles in Inductive Method
Detailed lesson plan of Similar Triangles in Inductive MethodLorie Jane Letada
 
Factors on difference of two squares
Factors on difference of two squaresFactors on difference of two squares
Factors on difference of two squaresLorie Jane Letada
 
Contextualized Lesson Plan in Math 7 Linear Equation in One Variable
Contextualized Lesson Plan in Math 7 Linear Equation in One VariableContextualized Lesson Plan in Math 7 Linear Equation in One Variable
Contextualized Lesson Plan in Math 7 Linear Equation in One VariableDepartment of Education - Philippines
 
Math 10 Curriculum Guide
Math 10 Curriculum GuideMath 10 Curriculum Guide
Math 10 Curriculum Guideleybrigs
 
SOLVING PROBLEMS ON ANGLES AND SIDES OF POLYGON
SOLVING PROBLEMS ON ANGLES AND SIDES OF POLYGONSOLVING PROBLEMS ON ANGLES AND SIDES OF POLYGON
SOLVING PROBLEMS ON ANGLES AND SIDES OF POLYGONArleen Tongol
 
Graphing polynomial functions (Grade 10)
Graphing polynomial functions (Grade 10)Graphing polynomial functions (Grade 10)
Graphing polynomial functions (Grade 10)grace joy canseco
 
5As Lesson Plan on Pairs of Angles Formed by Parallel Lines Cut by a Transversal
5As Lesson Plan on Pairs of Angles Formed by Parallel Lines Cut by a Transversal5As Lesson Plan on Pairs of Angles Formed by Parallel Lines Cut by a Transversal
5As Lesson Plan on Pairs of Angles Formed by Parallel Lines Cut by a TransversalElton John Embodo
 
detailed lesson plan - ratio and proportion
detailed lesson plan - ratio and proportiondetailed lesson plan - ratio and proportion
detailed lesson plan - ratio and proportionAubrey Rose
 
Lesson Plan Math : History of measurement
Lesson Plan Math : History of measurementLesson Plan Math : History of measurement
Lesson Plan Math : History of measurementxjason001
 
If and then statements
If and then statementsIf and then statements
If and then statementsValDarylAnhao2
 

What's hot (20)

Geometric Sequence
Geometric SequenceGeometric Sequence
Geometric Sequence
 
Lesson 1: Special Products
Lesson 1: Special ProductsLesson 1: Special Products
Lesson 1: Special Products
 
Lesson plan on Linear inequalities in two variables
Lesson plan on Linear inequalities in two variablesLesson plan on Linear inequalities in two variables
Lesson plan on Linear inequalities in two variables
 
Polynomial equations
Polynomial equationsPolynomial equations
Polynomial equations
 
Detailed Lesson Plan in Mathematics
Detailed Lesson Plan in MathematicsDetailed Lesson Plan in Mathematics
Detailed Lesson Plan in Mathematics
 
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...Determining the Inverse, Converse, and Contrapositive of an If-then Statement...
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...
 
Linear Equations in Two Variables
Linear Equations in Two VariablesLinear Equations in Two Variables
Linear Equations in Two Variables
 
For demo lesson plan
For demo lesson planFor demo lesson plan
For demo lesson plan
 
Division Of Polynomials
Division Of PolynomialsDivision Of Polynomials
Division Of Polynomials
 
Detailed lesson plan of Similar Triangles in Inductive Method
Detailed lesson plan of Similar Triangles in Inductive MethodDetailed lesson plan of Similar Triangles in Inductive Method
Detailed lesson plan of Similar Triangles in Inductive Method
 
Factors on difference of two squares
Factors on difference of two squaresFactors on difference of two squares
Factors on difference of two squares
 
Contextualized Lesson Plan in Math 7 Linear Equation in One Variable
Contextualized Lesson Plan in Math 7 Linear Equation in One VariableContextualized Lesson Plan in Math 7 Linear Equation in One Variable
Contextualized Lesson Plan in Math 7 Linear Equation in One Variable
 
Math 10 Curriculum Guide
Math 10 Curriculum GuideMath 10 Curriculum Guide
Math 10 Curriculum Guide
 
SOLVING PROBLEMS ON ANGLES AND SIDES OF POLYGON
SOLVING PROBLEMS ON ANGLES AND SIDES OF POLYGONSOLVING PROBLEMS ON ANGLES AND SIDES OF POLYGON
SOLVING PROBLEMS ON ANGLES AND SIDES OF POLYGON
 
Graphing polynomial functions (Grade 10)
Graphing polynomial functions (Grade 10)Graphing polynomial functions (Grade 10)
Graphing polynomial functions (Grade 10)
 
5As Lesson Plan on Pairs of Angles Formed by Parallel Lines Cut by a Transversal
5As Lesson Plan on Pairs of Angles Formed by Parallel Lines Cut by a Transversal5As Lesson Plan on Pairs of Angles Formed by Parallel Lines Cut by a Transversal
5As Lesson Plan on Pairs of Angles Formed by Parallel Lines Cut by a Transversal
 
Math 8 – congruent triangles
Math 8 – congruent trianglesMath 8 – congruent triangles
Math 8 – congruent triangles
 
detailed lesson plan - ratio and proportion
detailed lesson plan - ratio and proportiondetailed lesson plan - ratio and proportion
detailed lesson plan - ratio and proportion
 
Lesson Plan Math : History of measurement
Lesson Plan Math : History of measurementLesson Plan Math : History of measurement
Lesson Plan Math : History of measurement
 
If and then statements
If and then statementsIf and then statements
If and then statements
 

Similar to Introduction to Invariance Principle

Sept. 29, 2014
Sept. 29, 2014Sept. 29, 2014
Sept. 29, 2014khyps13
 
Mathematical Statistics Homework Help
Mathematical Statistics Homework HelpMathematical Statistics Homework Help
Mathematical Statistics Homework HelpExcel Homework Help
 
November 3, 2014
November 3, 2014November 3, 2014
November 3, 2014khyps13
 
counting principle.ppt
counting principle.pptcounting principle.ppt
counting principle.pptRizaCatli2
 
Q3_W1_Exploring_Random_Variables.Powerpoint
Q3_W1_Exploring_Random_Variables.PowerpointQ3_W1_Exploring_Random_Variables.Powerpoint
Q3_W1_Exploring_Random_Variables.PowerpointRomualdoDayrit1
 
October 21, 2015
October 21, 2015October 21, 2015
October 21, 2015khyps13
 
Tutorial linear equations and linear inequalities
Tutorial linear equations and linear inequalitiesTutorial linear equations and linear inequalities
Tutorial linear equations and linear inequalitieskhyps13
 
Solving and graphing inequalities lecture
Solving and graphing inequalities lectureSolving and graphing inequalities lecture
Solving and graphing inequalities lectureDaisy Zambrano
 
Solving and graphing inequalities lecture 1
Solving and graphing inequalities lecture 1Solving and graphing inequalities lecture 1
Solving and graphing inequalities lecture 1Daisy Zambrano
 
counting techniques
counting techniquescounting techniques
counting techniquesUnsa Shakir
 
Math project core the MSW ( 1 )
Math project core the MSW ( 1 )Math project core the MSW ( 1 )
Math project core the MSW ( 1 )Khalid Al Hanaei
 
Mathematics high school level quiz - Part I
Mathematics high school level quiz - Part IMathematics high school level quiz - Part I
Mathematics high school level quiz - Part IITfC-Edu-Team
 

Similar to Introduction to Invariance Principle (20)

coloring problems
coloring problemscoloring problems
coloring problems
 
Sept. 29, 2014
Sept. 29, 2014Sept. 29, 2014
Sept. 29, 2014
 
Mathematical Statistics Homework Help
Mathematical Statistics Homework HelpMathematical Statistics Homework Help
Mathematical Statistics Homework Help
 
Stochastic Process Exam Help
Stochastic Process Exam HelpStochastic Process Exam Help
Stochastic Process Exam Help
 
Mathematical Statistics Homework Help
Mathematical Statistics Homework HelpMathematical Statistics Homework Help
Mathematical Statistics Homework Help
 
Mth 4108-1 b
Mth 4108-1 bMth 4108-1 b
Mth 4108-1 b
 
Mth 4108-1 b
Mth 4108-1 bMth 4108-1 b
Mth 4108-1 b
 
November 3, 2014
November 3, 2014November 3, 2014
November 3, 2014
 
counting principle.ppt
counting principle.pptcounting principle.ppt
counting principle.ppt
 
Q3_W1_Exploring_Random_Variables.Powerpoint
Q3_W1_Exploring_Random_Variables.PowerpointQ3_W1_Exploring_Random_Variables.Powerpoint
Q3_W1_Exploring_Random_Variables.Powerpoint
 
Stochastic Process Assignment Help
Stochastic Process Assignment HelpStochastic Process Assignment Help
Stochastic Process Assignment Help
 
October 21, 2015
October 21, 2015October 21, 2015
October 21, 2015
 
Results of Round 1
Results of Round 1Results of Round 1
Results of Round 1
 
Tutorial linear equations and linear inequalities
Tutorial linear equations and linear inequalitiesTutorial linear equations and linear inequalities
Tutorial linear equations and linear inequalities
 
Solving and graphing inequalities lecture
Solving and graphing inequalities lectureSolving and graphing inequalities lecture
Solving and graphing inequalities lecture
 
Solving and graphing inequalities lecture 1
Solving and graphing inequalities lecture 1Solving and graphing inequalities lecture 1
Solving and graphing inequalities lecture 1
 
counting techniques
counting techniquescounting techniques
counting techniques
 
Schl2008
Schl2008Schl2008
Schl2008
 
Math project core the MSW ( 1 )
Math project core the MSW ( 1 )Math project core the MSW ( 1 )
Math project core the MSW ( 1 )
 
Mathematics high school level quiz - Part I
Mathematics high school level quiz - Part IMathematics high school level quiz - Part I
Mathematics high school level quiz - Part I
 

Recently uploaded

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 

Recently uploaded (20)

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 

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.