HKOI2006 Analysis and Solution Junior Q3 – Sudoku HKOI Training Team 2006-01-07.

Slides:



Advertisements
Similar presentations
Spreadsheet Vocabulary
Advertisements

How to play SUDOKU adapted from Tilda Rosander.
Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent)
AP Statistics Tuesday, 15 April 2014 OBJECTIVE TSW (1) identify the conditions to use a chi-square test; (2) examine the chi-square test for independence;
Solving Sudoku1 Website: Labelling scheme.
Message-Passing and Sudoku Scott Kirkpatrick, HUJI Danny Bickson, HUJI TAU, June 18, 2006.
Number puzzles in the paper Did you know there’s a whole range of number puzzles you can try in most newspapers? Click on the puzzles below to complete.
Playing Fair at Sudoku Joshua Cooper USC Department of Mathematics.
Solution for HKOI2010 Junior Q4 By Gary Sham. Problem Description  Given 4 kinds of insects with different number and year of activity.  Find the earliest.
Section 1.7: Coloring Graphs
Structured Graphs and Applications
Backtracking COP Backtracking  Backtracking is a technique used to solve problems with a large search space, by systematically trying and eliminating.
The Mathematics of Sudoku
Arrow's Impossibility Theorem Kevin Feasel December 10, 2006
How to Choose a Random Sudoku Board Joshua Cooper USC Department of Mathematics.
Heyawake Matt Morrow Rules and strategies.. Heyawake Rules  1a) Each “room” must contain exactly the number of black cells as stated. Rooms without numbers.
Sudoku Rules Now in PowerPointVision! Tyler “The Admiral” Hinman.
Midterm II Solution Prof. Mohamed Batouche Department of Computer Science CCIS – King Saud University Saudi Arabia.
Computational Methods for Management and Economics Carla Gomes Module 4 Displaying and Solving LP Models on a Spreadsheet.
Solving Sudoku Mark PTTLS Micro teach. Solving Sudoku What is a Sudoku? A Sudoku is a number puzzle based on a 9x9 grid made up from smaller 3x3 blocks.
Patrick March, Lori Burns. History Islamic thinks and the discovery of the latin square. Leonhard Euler, a Swiss mathematician from the 18 th century,
CS194 Project: Sudoku Difficulty Kha Chu Advisor: Professor Sahai.
SOLVING SUDOKU WITH MATLAB VERIFICATION FUNCTION correctness verification of the puzzle: checks if the current element appears twice in the same line,
Copyright © 2011 Kristina Fornažar Agić. Look! This column already has numbers 4, 3 and 1. 2 The missing number is 2. Now we’ll fill the blank spot with.
Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.
SOLVING SUDOKU WITH MATLAB Raluca Marinescu, Andrea Garcia, Ivan Castro, Eduard Enoiu Mälardalen University, Västerås,
Set Theory Topic 1: Logical Reasoning. I can determine and explain a strategy to solve a puzzle. I can verify a strategy to win a game. I can analyze.
Graph Coloring Solution in a Deterministic Machine The deterministic solution to coloring problem uses these steps to assign colors to vertices: 1- Given.
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
Mathematical Induction II Lecture 21 Section 4.3 Mon, Feb 27, 2006.
Who moved my cheese? Solution for HKOI2008 Junior Q4.
1 CS 410 Mastery in Programming Chapter 10 Hints for Simple Sudoku Herbert G. Mayer, PSU CS Status 7/29/2013.
Mathematical Induction I Lecture 4: Sep 16. This Lecture Last time we have discussed different proof techniques. This time we will focus on probably the.
Whiteboardmaths.com © 2008 All rights reserved
Data Structures Using C++ 2E1 Recursion and Backtracking: DFS Depth first search (a way to traverse a tree or graph) Backtracking can be regarded as a.
Sudoku Solver Comparison A comparative analysis of algorithms for solving Sudoku.
1 On Completing Latin Squares Iman Hajirasouliha Joint work with Hossein Jowhari, Ravi Kumar, and Ravi Sundaram.
Sudoku Jordi Cortadella Department of Computer Science.
Propositional Satisfiability A compound proposition is satisfiable if there is an assignment of truth values to its variables that make it true. When no.
1. Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Solving Systems of Linear Equations Using Cramer’s Rule 6 1.Evaluate.
To create a program, written in C++, that could generate a Sudoku. Elements to take into consideration: The Sudoku created must have one unique solution.
Linear Programming Solving Systems of Equations with 3 Variables Inverses & Determinants of Matrices Cramer’s Rule.
Word : Let F be a field then the expression of the form a 1, a 2, …, a n where a i  F  i is called a word of length n over the field F. We denote the.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
Factoring or writing a polynomial as a product can be useful for finding the x-intercepts or zeros. Solving a quadratic equation means finding the zeros.
Solving Equations with Algebra Tiles: The basics.
How Do I Solve This Thing?. You are familiar with Sudoku puzzles. For this variation, place the integers 1 – 9 into each row or column such that the.
Backtracking & Brute Force Optimization Intro2CS – weeks
Logic Development Problems. Puzzle #1 Smita has a full 8-quart container (Container A) of peanut oil. She wants to share half of the oil with her sister.
4. SETTING UP RESOURCES SESSION # 4. OBJECTIVES Set up basic resource information for the people who work on projects. Adjust the maximum capacity of.
CompSci Problem Solving: Sudoku  Rules of the Game Sudoku is played with a 9 by 9 "board" consisting of nine 3 by 3 sub-boards. The symbols 1 -
Chi-Squared Test of Homogeneity Are different populations the same across some characteristic?
EXAMPLE 3 Write an indirect proof Write an indirect proof that an odd number is not divisible by 4. GIVEN : x is an odd number. PROVE : x is not divisible.
Going Krazee With Sudoku By Professor Cindy Caldwell A.K.A. “Crazy Lady” Caldwell A.K.A. Cindy Susan…FOCUS!
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Monster (“Mega”) Sudoku
Teacher Notes Supplies Needed: Class set of sudoku puzzles.
Bipartite Matching Lecture 8: Oct 7.
A CIS 5603 Course Project By: Qizhong Mao, Baiyi Tao, Arif Aziz
Data Structures and Algorithms
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Pigeonhole Principle and Ramsey’s Theorem
Jordi Cortadella Department of Computer Science
4. Setting up Resources Session # 4.
Objective: Today we will investigate the ‘magic’ in magic squares.
Chi-square test or c2 test
Sudoku.
Mathematical Induction II
Warm Up Hannah scored an 85% on Dr. Lutze’s first AP Stats quiz. Her friend Katherine, who is in Mrs. Hall’s class, scored an 81%. Hannah thought she.
Presentation transcript:

