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

Lesson Plan Sample for Grade 8
Lesson Plan Sample for Grade 8Lesson Plan Sample for Grade 8
Lesson Plan Sample for Grade 8DC Marie Lagura
 
Mathematics 9 Six Trigonometric Ratios
Mathematics 9 Six Trigonometric RatiosMathematics 9 Six Trigonometric Ratios
Mathematics 9 Six Trigonometric RatiosJuan Miguel Palero
 
Action Research on Math Integers chapter Grade 7
Action Research on Math Integers chapter Grade 7 Action Research on Math Integers chapter Grade 7
Action Research on Math Integers chapter Grade 7 PrasannaUruthiraling
 
Assessment in mathematics
Assessment in mathematicsAssessment in mathematics
Assessment in mathematicsCarlo Magno
 
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
 
Finite Geometric Series dlp
Finite Geometric Series dlpFinite Geometric Series dlp
Finite Geometric Series dlpRichard Paulino
 
Lesson plan-advanced algebra Grade 7
Lesson plan-advanced algebra Grade 7Lesson plan-advanced algebra Grade 7
Lesson plan-advanced algebra Grade 7yhuds
 
Cartesian Coordinate Plane - Mathematics 8
Cartesian Coordinate Plane - Mathematics 8Cartesian Coordinate Plane - Mathematics 8
Cartesian Coordinate Plane - Mathematics 8Carlo Luna
 
Concept of angle of elevation and depression
Concept of angle of elevation and depressionConcept of angle of elevation and depression
Concept of angle of elevation and depressionJunila Tejada
 
Detailed Lesson Plan in Mathematics
Detailed Lesson Plan in MathematicsDetailed Lesson Plan in Mathematics
Detailed Lesson Plan in MathematicsAbbygale Jade
 
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 on Addition & subtraction of integers
lesson plan on Addition & subtraction of integerslesson plan on Addition & subtraction of integers
lesson plan on Addition & subtraction of integersCheryl Asia
 
Tos 2nd qtr g10 math
Tos 2nd qtr g10 mathTos 2nd qtr g10 math
Tos 2nd qtr g10 mathjomargersalia
 
Detailed Lesson Plan on Measures of Variability of Grouped and Ungrouped Data
Detailed Lesson Plan on Measures of Variability of Grouped and Ungrouped DataDetailed Lesson Plan on Measures of Variability of Grouped and Ungrouped Data
Detailed Lesson Plan on Measures of Variability of Grouped and Ungrouped DataJunila Tejada
 
Lesson plan in mathematics 8 (Factoring Perfect Square Trinomial)
Lesson plan in mathematics 8 (Factoring Perfect Square Trinomial) Lesson plan in mathematics 8 (Factoring Perfect Square Trinomial)
Lesson plan in mathematics 8 (Factoring Perfect Square Trinomial) Rachel Ann
 
1.3.1 Inductive and Deductive Reasoning
1.3.1 Inductive and Deductive Reasoning1.3.1 Inductive and Deductive Reasoning
1.3.1 Inductive and Deductive Reasoningsmiller5
 
logic and set theory
logic and set theorylogic and set theory
logic and set theoryNathan Trillo
 
Mathematical investigation
Mathematical investigationMathematical investigation
Mathematical investigationgiselle_just
 
Math 8 Curriculum Guide rev.2016
Math 8 Curriculum Guide rev.2016Math 8 Curriculum Guide rev.2016
Math 8 Curriculum Guide rev.2016Chuckry Maunes
 
Mathematics 8 cg
Mathematics 8 cgMathematics 8 cg
Mathematics 8 cgRaul Raul
 

What's hot (20)

Lesson Plan Sample for Grade 8
Lesson Plan Sample for Grade 8Lesson Plan Sample for Grade 8
Lesson Plan Sample for Grade 8
 
Mathematics 9 Six Trigonometric Ratios
Mathematics 9 Six Trigonometric RatiosMathematics 9 Six Trigonometric Ratios
Mathematics 9 Six Trigonometric Ratios
 
Action Research on Math Integers chapter Grade 7
Action Research on Math Integers chapter Grade 7 Action Research on Math Integers chapter Grade 7
Action Research on Math Integers chapter Grade 7
 
Assessment in mathematics
Assessment in mathematicsAssessment in mathematics
Assessment in mathematics
 
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
 
Finite Geometric Series dlp
Finite Geometric Series dlpFinite Geometric Series dlp
Finite Geometric Series dlp
 
Lesson plan-advanced algebra Grade 7
Lesson plan-advanced algebra Grade 7Lesson plan-advanced algebra Grade 7
Lesson plan-advanced algebra Grade 7
 
Cartesian Coordinate Plane - Mathematics 8
Cartesian Coordinate Plane - Mathematics 8Cartesian Coordinate Plane - Mathematics 8
Cartesian Coordinate Plane - Mathematics 8
 
Concept of angle of elevation and depression
Concept of angle of elevation and depressionConcept of angle of elevation and depression
Concept of angle of elevation and depression
 
Detailed Lesson Plan in Mathematics
Detailed Lesson Plan in MathematicsDetailed Lesson Plan in Mathematics
Detailed Lesson Plan in Mathematics
 
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 on Addition & subtraction of integers
lesson plan on Addition & subtraction of integerslesson plan on Addition & subtraction of integers
lesson plan on Addition & subtraction of integers
 
Tos 2nd qtr g10 math
Tos 2nd qtr g10 mathTos 2nd qtr g10 math
Tos 2nd qtr g10 math
 
Detailed Lesson Plan on Measures of Variability of Grouped and Ungrouped Data
Detailed Lesson Plan on Measures of Variability of Grouped and Ungrouped DataDetailed Lesson Plan on Measures of Variability of Grouped and Ungrouped Data
Detailed Lesson Plan on Measures of Variability of Grouped and Ungrouped Data
 
Lesson plan in mathematics 8 (Factoring Perfect Square Trinomial)
Lesson plan in mathematics 8 (Factoring Perfect Square Trinomial) Lesson plan in mathematics 8 (Factoring Perfect Square Trinomial)
Lesson plan in mathematics 8 (Factoring Perfect Square Trinomial)
 
1.3.1 Inductive and Deductive Reasoning
1.3.1 Inductive and Deductive Reasoning1.3.1 Inductive and Deductive Reasoning
1.3.1 Inductive and Deductive Reasoning
 
logic and set theory
logic and set theorylogic and set theory
logic and set theory
 
Mathematical investigation
Mathematical investigationMathematical investigation
Mathematical investigation
 
Math 8 Curriculum Guide rev.2016
Math 8 Curriculum Guide rev.2016Math 8 Curriculum Guide rev.2016
Math 8 Curriculum Guide rev.2016
 
Mathematics 8 cg
Mathematics 8 cgMathematics 8 cg
Mathematics 8 cg
 

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

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
“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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 

Recently uploaded (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
“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...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 

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.