SlideShare a Scribd company logo
1 of 10
Download to read offline
p. 1
Pattern Lock of Mobile Phones
Key Stage: 4
Strand: Data Handling
Learning Units: Permutation and combination
Objective: Apply mathematical knowledge and coding to solve daily-life
problems
Pre–requisite Knowledge:
(i) understand the addition rule and multiplication rule in the counting principle
(ii) understand the concepts of permutation and combination
(iii) recognise reflective and rotational symmetries in 2-D figures
Relationship with other KLA(s) in STEM Education:
(i) The learning element “Programming concepts” within the Information &
Communication Technology knowledge context in the Technology Education KLA
Curriculum (S1 to 3)
(ii) The module “Basic Programming Concepts” of Information and Communication
Technology Curriculum (S4 to 6) of Technology Education KLA.
Description of the Activity:
Activity 1
(i) Teacher set a lock pattern on a mobile phone or tablet before the lesson. Then, the
teacher asks the students to unlock the pattern lock by trial and error method.
Students can try THREE times to unlock by guessing the pattern. If no further
information is provided, it seems quite hard for students to unlock by sole guessing.
p. 2
(ii) The teacher then introduces the basic requirement for setting the lock patterns:
1. Only straight lines can be used to connect the dots.
2. Horizontal, vertical and diagonal lines are allowed.
3. Once a dot is connected, it cannot be connected again.
4. If you connect 2 dots directly, with an unconnected dot in between, it will also be
connected.
5. You must connect the dots continuously.
(Note: The teacher may remind students at a later stage that lock patterns used in
mobile phones require four or more dots)
(iii) The teacher then asks the students to calculate the number of the lock patterns they
can create for different number of connecting dots. For example, if the lock pattern
consists of one dot only, there are 9 combinations on the screen. By trial and error
method for at most 9 times, students can unlock the pattern lock. It seems too simple
to have only one dot as the lock pattern.
(iv) Patterns formed by connecting 2 dots
Students are then asked to connect only two dots by straight lines to set the lock
pattern. The order of the two dots does matter. When the two dots’ connecting
sequence is reversed, the patterns are different. Students can try to list out all the
patterns by connecting two dots in the supplementary page.
Some of the patterns are shown below:
Invalid Valid Valid
p. 3
Students are required to find the total number of patterns of two dots.
(v) The teacher may introduce the following labelling of dots to students and ask students
to complete the table to facilitate the counting of the number of patterns of two dots.
Firstly, we group the nine points into three categories, four
corner dots Ci , one center dot O and four side dots Si, where
i = 1, 2, 3, 4.
Different sequences are listed in the table below for students’ completion:
Combination Sequence Total number
O , Ci
O−Ci 1 × 4 = 4
Ci−O 4 × 1 = 4
O , Si
O−Si 1 × 4 = 4
Si−O
Ci , Si
Ci−Si
Si−Ci
Si , Sj Si−Sj
(vi) The teacher may also introduce another way of counting by considering the total
number of permutations of choosing 2 dots from 9 dots and subtract from it the
number of connections that do not work (e.g. C1 to C2 , S1 to S4)
C1 C2S1
S2 S3O
C3 C4S4
p. 4
Notes for Teachers:
(i) Counting by analysing different cases:
Combination Sequence Total number
O , Ci
O−Ci 1 × 4 = 4
Ci−O 4 × 1 = 4
O , Si
O−Si 1 × 4 = 4
Si−O 4 × 1 = 4
Ci , Si
Ci−Si 4 × 4 = 16
Si−Ci 4 × 4 = 16
Si , Sj Si−Sj 4 × 2 = 8
Total number of patterns = 4 + 4 + 4 + 4 + 16 + 16 + 8 = 56
(ii) Counting by subtracting invalid cases:
We choose 2 dots from 9 dots without any restriction and order them, we have
𝑃𝑃2
9
combinations. However, some connection do not work, for example, we cannot
connect Ci−Cj directly. We need to eliminate those patterns. There are 16 cases about
that (permutation of the four corners and permutation of opposite sides).
Number of patterns by connecting 2 dots
=9 8 (3 4 1 4)× − × + ×
= 56
Activity 2
(i) Patterns formed by connecting 3 or more dots
Students may try to draw patterns of 3 dots or 4 dots and list them out. The teacher
should remind students that unconnected dots cannot be crossed without being
connected and there should be no repeated dots. Some of the patterns are as follows:
p. 5
Students should recognise that there are already many different patterns even when
there are only 3 dots.
(ii) Guessing Patterns
1. Students are required to form groups of four. Each group needs to design their
lock patterns in the Android phone or tablet by connecting four or five dots.
2. The teacher randomly select one group (Group A) and assign another group
(Group B) to guess the pattern of Group A.
3. Group B can raise at most THREE “YES” or “NO” questions and require group
A to answer them.
Some example of the questions are listed below:
• Does your pattern pass through 5 dots?
• Does your pattern have axes of symmetry?
• Does your pattern contain a slant edge?
• Does your pattern contain a cross?
• Does your pattern have a vertical line?
• Does your pattern passes through upper right dot?
……………..
(Based on students’ pre-requisite mathematical knowledge, each group can raise
any creative “YES” or “NO” questions)
4. According to the answers from Group A, students of Group B try to guess the
pattern at most TWO times. They may mark their guessed patterns in the
supplementary sheets.
5. Any group who gets the correct answer can receive a gift.
(Note: Teachers can adjust the difficulty of the patterns by setting restrictions or
providing more hints. To minimise the complexity and to increase the chance of
correct guesses, the number of dots in the lock patterns shall be restricted.)
p. 6
(iii) Counting the number of patterns involving 3 dots
1. The teacher may guide students to analyse different cases by completing the
following table
Combination Sequence Total number
Ci , Cj , O
O−Ci−Cj
Ci−O−Cj
1 × 4 × 1 = 4
4 × 1 × 3 = 12
Ci , Cj , Si
Si−Ci−Cj
Ci−Si−Cj
4 × 2 × 1 = 8
4 × 4 × 3 = 48
Ci , Si , Sj
Ci−Si−Sj
Si−Ci−Sj
Si−Sj−Ci
Ci , Sj , O
Si−Cj−O
Ci−Si−O
Ci−O−Si
Si−O−Cj
…
Si , Sj , O
Si , Sj , Sk
2. The teacher may also guide students to consider subtracting the number of
wrong connections (those wrong in the 1st
connection and wrong in the 2nd
connection with the 1st
correct) from 𝑃𝑃3
9
.
Notes for Teachers:
(i) The total number of lock patterns for 3 dots is 320. The methods are as follows:
(a) Counting by analysing different cases:
Combination Sequence Total number
Ci , Cj , O
O−Ci−Cj
Ci−O−Cj
1 × 4 × 1 = 4
4 × 1 × 3 = 12
p. 7
Combination Sequence Total number
Ci , Cj , Si
Si−Ci−Cj
Ci−Si−Cj
4 × 2 × 1 = 8
4 × 4 × 3 = 48
Ci , Si , Sj
Ci−Si−Sj
Si−Ci−Sj
Si−Sj−Ci
4 × 4 × 2 = 32
4 × 4 × 3 = 48
4 × 2 × 4 = 32
Ci , Sj , O
Si−Cj−O
Ci−Si−O
Ci−O−Si
Si−O−Cj
O−Si−Cj
O−Ci−Si
4 × 4 × 1 = 16
4 × 4 × 1 = 16
4 × 1 × 4 = 16
4 × 1 × 4 = 16
1 × 4 × 4 = 16
1 × 4 × 4 = 16
Si , Sj , O
O−Si−Sj
Si−O−Sj
Si−Sj−O
1 × 4 × 3 = 12
4 × 1 × 3 = 12
4 × 2 × 1 = 8
Si , Sj , Sk Si−Sj−Sk 4 × 2 × 1 = 8
Total number of patterns = (4+12) + (8+48×2+32×2) + (16×6) + (12×2+8) + 8 = 320
(b) Counting by subtracting invalid cases:
Number of lock patterns by connecting 3 dots
= 9
3P
– number of wrong ways in the 1st
connection (C to C, S to opposite S)
– numbers of wrong ways in the 2nd
connection but correct in the 1st
connection (1st
correct connection and then C to C, 1st
correct connection and then S to opposite S,
but eliminate those correct straight line patterns of 3 dots: SCC, OSS and OCC)
= 789 ××
)741743( ××+××−
)141141124417435( ××−××−××−××+××−
= 72112504 −−
= 320
SCC: OCC:OSS:
p. 8
Extension Activities:
(i) Coding
To find the total number of lock patterns used in usual mobile phones, which involve
four or more dots, is more difficult as it becomes very complicated to list out all the
combinations of lock patterns with four dots or above. Students may write computer
programme to complete the task. The idea is to label the dots as
1 2 3
4 5 6
7 8 9
and count all permutation of these 9 numbers of length four, five, six, … up to nine,
e.g. 1 2 3 4, 4 7 3 5, 5 1 3 2 4, 2 7 8 9 6 3, …, but cross out those with sequences that
are not allowed within (e.g. …1 3 2…, …3 9 7…, …7 3 5…).
The total number of combinations of lock patterns consisting of four dots or above,
are recorded as follows:
Number of Dots Number of Patterns
4 1 624
5 7 152
6 26 016
7 72 912
8 140 704
9 140 704
The total number of lock patterns with four dots or above
= 1624 + 7152 + 26016 + 72912 + 140704 + 140704 = 389 112
(ii) Application of statistics
Lock patterns for mobile phone normally need to involve four dots or more. We may
ask the students to design their lock patterns freely under the rules of setting the
graphic lock in the mobile phones. Then, we record their patterns of the involvement
about different points. According to the research outcomes done by a graduate from
Norwegian University of Science and Technology about 4000 lock patterns, 77% of
them starts at the four corner points, where 44% starts at the top left-most corner.
p. 9
Usually, our lock patterns start at the top left-hand corner, moving to the right side
and then downwards. We may check students’ patterns to compare the results with
that of the research.
Reference:
1. https://arstechnica.com/security/2015/08/new-data-uncovers-the-surprising-predictabi
lity-of-android-lock-patterns/
2. http://www.guokr.com/article/49408/
p. 10

More Related Content

What's hot

Psat review and more with slope
Psat review and more with slopePsat review and more with slope
Psat review and more with slope
jbianco9910
 
coordinate_geometry
 coordinate_geometry coordinate_geometry
coordinate_geometry
Kripi Mehra
 
1.1 and 1.2 slides revised
1.1 and 1.2 slides revised1.1 and 1.2 slides revised
1.1 and 1.2 slides revised
sabon1005
 
Math teachers guide_1 (1)
Math teachers guide_1 (1)Math teachers guide_1 (1)
Math teachers guide_1 (1)
Brandanlee
 

What's hot (18)

Class 6 Cbse Maths Question Paper FA 2
Class 6 Cbse Maths Question Paper FA 2Class 6 Cbse Maths Question Paper FA 2
Class 6 Cbse Maths Question Paper FA 2
 
Cat 2008 question_paper_and_ans key
Cat 2008 question_paper_and_ans keyCat 2008 question_paper_and_ans key
Cat 2008 question_paper_and_ans key
 
Mod 6 ch 17 18
Mod 6 ch 17 18Mod 6 ch 17 18
Mod 6 ch 17 18
 
4 ma0 4hr_que_20140520
4 ma0 4hr_que_20140520 4 ma0 4hr_que_20140520
4 ma0 4hr_que_20140520
 
Barisan dan deret
Barisan dan deret Barisan dan deret
Barisan dan deret
 
Psat review and more with slope
Psat review and more with slopePsat review and more with slope
Psat review and more with slope
 
4 ma0 3hr_msc_20140821
4 ma0 3hr_msc_20140821 4 ma0 3hr_msc_20140821
4 ma0 3hr_msc_20140821
 
4 ma0 4hr_msc_20140821
4 ma0 4hr_msc_20140821 4 ma0 4hr_msc_20140821
4 ma0 4hr_msc_20140821
 
4 ma0 4h_msc_20150305
4 ma0 4h_msc_20150305 4 ma0 4h_msc_20150305
4 ma0 4h_msc_20150305
 
Tips to crack Mathematics section - JEE Main 2014
Tips to crack Mathematics section - JEE Main 2014 Tips to crack Mathematics section - JEE Main 2014
Tips to crack Mathematics section - JEE Main 2014
 
4 ma0 4hr_msc_20150305
4 ma0 4hr_msc_20150305 4 ma0 4hr_msc_20150305
4 ma0 4hr_msc_20150305
 
4 ma0 3h_msc_20140821
4 ma0 3h_msc_20140821 4 ma0 3h_msc_20140821
4 ma0 3h_msc_20140821
 
coordinate_geometry
 coordinate_geometry coordinate_geometry
coordinate_geometry
 
1.1 and 1.2 slides revised
1.1 and 1.2 slides revised1.1 and 1.2 slides revised
1.1 and 1.2 slides revised
 
Math teachers guide_1 (1)
Math teachers guide_1 (1)Math teachers guide_1 (1)
Math teachers guide_1 (1)
 
4 ma0 4h_msc_20140821
4 ma0 4h_msc_20140821 4 ma0 4h_msc_20140821
4 ma0 4h_msc_20140821
 
4 ma0 4h_que_20150112
4 ma0 4h_que_20150112 4 ma0 4h_que_20150112
4 ma0 4h_que_20150112
 
Math Module Sample
Math Module SampleMath Module Sample
Math Module Sample
 

Similar to Stem example sec pattern lock_eng

permutations-and-combinations.ppt
permutations-and-combinations.pptpermutations-and-combinations.ppt
permutations-and-combinations.ppt
JewelEstrada
 
G6 m4-a-lesson 1-t
G6 m4-a-lesson 1-tG6 m4-a-lesson 1-t
G6 m4-a-lesson 1-t
mlabuski
 
Unit 8 Fourth Grade 2012 2013
Unit 8 Fourth Grade 2012 2013Unit 8 Fourth Grade 2012 2013
Unit 8 Fourth Grade 2012 2013
Isaac_Schools_5
 
Mathematics v lp 1 st to 4th grading......
Mathematics v lp 1 st to 4th grading......Mathematics v lp 1 st to 4th grading......
Mathematics v lp 1 st to 4th grading......
EDITHA HONRADEZ
 

Similar to Stem example sec pattern lock_eng (20)

permutations-and-combinations.ppt
permutations-and-combinations.pptpermutations-and-combinations.ppt
permutations-and-combinations.ppt
 
AII12_Permutations_Combinations.ppt
AII12_Permutations_Combinations.pptAII12_Permutations_Combinations.ppt
AII12_Permutations_Combinations.ppt
 
permutations-and-combinations.ppt
permutations-and-combinations.pptpermutations-and-combinations.ppt
permutations-and-combinations.ppt
 
permutations-and-combinations.ppt
permutations-and-combinations.pptpermutations-and-combinations.ppt
permutations-and-combinations.ppt
 
permutations and combinations.ppt
permutations and combinations.pptpermutations and combinations.ppt
permutations and combinations.ppt
 
counting techniques
counting techniquescounting techniques
counting techniques
 
G6 m4-a-lesson 1-t
G6 m4-a-lesson 1-tG6 m4-a-lesson 1-t
G6 m4-a-lesson 1-t
 
permutations-and-combinations FINAL.ppt
permutations-and-combinations FINAL.pptpermutations-and-combinations FINAL.ppt
permutations-and-combinations FINAL.ppt
 
permutations-and-combinations for Quantitative Reasoning Class
permutations-and-combinations for Quantitative Reasoning Classpermutations-and-combinations for Quantitative Reasoning Class
permutations-and-combinations for Quantitative Reasoning Class
 
MATH7 ADM MODULE 3.pdf
MATH7 ADM MODULE 3.pdfMATH7 ADM MODULE 3.pdf
MATH7 ADM MODULE 3.pdf
 
Permutations and Combinations
Permutations and CombinationsPermutations and Combinations
Permutations and Combinations
 
Unit 8 Fourth Grade 2012 2013
Unit 8 Fourth Grade 2012 2013Unit 8 Fourth Grade 2012 2013
Unit 8 Fourth Grade 2012 2013
 
(8) Lesson 9.4
(8) Lesson 9.4(8) Lesson 9.4
(8) Lesson 9.4
 
Probability module 1
Probability module 1Probability module 1
Probability module 1
 
WEEK 4.doc
WEEK 4.docWEEK 4.doc
WEEK 4.doc
 
lesson plan 5
lesson plan 5lesson plan 5
lesson plan 5
 
THIRD QUARTER ASSESSMENT TEST.docx
THIRD QUARTER ASSESSMENT TEST.docxTHIRD QUARTER ASSESSMENT TEST.docx
THIRD QUARTER ASSESSMENT TEST.docx
 
Presentation Math Workshop#May 25th New Help our teachers understa...
Presentation Math Workshop#May 25th New            Help our teachers understa...Presentation Math Workshop#May 25th New            Help our teachers understa...
Presentation Math Workshop#May 25th New Help our teachers understa...
 
Mathematics v lp 1 st to 4th grading......
Mathematics v lp 1 st to 4th grading......Mathematics v lp 1 st to 4th grading......
Mathematics v lp 1 st to 4th grading......
 
Mathematics v 1st rating
Mathematics v 1st ratingMathematics v 1st rating
Mathematics v 1st rating
 

Recently uploaded

Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
MinawBelay
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 

Recently uploaded (20)

How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptx
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 

Stem example sec pattern lock_eng

  • 1. p. 1 Pattern Lock of Mobile Phones Key Stage: 4 Strand: Data Handling Learning Units: Permutation and combination Objective: Apply mathematical knowledge and coding to solve daily-life problems Pre–requisite Knowledge: (i) understand the addition rule and multiplication rule in the counting principle (ii) understand the concepts of permutation and combination (iii) recognise reflective and rotational symmetries in 2-D figures Relationship with other KLA(s) in STEM Education: (i) The learning element “Programming concepts” within the Information & Communication Technology knowledge context in the Technology Education KLA Curriculum (S1 to 3) (ii) The module “Basic Programming Concepts” of Information and Communication Technology Curriculum (S4 to 6) of Technology Education KLA. Description of the Activity: Activity 1 (i) Teacher set a lock pattern on a mobile phone or tablet before the lesson. Then, the teacher asks the students to unlock the pattern lock by trial and error method. Students can try THREE times to unlock by guessing the pattern. If no further information is provided, it seems quite hard for students to unlock by sole guessing.
  • 2. p. 2 (ii) The teacher then introduces the basic requirement for setting the lock patterns: 1. Only straight lines can be used to connect the dots. 2. Horizontal, vertical and diagonal lines are allowed. 3. Once a dot is connected, it cannot be connected again. 4. If you connect 2 dots directly, with an unconnected dot in between, it will also be connected. 5. You must connect the dots continuously. (Note: The teacher may remind students at a later stage that lock patterns used in mobile phones require four or more dots) (iii) The teacher then asks the students to calculate the number of the lock patterns they can create for different number of connecting dots. For example, if the lock pattern consists of one dot only, there are 9 combinations on the screen. By trial and error method for at most 9 times, students can unlock the pattern lock. It seems too simple to have only one dot as the lock pattern. (iv) Patterns formed by connecting 2 dots Students are then asked to connect only two dots by straight lines to set the lock pattern. The order of the two dots does matter. When the two dots’ connecting sequence is reversed, the patterns are different. Students can try to list out all the patterns by connecting two dots in the supplementary page. Some of the patterns are shown below: Invalid Valid Valid
  • 3. p. 3 Students are required to find the total number of patterns of two dots. (v) The teacher may introduce the following labelling of dots to students and ask students to complete the table to facilitate the counting of the number of patterns of two dots. Firstly, we group the nine points into three categories, four corner dots Ci , one center dot O and four side dots Si, where i = 1, 2, 3, 4. Different sequences are listed in the table below for students’ completion: Combination Sequence Total number O , Ci O−Ci 1 × 4 = 4 Ci−O 4 × 1 = 4 O , Si O−Si 1 × 4 = 4 Si−O Ci , Si Ci−Si Si−Ci Si , Sj Si−Sj (vi) The teacher may also introduce another way of counting by considering the total number of permutations of choosing 2 dots from 9 dots and subtract from it the number of connections that do not work (e.g. C1 to C2 , S1 to S4) C1 C2S1 S2 S3O C3 C4S4
  • 4. p. 4 Notes for Teachers: (i) Counting by analysing different cases: Combination Sequence Total number O , Ci O−Ci 1 × 4 = 4 Ci−O 4 × 1 = 4 O , Si O−Si 1 × 4 = 4 Si−O 4 × 1 = 4 Ci , Si Ci−Si 4 × 4 = 16 Si−Ci 4 × 4 = 16 Si , Sj Si−Sj 4 × 2 = 8 Total number of patterns = 4 + 4 + 4 + 4 + 16 + 16 + 8 = 56 (ii) Counting by subtracting invalid cases: We choose 2 dots from 9 dots without any restriction and order them, we have 𝑃𝑃2 9 combinations. However, some connection do not work, for example, we cannot connect Ci−Cj directly. We need to eliminate those patterns. There are 16 cases about that (permutation of the four corners and permutation of opposite sides). Number of patterns by connecting 2 dots =9 8 (3 4 1 4)× − × + × = 56 Activity 2 (i) Patterns formed by connecting 3 or more dots Students may try to draw patterns of 3 dots or 4 dots and list them out. The teacher should remind students that unconnected dots cannot be crossed without being connected and there should be no repeated dots. Some of the patterns are as follows:
  • 5. p. 5 Students should recognise that there are already many different patterns even when there are only 3 dots. (ii) Guessing Patterns 1. Students are required to form groups of four. Each group needs to design their lock patterns in the Android phone or tablet by connecting four or five dots. 2. The teacher randomly select one group (Group A) and assign another group (Group B) to guess the pattern of Group A. 3. Group B can raise at most THREE “YES” or “NO” questions and require group A to answer them. Some example of the questions are listed below: • Does your pattern pass through 5 dots? • Does your pattern have axes of symmetry? • Does your pattern contain a slant edge? • Does your pattern contain a cross? • Does your pattern have a vertical line? • Does your pattern passes through upper right dot? …………….. (Based on students’ pre-requisite mathematical knowledge, each group can raise any creative “YES” or “NO” questions) 4. According to the answers from Group A, students of Group B try to guess the pattern at most TWO times. They may mark their guessed patterns in the supplementary sheets. 5. Any group who gets the correct answer can receive a gift. (Note: Teachers can adjust the difficulty of the patterns by setting restrictions or providing more hints. To minimise the complexity and to increase the chance of correct guesses, the number of dots in the lock patterns shall be restricted.)
  • 6. p. 6 (iii) Counting the number of patterns involving 3 dots 1. The teacher may guide students to analyse different cases by completing the following table Combination Sequence Total number Ci , Cj , O O−Ci−Cj Ci−O−Cj 1 × 4 × 1 = 4 4 × 1 × 3 = 12 Ci , Cj , Si Si−Ci−Cj Ci−Si−Cj 4 × 2 × 1 = 8 4 × 4 × 3 = 48 Ci , Si , Sj Ci−Si−Sj Si−Ci−Sj Si−Sj−Ci Ci , Sj , O Si−Cj−O Ci−Si−O Ci−O−Si Si−O−Cj … Si , Sj , O Si , Sj , Sk 2. The teacher may also guide students to consider subtracting the number of wrong connections (those wrong in the 1st connection and wrong in the 2nd connection with the 1st correct) from 𝑃𝑃3 9 . Notes for Teachers: (i) The total number of lock patterns for 3 dots is 320. The methods are as follows: (a) Counting by analysing different cases: Combination Sequence Total number Ci , Cj , O O−Ci−Cj Ci−O−Cj 1 × 4 × 1 = 4 4 × 1 × 3 = 12
  • 7. p. 7 Combination Sequence Total number Ci , Cj , Si Si−Ci−Cj Ci−Si−Cj 4 × 2 × 1 = 8 4 × 4 × 3 = 48 Ci , Si , Sj Ci−Si−Sj Si−Ci−Sj Si−Sj−Ci 4 × 4 × 2 = 32 4 × 4 × 3 = 48 4 × 2 × 4 = 32 Ci , Sj , O Si−Cj−O Ci−Si−O Ci−O−Si Si−O−Cj O−Si−Cj O−Ci−Si 4 × 4 × 1 = 16 4 × 4 × 1 = 16 4 × 1 × 4 = 16 4 × 1 × 4 = 16 1 × 4 × 4 = 16 1 × 4 × 4 = 16 Si , Sj , O O−Si−Sj Si−O−Sj Si−Sj−O 1 × 4 × 3 = 12 4 × 1 × 3 = 12 4 × 2 × 1 = 8 Si , Sj , Sk Si−Sj−Sk 4 × 2 × 1 = 8 Total number of patterns = (4+12) + (8+48×2+32×2) + (16×6) + (12×2+8) + 8 = 320 (b) Counting by subtracting invalid cases: Number of lock patterns by connecting 3 dots = 9 3P – number of wrong ways in the 1st connection (C to C, S to opposite S) – numbers of wrong ways in the 2nd connection but correct in the 1st connection (1st correct connection and then C to C, 1st correct connection and then S to opposite S, but eliminate those correct straight line patterns of 3 dots: SCC, OSS and OCC) = 789 ×× )741743( ××+××− )141141124417435( ××−××−××−××+××− = 72112504 −− = 320 SCC: OCC:OSS:
  • 8. p. 8 Extension Activities: (i) Coding To find the total number of lock patterns used in usual mobile phones, which involve four or more dots, is more difficult as it becomes very complicated to list out all the combinations of lock patterns with four dots or above. Students may write computer programme to complete the task. The idea is to label the dots as 1 2 3 4 5 6 7 8 9 and count all permutation of these 9 numbers of length four, five, six, … up to nine, e.g. 1 2 3 4, 4 7 3 5, 5 1 3 2 4, 2 7 8 9 6 3, …, but cross out those with sequences that are not allowed within (e.g. …1 3 2…, …3 9 7…, …7 3 5…). The total number of combinations of lock patterns consisting of four dots or above, are recorded as follows: Number of Dots Number of Patterns 4 1 624 5 7 152 6 26 016 7 72 912 8 140 704 9 140 704 The total number of lock patterns with four dots or above = 1624 + 7152 + 26016 + 72912 + 140704 + 140704 = 389 112 (ii) Application of statistics Lock patterns for mobile phone normally need to involve four dots or more. We may ask the students to design their lock patterns freely under the rules of setting the graphic lock in the mobile phones. Then, we record their patterns of the involvement about different points. According to the research outcomes done by a graduate from Norwegian University of Science and Technology about 4000 lock patterns, 77% of them starts at the four corner points, where 44% starts at the top left-most corner.
  • 9. p. 9 Usually, our lock patterns start at the top left-hand corner, moving to the right side and then downwards. We may check students’ patterns to compare the results with that of the research. Reference: 1. https://arstechnica.com/security/2015/08/new-data-uncovers-the-surprising-predictabi lity-of-android-lock-patterns/ 2. http://www.guokr.com/article/49408/
  • 10. p. 10