HKOI2006 Analysis and Solution Junior Q3 – Sudoku HKOI Training Team

Statistics Attempts: 42 (out of 69) Mean: Max: 100 (3) Min: 0 Std Dev: 41.05

Statistics

The Problem Given an incomplete Sudoku puzzle, solve for the remaining cells Only the center 9 cells are empty

Observation For each test case, there is at most one solution Why?

Observations For any cell in the center region, there must be exactly one number that can be filled in without any violation to the rules Why? Let’s prove it by contradiction…

Observations Suppose ‘1’ and ‘2’ can both be filled in the center cell without violation to rules

Observations Fill ‘1’ into the center cell 1

Observations Why can ‘2’ be filled in the center cell? 1

Observations Because it has not appeared in the center row nor the center column 1

Observations So ‘2’ must be filled in somewhere in the center row, and also the column 1

Observations ‘2’ has to be appeared in one of the two Red cells, and also one of the two yellow cells 1

Observations Since all 4 colored cells are in the same region, two ‘2’s must be in the same region 1  Contradiction

Solutions For each cell, find if these is exactly one number to fill in “No solution” if none or >1 is found

Alternative Solution Exhaust all possible permutations of 1 to 9 to find in the cells, then check whether the solution is valid This solution looks stupid, but it works since there are only 9! = permutations in total

Common Mistakes Forgot to handle the “No solution” case Assume there are no violations in the numbers already filled in

Questions?