SlideShare a Scribd company logo
1 of 9
How did Blanchard’s reordering
reduce the number of nonzeros
and how can we reduce the
number of brush rinses?
Firstly, let’s name the colours in each of
our four triangles
We can then write up a table of triangles
with all the colours they need painting in.
Triangle 1 Purple, Brown, Blue, Red
Triangle 2 Blue, Red, Purple, Orange
Triangle 3 Orange, Pink, Yellow, Green
Triangle 4 Yellow, Green, Blue, Orange
Each time a brush changes colour, it needs a rinse.
With two brushes, if we colour in the triangles in the order T1, T2, T3, T4, we
will need 9 rinses.
If instead we use the order T1, T3, T2 and T4, we end up with 11 rinses.
To find the perfect ordering, we’d have to count the rinses for all possible
orderings, which is the factorial of the number of triangles, i.e., 24.
This is the kind of combinatorial problem that Blanchard was solving above.
Our aim is to find an ordering that reduces brush rinses significantly.
To do this, let’s rewrite our table a bit differently.
We’ll use a 1 if a triangle has a colour, and 0 if it doesn’t.
Purple Blue Brown Red Orange Green Pink Yellow
T1 1 1 1 1 0 0 0 0
T2 1 1 0 1 1 0 0 0
T3 0 0 0 0 1 1 1 1
T4 0 1 0 0 1 1 0 1
Rewriting our table as a matrix, we get
Multiplying T by its transpose, we’d get another matrix A.
Each row (and column) of A corresponds to a triangle
Now, we can reorder A such that the 0 entries are pushed as far away
from the diagonal as possible.
This is exactly what Blanchard was attempting to do.
Doing so gives us a rearranged matrix A* as below.
Having rearranged the row means we’ve reordered the triangles. Our
ordering now reads T1, T2, T4, T3.
Counting the number of rinses, this ordering has only 8, i.e., smaller
than the naïve orderings we tried out before!

More Related Content

What's hot

Area of a Circle
Area of a CircleArea of a Circle
Area of a Circle
146online
 
Unit 7 lesson 3 ratios tables and graphs
Unit 7 lesson 3 ratios tables and graphsUnit 7 lesson 3 ratios tables and graphs
Unit 7 lesson 3 ratios tables and graphs
mlabuski
 
Chapter 2 Squares, Square roots, Cubes and Cube roots
Chapter 2 Squares, Square roots, Cubes and Cube rootsChapter 2 Squares, Square roots, Cubes and Cube roots
Chapter 2 Squares, Square roots, Cubes and Cube roots
Angelyn Yap
 
Area and circumference_of_a_circle
Area and circumference_of_a_circleArea and circumference_of_a_circle
Area and circumference_of_a_circle
EdTechonGC Mallett
 
Square roots cube_roots
Square roots cube_rootsSquare roots cube_roots
Square roots cube_roots
Worserbay
 

What's hot (20)

Area of a Circle
Area of a CircleArea of a Circle
Area of a Circle
 
Polynomial division
Polynomial divisionPolynomial division
Polynomial division
 
cubes and cube root
cubes and cube rootcubes and cube root
cubes and cube root
 
Circumference of a circle
Circumference of a circleCircumference of a circle
Circumference of a circle
 
Unit 7 lesson 3 ratios tables and graphs
Unit 7 lesson 3 ratios tables and graphsUnit 7 lesson 3 ratios tables and graphs
Unit 7 lesson 3 ratios tables and graphs
 
Perimeter and Circumference
Perimeter and CircumferencePerimeter and Circumference
Perimeter and Circumference
 
Cubes
CubesCubes
Cubes
 
Chapter 2 Squares, Square roots, Cubes and Cube roots
Chapter 2 Squares, Square roots, Cubes and Cube rootsChapter 2 Squares, Square roots, Cubes and Cube roots
Chapter 2 Squares, Square roots, Cubes and Cube roots
 
Area and circumference of circles
Area and circumference of circlesArea and circumference of circles
Area and circumference of circles
 
Cube Roots from CCSS
Cube Roots from CCSSCube Roots from CCSS
Cube Roots from CCSS
 
Vm4
Vm4Vm4
Vm4
 
Multiplication of decimals
Multiplication of decimalsMultiplication of decimals
Multiplication of decimals
 
Vedic maths
Vedic mathsVedic maths
Vedic maths
 
Circle, Radius, Diameter, Circumference and Area
Circle, Radius, Diameter, Circumference and AreaCircle, Radius, Diameter, Circumference and Area
Circle, Radius, Diameter, Circumference and Area
 
CLASS VIII MATHS CUBE AND CUBE ROOTS
CLASS VIII MATHS CUBE AND CUBE ROOTSCLASS VIII MATHS CUBE AND CUBE ROOTS
CLASS VIII MATHS CUBE AND CUBE ROOTS
 
Area and circumference_of_a_circle
Area and circumference_of_a_circleArea and circumference_of_a_circle
Area and circumference_of_a_circle
 
11.1 Circumference and Area of Circles
11.1 Circumference and Area of Circles11.1 Circumference and Area of Circles
11.1 Circumference and Area of Circles
 
Cube roots
Cube rootsCube roots
Cube roots
 
Square roots cube_roots
Square roots cube_rootsSquare roots cube_roots
Square roots cube_roots
 
Square roots
Square rootsSquare roots
Square roots
 

Similar to Reordering

Triangular numbers
Triangular numbersTriangular numbers
Triangular numbers
drgreen0112
 
Copic marker color system
Copic marker color systemCopic marker color system
Copic marker color system
simplyscrapping
 

Similar to Reordering (8)

The global map of the Earth below shows the Earth's surface coordinate.pdf
The global map of the Earth below shows the Earth's surface coordinate.pdfThe global map of the Earth below shows the Earth's surface coordinate.pdf
The global map of the Earth below shows the Earth's surface coordinate.pdf
 
Catalan Numbers
Catalan NumbersCatalan Numbers
Catalan Numbers
 
Convert Numbers to Words with Visual Basic.NET
Convert Numbers to Words with Visual Basic.NETConvert Numbers to Words with Visual Basic.NET
Convert Numbers to Words with Visual Basic.NET
 
Triangular numbers
Triangular numbersTriangular numbers
Triangular numbers
 
decimals-comp-packet.pdf
decimals-comp-packet.pdfdecimals-comp-packet.pdf
decimals-comp-packet.pdf
 
Copic color wheel
Copic color wheelCopic color wheel
Copic color wheel
 
Copic marker color system
Copic marker color systemCopic marker color system
Copic marker color system
 
Clock puzzles
Clock puzzlesClock puzzles
Clock puzzles
 

Recently uploaded

Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
drm1699
 

Recently uploaded (20)

Abortion Clinic In Pongola ](+27832195400*)[ 🏥 Safe Abortion Pills In Pongola...
Abortion Clinic In Pongola ](+27832195400*)[ 🏥 Safe Abortion Pills In Pongola...Abortion Clinic In Pongola ](+27832195400*)[ 🏥 Safe Abortion Pills In Pongola...
Abortion Clinic In Pongola ](+27832195400*)[ 🏥 Safe Abortion Pills In Pongola...
 
Transformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with LinksTransformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with Links
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AI
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)
 
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAOpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
 
Abortion Clinic In Stanger ](+27832195400*)[ 🏥 Safe Abortion Pills In Stanger...
Abortion Clinic In Stanger ](+27832195400*)[ 🏥 Safe Abortion Pills In Stanger...Abortion Clinic In Stanger ](+27832195400*)[ 🏥 Safe Abortion Pills In Stanger...
Abortion Clinic In Stanger ](+27832195400*)[ 🏥 Safe Abortion Pills In Stanger...
 
Software Engineering - Introduction + Process Models + Requirements Engineering
Software Engineering - Introduction + Process Models + Requirements EngineeringSoftware Engineering - Introduction + Process Models + Requirements Engineering
Software Engineering - Introduction + Process Models + Requirements Engineering
 
Workshop - Architecting Innovative Graph Applications- GraphSummit Milan
Workshop -  Architecting Innovative Graph Applications- GraphSummit MilanWorkshop -  Architecting Innovative Graph Applications- GraphSummit Milan
Workshop - Architecting Innovative Graph Applications- GraphSummit Milan
 
Novo Nordisk: When Knowledge Graphs meet LLMs
Novo Nordisk: When Knowledge Graphs meet LLMsNovo Nordisk: When Knowledge Graphs meet LLMs
Novo Nordisk: When Knowledge Graphs meet LLMs
 
From Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIFrom Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST API
 
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
 
Auto Affiliate AI Earns First Commission in 3 Hours..pdf
Auto Affiliate  AI Earns First Commission in 3 Hours..pdfAuto Affiliate  AI Earns First Commission in 3 Hours..pdf
Auto Affiliate AI Earns First Commission in 3 Hours..pdf
 
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanWorkshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
 
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
 
GraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with GraphGraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with Graph
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
 
Microsoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdfMicrosoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdf
 
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfAzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
 

Reordering

  • 1. How did Blanchard’s reordering reduce the number of nonzeros and how can we reduce the number of brush rinses?
  • 2. Firstly, let’s name the colours in each of our four triangles
  • 3. We can then write up a table of triangles with all the colours they need painting in. Triangle 1 Purple, Brown, Blue, Red Triangle 2 Blue, Red, Purple, Orange Triangle 3 Orange, Pink, Yellow, Green Triangle 4 Yellow, Green, Blue, Orange
  • 4. Each time a brush changes colour, it needs a rinse. With two brushes, if we colour in the triangles in the order T1, T2, T3, T4, we will need 9 rinses. If instead we use the order T1, T3, T2 and T4, we end up with 11 rinses. To find the perfect ordering, we’d have to count the rinses for all possible orderings, which is the factorial of the number of triangles, i.e., 24. This is the kind of combinatorial problem that Blanchard was solving above.
  • 5. Our aim is to find an ordering that reduces brush rinses significantly. To do this, let’s rewrite our table a bit differently. We’ll use a 1 if a triangle has a colour, and 0 if it doesn’t. Purple Blue Brown Red Orange Green Pink Yellow T1 1 1 1 1 0 0 0 0 T2 1 1 0 1 1 0 0 0 T3 0 0 0 0 1 1 1 1 T4 0 1 0 0 1 1 0 1
  • 6. Rewriting our table as a matrix, we get Multiplying T by its transpose, we’d get another matrix A.
  • 7. Each row (and column) of A corresponds to a triangle
  • 8. Now, we can reorder A such that the 0 entries are pushed as far away from the diagonal as possible. This is exactly what Blanchard was attempting to do. Doing so gives us a rearranged matrix A* as below.
  • 9. Having rearranged the row means we’ve reordered the triangles. Our ordering now reads T1, T2, T4, T3. Counting the number of rinses, this ordering has only 8, i.e., smaller than the naïve orderings we tried out before!