Mathematics of Sudoku I
|
|
|
- Griselda Campbell
- 9 years ago
- Views:
Transcription
1 Mathematics of Sudoku I Bertram Felgenhauer Frazer Jarvis January, 00 Introduction Sudoku puzzles became extremely popular in Britain from late 00. Sudoku, or Su Doku, is a Japanese word (or phrase) meaning something like Number Place. The idea of the puzzle is extremely simple; the solver is faced with a grid, divided into nine blocks: In some of these boxes, the setter puts some of the digits ; the aim of the solver is to complete the grid by filling in a digit in every box in such a way that each row, each column, and each box contains each of the digits exactly once. It is a very natural question to ask how many Sudoku grids there can be. That is, in how many ways can we fill in the grid above so that each row, column and box contains the digits exactly once. In this note, we explain how we first computed this number. This was the first computation of this number; we should point out that it has been subsequently confirmed using other (faster!) methods. First, let us notice that Sudoku grids are simply special cases of Latin squares; remember that a Latin square of order n is an n n square containing each of the digits,...,n in every row and column. The calculation of the number of Latin squares is itself a difficult problem, with no general formula known. The number of Latin squares of sizes up to have been worked out (see references [], [] and [] for the, 0 0 and squares), and the methods are broadly brute force calculations, much like the approach we sketch for Sudoku grids below. (Brute force calculations are those where part of the calculation involves constructing all possible answers, and seeing which ones really do work.) It is known that the number of Latin squares is Since this answer is enormous, we are going to have to be clever about how we do the brute force counting, in order to be able to get an answer in a sensible amount of computing time. Initial observations Our aim is to compute the number N 0 of valid Sudoku grids. In the discussion below, we will refer to the blocks as B B, where these are labelled Contact address: Dr A.F.Jarvis, Department of Pure Mathematics, University of Sheffield, Sheffield S RH, U.K., [email protected]
2 B B B B B B B B B Let s first observe that we can simplify the counting we need to do by relabelling. We could, for example, exchange all of the s and s in a valid Sudoku grid, and get another valid grid. We call this relabelling the s and s. If we like, we can relabel all of the digits; in particular, we can relabel any grid so that the top left block (B) is given by We will call a grid with this top left-hand block in standard form. This relabelling procedure reduces the number of grids by a factor of! = 0. We are reduced to counting the number N = N0! of Sudoku grids in this standard form. Our strategy is to consider all possible ways to fill in blocks B, B, given that B is in the standard form above. Then, for each of these possibilities for blocks B B, we work out all possible complete grids with this given collection of blocks. We will see that it happens that given blocks B and B, there are other possibilities, B and B say, such that the number of ways of completing blocks B, B and B to full grids is the same as the number of ways of completing blocks B, B and B. This means that we only need to count the number of ways to complete B, B and B to a full grid, and we do not need to count the number of ways to complete B, B and B, as the answer will be the same. In fact, we will find that we will only need to work out the number of ways of completing a grid for remarkably few pairs B and B. Blocks B and B Here we try to catalogue efficiently the possibilities for blocks B and B. Let s first work out how many possibilities there are for B and B, and then explain how we can reduce the size of the list we need to count.. Top row of blocks We want to list all the possible configurations for the top three blocks, given that the first block is of the standard form. Let s think about the top row of the second block. Either it consists (in some order) of the three numbers on row of block B, or on row of block B, or a mixture of the two. The possible top rows of blocks B and B are given by:
3 {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } {,, } (where {a, b, c} indicates the numbers a, b and c in any order). The top row {,, } {,, } can be completed as follows: {,, } {,, } {,, } {,, } {,, } {,, } giving (!) possible configurations (each set of three numbers can be written in! = different ways). The same is true for its reversal {,, } {,, }. However, the other possibilities behave differently; here, the top row of B consists of a mixture of some of the second row and some of the third row of B. For example, the top row {,, } {,, } can be completed as: {,, } {,, } {,, a} {, b, c} {, b, c} {,, a} where a, b and c stand for, and, in some order, giving (!) possible configurations (b and c are interchangeable). In total, we therefore have possible completions to the top three rows. (!) + (!) = (!) = Note that this means that the number of possibilities for the top three rows of a Sudoku grid is! = 00.. Reduction At this stage, we have a list of all possibilities for blocks B and B. For each of these possibilities, we will try to fill in the remaining blocks to form valid Sudoku grids (the brute force part of the method). However, to run through all possibilities for B and B would be extremely time-consuming. We need some way to reduce the number of possibilities which we need to consider. We will identify configurations of numbers in these blocks which give the same number of ways of completing to a full grid. Luckily, there are a lot of things that we can do to the top three rows which preserve the number of completions to a full grid. We have already seen the relabelling operation. But there are others; for example, if we exchange B and B, then every way of completing B-B to a complete grid gives us a unique way to complete B-B to a complete grid (just exchange B and B, and B and B). Indeed, we can permute B, B and B in any way we choose. Although this changes B, we can then relabel to put B back into standard form. Furthermore, we can permute the columns within any block in any way we wish, performing the same operation to the columns in a completed grid. We can even permute the three rows of B, B and B, and again relabel to put B into standard form.
4 Lexicographical reduction Take all of the possibilities mentioned above. We catalogue them first as follows:. We begin by permuting the columns within B and B so that the top entries are in increasing order.. We then exchange B and B if necessary, so that the top left entry of B is smaller than that of B. The first step gives ways to permute the columns in each block B and B, so that, given any grid, there are = grids derived from it with the same number of ways of completing; then the second essentially doubles this number. Overall, we are reducing the number of possibilities we need to consider by a factor of, giving possibilities for our catalogue. This is becoming more practicable, although more reductions are desirable. Permutation reduction In fact, we haven t really made full use of all of the permutation and relabelling possibilities. As mentioned above, for each of the possibilities, we can consider all permutations of the three blocks B-B, and all permutations of columns within each block, making = possibilities in total. Having done this, our first block will not be in standard form, but we can relabel so that it is (relabelling B and B in the same way), and then use the lexicographical reduction on the result. Each of the permutations gives a new B-B pair which has the same number of completions to a full grid. This provides a huge improvement again: computer calculations showed that this reduced the size of the list we need to test to just 0 possible B-B pairs. (The huge majority of these 0 pairs arise from exactly = / of the possibilities. Some, however, arise from fewer, so it is necessary to store exactly how many of the possibilities give rise to the given blocks.) But this is not all we can do the same for the permutations of the three rows of the configuration. That is, we can choose any permutation of these rows, and then relabel to put B back into standard form. It turned out that this gave a further reduction to testing just possibilities for blocks B and B. Let s illustrate the procedure with an example. The top three rows might look something like the following: Now let s permute the columns of B, by exchanging the first two columns, say. (It s similarly possible to permute the rows of all three boxes simultaneously, or to change the order of the boxes.) We get Of course, the first block is no longer in standard form. But we can put it back in standard form by relabelling; that is, we relabel as and vice versa, as and vice versa, and as and vice versa. We get:
5 Now the first block is back in standard form, but blocks B and B aren t lexicographically reduced. We therefore sort the columns of B, and the columns of B, and then exchange B and B if necessary. We obtain: This configuration has the same number of completions as the one we started with, because all operations we applied leave that number invariant. This means we can consider the two as equivalent for the purpose of the enumeration. Column reduction While this improvement is extremely useful, the calculation will be even faster if we can cut down our list further. Luckily, there are still more possibilities for improving our list. Here is a possible arrangement for the top three rows in a Sudoku grid: Consider the positions marked for the numbers and : It is easy to see that any grid completing these three blocks also completes the following: It follows that this has the same number of completions to a full grid as did the original arrangement. Consequently, the number of ways to extend the original three rows is the same as the number of ways of extending these three rows, and so we should only compute this once. Note that the same can be done for the pairs of numbers (,) in columns and, (,) in columns and, (,) in columns and, and also (,) in columns and. (It is necessary to relabel to get B back into standard form in all but the first of these examples.) We need that there is a subrectangle in the grid with the same entries on the bottom row as on the top (but in the other order, of course). An extension of this method allows us to identify any two configurations with a subrectangle of size k (respectively, k) whose entries consist of two rows (respectively, columns) with the same numbers. Using this trick with just the subrectangles reduced the list of to. Using, and rectangles as well reduced this list to just. In fact, all that we really need is that the columns of two configurations consist of the same numbers, in any order, to guarantee that two configurations can be completed in the same number of ways. The following arrangement:
6 has the same number of completions to a full grid as (This needs to be relabelled to put it back into standard form, and then lexicographically reduced.) In fact, we already had sufficiently few configurations that we didn t need to implement these further reductions. But, having made an exhaustive search of ways to complete our representatives, we found that there were distinct answers. Subsequent work by Ed Russell showed that these further reductions really do reduce the classes to classes. Summary At this stage, we have explained that every one of the original possibilities for blocks B-B is equivalent (in the sense of having the same number of completions to a full grid) to one of a collection C of just. We just need to count the number of ways each of these can be completed to a full grid. If C is one of the possibilities, we will need to know the number of ways n C that we can complete C to a full grid, and also the number of possibilities m C for B-B which are equivalent to C. Then N 0, the total number of Sudoku grids, will be the sum of all of the m C n C for C in C. The brute force counting The brute force part of the calculation comes next; for each of the possible B-B configurations, we have to find how many ways we can complete B B to a full grid. Essentially, we just try all possible ways to fill the remaining boxes and see which are Sudoku grids, but we can again make our lives a little easier by insisting that the first column of blocks B and B is lexicographically ordered (that is, by permuting the middle three rows we can assume that the left-hand entries of B are in numerical order, and similarly for B; we can also exchange B and B). This speeds up our calculation by a factor of once again. We could have reduced the search a little further by doing more of the reduction steps given above. However, the predicted running time at this point was sufficiently low that the possible speed-up gained by going through a catalogue of possibilities for all of blocks B and B, reduced by some of the methods listed above, was hardly worth implementing. Recall that at this stage, the top three blocks B B, and also the first column of blocks B and B are filled. Now we just try each of the possible ways to complete this information to a full Sudoku grid, and count how many of them work. This was programmed very efficiently by the first author using a backtracking algorithm. This proved to be a very efficient method, exhausting the possibilities for a given configuration of blocks B and B to just under minutes on a single PC.. The result At this stage, we had a list of configurations for the top three rows. We know that every possibility for the top three rows can be completed to a full grid in the same number of ways as one of these. For example, we had computed that of the possibilities for the top three rows in standard form can be completed to a full grid in the same number of ways as the particular choice: We also computed that this particular choice of top three rows can be completed to a full grid in = 00 ways. The same calculations were made for all of the possibilities on our list. This then works out, all at once, how many ways there are to complete of the
7 possibilities for the top rows. We do the same for the other, to find exactly how many ways we can complete all of the top three rows to a full grid. This computes the number of grids with B in standard form; we need to multiply by! = 0 to get the total number. In total, there are N 0 = valid Sudoku grids. Taking out the factors of! and coming from relabelling and the lexicographical reduction of the top row of blocks B and B, and of the left column of blocks B and B, this leaves 00 = 0 arrangements, the last factor being prime. Subsequently, Ed Russell verified the result; it has now been verified by several other people as well. Although our original method required a couple of hours of computer time, Guenter Stertenbrink and Kjell Fredrik Pettersen have subsequently developed a method which completes the entire calculation in less than a second! Appendix: A heuristic argument Here is a simple heuristic argument which happens to give almost exactly the right answer. It is due to Kevin Kilfoil. First, it is clear that there are N = (!) ways to fill in each of the blocks B B in such a way that each block has the digits. We also know the number of ways to fill in the three blocks B B so that each block has the digits and also each row has the digits ; we calculated this above as 00. The same will be true for blocks B B and B B. So the number of ways to fill in each of the blocks B B in such a way that each block has digits, and each row has digits, is 00. It follows that the proportion of all of the N possibilities which also satisfy the row property is k = 00 (!). This will also be the proportion of the N grids satisfying the column property. A Sudoku grid is just one of the N grids that has both the row and column property. Assuming that these are independent, this would give the total number of Sudoku grids as Nk = 00 (!). 0. In fact, this answer cannot be correct (it is not even an integer), and the problem is that the row and column probabilities are not quite independent. However, this prediction is really very close to the actual answer we found above: the difference from our exact value is just 0.%. The programs and data are stored at References [] S.F.Bammel, J.Rothstein, The number of Latin squares, Discrete Mathematics () [] B.D.McKay, E.Rogoyski, Latin squares of order 0, Electronic J. Combin. (), Note, approx pp. (electronic) [] B.D.McKay, I.M.Wanless, The number of Latin squares of order eleven, Ann. Combin. (00)
Enumerating possible Sudoku grids
Enumerating possible Sudoku grids Bertram Felgenhauer Department of Computer Science TU Dresden 00 Dresden Germany [email protected] Frazer Jarvis Department of Pure Mathematics University of Sheffield,
Sudoku puzzles and how to solve them
Sudoku puzzles and how to solve them Andries E. Brouwer 2006-05-31 1 Sudoku Figure 1: Two puzzles the second one is difficult A Sudoku puzzle (of classical type ) consists of a 9-by-9 matrix partitioned
Kenken For Teachers. Tom Davis [email protected] http://www.geometer.org/mathcircles June 27, 2010. Abstract
Kenken For Teachers Tom Davis [email protected] http://www.geometer.org/mathcircles June 7, 00 Abstract Kenken is a puzzle whose solution requires a combination of logic and simple arithmetic skills.
Pigeonhole Principle Solutions
Pigeonhole Principle Solutions 1. Show that if we take n + 1 numbers from the set {1, 2,..., 2n}, then some pair of numbers will have no factors in common. Solution: Note that consecutive numbers (such
PARALLELIZED SUDOKU SOLVING ALGORITHM USING OpenMP
PARALLELIZED SUDOKU SOLVING ALGORITHM USING OpenMP Sruthi Sankar CSE 633: Parallel Algorithms Spring 2014 Professor: Dr. Russ Miller Sudoku: the puzzle A standard Sudoku puzzles contains 81 grids :9 rows
MATHEMATICS. Y5 Multiplication and Division 5330 Square numbers, prime numbers, factors and multiples. Equipment. MathSphere
MATHEMATICS Y5 Multiplication and Division 5330 Square numbers, prime numbers, factors and multiples Paper, pencil, ruler. Equipment MathSphere 5330 Square numbers, prime numbers, factors and multiples
Session 7 Fractions and Decimals
Key Terms in This Session Session 7 Fractions and Decimals Previously Introduced prime number rational numbers New in This Session period repeating decimal terminating decimal Introduction In this session,
INTERSECTION MATH And more! James Tanton
INTERSECTION MATH And more! James Tanton www.jamestanton.com The following represents a sample activity based on the December 2006 newsletter of the St. Mark s Institute of Mathematics (www.stmarksschool.org/math).
This puzzle is based on the following anecdote concerning a Hungarian sociologist and his observations of circles of friends among children.
0.1 Friend Trends This puzzle is based on the following anecdote concerning a Hungarian sociologist and his observations of circles of friends among children. In the 1950s, a Hungarian sociologist S. Szalai
Session 6 Number Theory
Key Terms in This Session Session 6 Number Theory Previously Introduced counting numbers factor factor tree prime number New in This Session composite number greatest common factor least common multiple
Genetic Algorithms and Sudoku
Genetic Algorithms and Sudoku Dr. John M. Weiss Department of Mathematics and Computer Science South Dakota School of Mines and Technology (SDSM&T) Rapid City, SD 57701-3995 [email protected] MICS 2009
WRITING PROOFS. Christopher Heil Georgia Institute of Technology
WRITING PROOFS Christopher Heil Georgia Institute of Technology A theorem is just a statement of fact A proof of the theorem is a logical explanation of why the theorem is true Many theorems have this
Sudoku Puzzles: Medium
Puzzles: Medium The modern version of was invented in 1979 by Howard Garns in USA (where it was called `Number Place'). It became really popular in Japan in the 1980s and in the UK since late 2004. It
CS 3719 (Theory of Computation and Algorithms) Lecture 4
CS 3719 (Theory of Computation and Algorithms) Lecture 4 Antonina Kolokolova January 18, 2012 1 Undecidable languages 1.1 Church-Turing thesis Let s recap how it all started. In 1990, Hilbert stated a
A Review of Sudoku Solving using Patterns
International Journal of Scientific and Research Publications, Volume 3, Issue 5, May 2013 1 A Review of Sudoku Solving using Patterns Rohit Iyer*, Amrish Jhaveri*, Krutika Parab* *B.E (Computers), Vidyalankar
Exponents and Radicals
Exponents and Radicals (a + b) 10 Exponents are a very important part of algebra. An exponent is just a convenient way of writing repeated multiplications of the same number. Radicals involve the use of
arxiv:1201.0749v2 [cs.ds] 1 Sep 2013
There is no 16-Clue Sudoku: Solving the Sudoku Minimum Number of Clues Problem via Hitting Set Enumeration Gary McGuire, Bastian Tugemann, Gilles Civario August 31, 2013 arxiv:1201.0749v2 [cs.ds] 1 Sep
3. Mathematical Induction
3. MATHEMATICAL INDUCTION 83 3. Mathematical Induction 3.1. First Principle of Mathematical Induction. Let P (n) be a predicate with domain of discourse (over) the natural numbers N = {0, 1,,...}. If (1)
Permutation Groups. Tom Davis [email protected] http://www.geometer.org/mathcircles April 2, 2003
Permutation Groups Tom Davis [email protected] http://www.geometer.org/mathcircles April 2, 2003 Abstract This paper describes permutations (rearrangements of objects): how to combine them, and how
IB Math Research Problem
Vincent Chu Block F IB Math Research Problem The product of all factors of 2000 can be found using several methods. One of the methods I employed in the beginning is a primitive one I wrote a computer
4.2 Euclid s Classification of Pythagorean Triples
178 4. Number Theory: Fermat s Last Theorem Exercise 4.7: A primitive Pythagorean triple is one in which any two of the three numbers are relatively prime. Show that every multiple of a Pythagorean triple
A search based Sudoku solver
A search based Sudoku solver Tristan Cazenave Labo IA Dept. Informatique Université Paris 8, 93526, Saint-Denis, France, [email protected] Abstract. Sudoku is a popular puzzle. In this paper we
LAMC Beginners Circle: Parity of a Permutation Problems from Handout by Oleg Gleizer Solutions by James Newton
LAMC Beginners Circle: Parity of a Permutation Problems from Handout by Oleg Gleizer Solutions by James Newton 1. Take a two-digit number and write it down three times to form a six-digit number. For example,
6.4 Normal Distribution
Contents 6.4 Normal Distribution....................... 381 6.4.1 Characteristics of the Normal Distribution....... 381 6.4.2 The Standardized Normal Distribution......... 385 6.4.3 Meaning of Areas under
The Pointless Machine and Escape of the Clones
MATH 64091 Jenya Soprunova, KSU The Pointless Machine and Escape of the Clones The Pointless Machine that operates on ordered pairs of positive integers (a, b) has three modes: In Mode 1 the machine adds
Free Pre-Algebra Lesson 8 page 1
Free Pre-Algebra Lesson 8 page 1 Lesson 8 Factor Pairs Measuring more accurately requires breaking our inches into fractions of an inch, little parts smaller than a whole inch. You can think ahead and
Lecture 3: Finding integer solutions to systems of linear equations
Lecture 3: Finding integer solutions to systems of linear equations Algorithmic Number Theory (Fall 2014) Rutgers University Swastik Kopparty Scribe: Abhishek Bhrushundi 1 Overview The goal of this lecture
Notes on Factoring. MA 206 Kurt Bryan
The General Approach Notes on Factoring MA 26 Kurt Bryan Suppose I hand you n, a 2 digit integer and tell you that n is composite, with smallest prime factor around 5 digits. Finding a nontrivial factor
Seriously Simple Sums! Vedic Maths Free Tutorial. Maths Tips and Tricks to Improve Your Math Abilities
Copyright Notice This e-book is free! Maths Tips and Tricks to Improve Your Math Abilities This publication is protected by international copyright laws. You have the author s permission to transmit this
DETERMINANTS IN THE KRONECKER PRODUCT OF MATRICES: THE INCIDENCE MATRIX OF A COMPLETE GRAPH
DETERMINANTS IN THE KRONECKER PRODUCT OF MATRICES: THE INCIDENCE MATRIX OF A COMPLETE GRAPH CHRISTOPHER RH HANUSA AND THOMAS ZASLAVSKY Abstract We investigate the least common multiple of all subdeterminants,
Operation Count; Numerical Linear Algebra
10 Operation Count; Numerical Linear Algebra 10.1 Introduction Many computations are limited simply by the sheer number of required additions, multiplications, or function evaluations. If floating-point
OA3-10 Patterns in Addition Tables
OA3-10 Patterns in Addition Tables Pages 60 63 Standards: 3.OA.D.9 Goals: Students will identify and describe various patterns in addition tables. Prior Knowledge Required: Can add two numbers within 20
Negative Integral Exponents. If x is nonzero, the reciprocal of x is written as 1 x. For example, the reciprocal of 23 is written as 2
4 (4-) Chapter 4 Polynomials and Eponents P( r) 0 ( r) dollars. Which law of eponents can be used to simplify the last epression? Simplify it. P( r) 7. CD rollover. Ronnie invested P dollars in a -year
Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.
Unit 1 Number Sense In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions. BLM Three Types of Percent Problems (p L-34) is a summary BLM for the material
1.6 The Order of Operations
1.6 The Order of Operations Contents: Operations Grouping Symbols The Order of Operations Exponents and Negative Numbers Negative Square Roots Square Root of a Negative Number Order of Operations and Negative
Ummmm! Definitely interested. She took the pen and pad out of my hand and constructed a third one for herself:
Sum of Cubes Jo was supposed to be studying for her grade 12 physics test, but her soul was wandering. Show me something fun, she said. Well I wasn t sure just what she had in mind, but it happened that
Sudoku Puzzles Generating: from Easy to Evil
Team # 3485 Page 1 of 20 Sudoku Puzzles Generating: from Easy to Evil Abstract As Sudoku puzzle becomes worldwide popular among many players in different intellectual levels, the task is to devise an algorithm
Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may
Number Theory Divisibility and Primes Definition. If a and b are integers and there is some integer c such that a = b c, then we say that b divides a or is a factor or divisor of a and write b a. Definition
. 0 1 10 2 100 11 1000 3 20 1 2 3 4 5 6 7 8 9
Introduction The purpose of this note is to find and study a method for determining and counting all the positive integer divisors of a positive integer Let N be a given positive integer We say d is a
Prime Time: Homework Examples from ACE
Prime Time: Homework Examples from ACE Investigation 1: Building on Factors and Multiples, ACE #8, 28 Investigation 2: Common Multiples and Common Factors, ACE #11, 16, 17, 28 Investigation 3: Factorizations:
MATHS ACTIVITIES FOR REGISTRATION TIME
MATHS ACTIVITIES FOR REGISTRATION TIME At the beginning of the year, pair children as partners. You could match different ability children for support. Target Number Write a target number on the board.
Playing with Numbers
PLAYING WITH NUMBERS 249 Playing with Numbers CHAPTER 16 16.1 Introduction You have studied various types of numbers such as natural numbers, whole numbers, integers and rational numbers. You have also
Year 9 set 1 Mathematics notes, to accompany the 9H book.
Part 1: Year 9 set 1 Mathematics notes, to accompany the 9H book. equations 1. (p.1), 1.6 (p. 44), 4.6 (p.196) sequences 3. (p.115) Pupils use the Elmwood Press Essential Maths book by David Raymer (9H
An Integer Programming Model for the Sudoku Problem
An Integer Programming Model for the Sudoku Problem Andrew C. Bartlett Timothy P. Chartier Amy N. Langville Timothy D. Rankin May 3, 2008 Abstract Sudoku is the recent craze in logic puzzles. Players must
If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?
Problem 3 If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C? Suggested Questions to ask students about Problem 3 The key to this question
POLYNOMIAL FUNCTIONS
POLYNOMIAL FUNCTIONS Polynomial Division.. 314 The Rational Zero Test.....317 Descarte s Rule of Signs... 319 The Remainder Theorem.....31 Finding all Zeros of a Polynomial Function.......33 Writing a
Formal Languages and Automata Theory - Regular Expressions and Finite Automata -
Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Samarjit Chakraborty Computer Engineering and Networks Laboratory Swiss Federal Institute of Technology (ETH) Zürich March
Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits
Outline NP-completeness Examples of Easy vs. Hard problems Euler circuit vs. Hamiltonian circuit Shortest Path vs. Longest Path 2-pairs sum vs. general Subset Sum Reducing one problem to another Clique
SAT Math Facts & Formulas Review Quiz
Test your knowledge of SAT math facts, formulas, and vocabulary with the following quiz. Some questions are more challenging, just like a few of the questions that you ll encounter on the SAT; these questions
Factors and Products
CHAPTER 3 Factors and Products What You ll Learn use different strategies to find factors and multiples of whole numbers identify prime factors and write the prime factorization of a number find square
Session 7 Bivariate Data and Analysis
Session 7 Bivariate Data and Analysis Key Terms for This Session Previously Introduced mean standard deviation New in This Session association bivariate analysis contingency table co-variation least squares
Prime Factorization 0.1. Overcoming Math Anxiety
0.1 Prime Factorization 0.1 OBJECTIVES 1. Find the factors of a natural number 2. Determine whether a number is prime, composite, or neither 3. Find the prime factorization for a number 4. Find the GCF
v w is orthogonal to both v and w. the three vectors v, w and v w form a right-handed set of vectors.
3. Cross product Definition 3.1. Let v and w be two vectors in R 3. The cross product of v and w, denoted v w, is the vector defined as follows: the length of v w is the area of the parallelogram with
SUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by
SUBGROUPS OF CYCLIC GROUPS KEITH CONRAD 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by g = {g k : k Z}. If G = g, then G itself is cyclic, with g as a generator. Examples
Kapitel 1 Multiplication of Long Integers (Faster than Long Multiplication)
Kapitel 1 Multiplication of Long Integers (Faster than Long Multiplication) Arno Eigenwillig und Kurt Mehlhorn An algorithm for multiplication of integers is taught already in primary school: To multiply
3. How many winning lines are there in 5x5 Tic-Tac-Toe? 4. How many winning lines are there in n x n Tic-Tac-Toe?
Winning Lines in Tic-Tac-Toe 1. The standard Tic-Tac-Toe is played on a 3 x 3 board, where there are vertical winning lines, horizontal winning lines, diagonal winning lines. This is a grand total of winning
Cryptography and Network Security Department of Computer Science and Engineering Indian Institute of Technology Kharagpur
Cryptography and Network Security Department of Computer Science and Engineering Indian Institute of Technology Kharagpur Module No. # 01 Lecture No. # 05 Classic Cryptosystems (Refer Slide Time: 00:42)
Lecture 1: Systems of Linear Equations
MTH Elementary Matrix Algebra Professor Chao Huang Department of Mathematics and Statistics Wright State University Lecture 1 Systems of Linear Equations ² Systems of two linear equations with two variables
8 Primes and Modular Arithmetic
8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.
PERMUTATIONS AND COMBINATIONS HOW TO AVOID THEM AT ALL COSTS AND STILL ACTUALLY UNDERSTAND AND DO COUNTING PROBLEMS WITH EASE!
PERMUTATIONS AND COMBINATIONS HOW TO AVOID THEM AT ALL COSTS AND STILL ACTUALLY UNDERSTAND AND DO COUNTING PROBLEMS WITH EASE! A BRIEF FOUR-STEP PROGRAM James Tanton www.jamestanton.com COMMENT: If I were
Factoring Whole Numbers
2.2 Factoring Whole Numbers 2.2 OBJECTIVES 1. Find the factors of a whole number 2. Find the prime factorization for any number 3. Find the greatest common factor (GCF) of two numbers 4. Find the GCF for
Chapter 3. Distribution Problems. 3.1 The idea of a distribution. 3.1.1 The twenty-fold way
Chapter 3 Distribution Problems 3.1 The idea of a distribution Many of the problems we solved in Chapter 1 may be thought of as problems of distributing objects (such as pieces of fruit or ping-pong balls)
Factorizations: Searching for Factor Strings
" 1 Factorizations: Searching for Factor Strings Some numbers can be written as the product of several different pairs of factors. For example, can be written as 1, 0,, 0, and. It is also possible to write
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS Systems of Equations and Matrices Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a
Just the Factors, Ma am
1 Introduction Just the Factors, Ma am The purpose of this note is to find and study a method for determining and counting all the positive integer divisors of a positive integer Let N be a given positive
Vieta s Formulas and the Identity Theorem
Vieta s Formulas and the Identity Theorem This worksheet will work through the material from our class on 3/21/2013 with some examples that should help you with the homework The topic of our discussion
Notes on Determinant
ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 9-18/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without
SOLVING QUADRATIC EQUATIONS - COMPARE THE FACTORING ac METHOD AND THE NEW DIAGONAL SUM METHOD By Nghi H. Nguyen
SOLVING QUADRATIC EQUATIONS - COMPARE THE FACTORING ac METHOD AND THE NEW DIAGONAL SUM METHOD By Nghi H. Nguyen A. GENERALITIES. When a given quadratic equation can be factored, there are 2 best methods
MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.
MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column
December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS
December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B KITCHENS The equation 1 Lines in two-dimensional space (1) 2x y = 3 describes a line in two-dimensional space The coefficients of x and y in the equation
FACTORS, PRIME NUMBERS, H.C.F. AND L.C.M.
Mathematics Revision Guides Factors, Prime Numbers, H.C.F. and L.C.M. Page 1 of 16 M.K. HOME TUITION Mathematics Revision Guides Level: GCSE Higher Tier FACTORS, PRIME NUMBERS, H.C.F. AND L.C.M. Version:
Quotient Rings and Field Extensions
Chapter 5 Quotient Rings and Field Extensions In this chapter we describe a method for producing field extension of a given field. If F is a field, then a field extension is a field K that contains F.
MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform
MATH 433/533, Fourier Analysis Section 11, The Discrete Fourier Transform Now, instead of considering functions defined on a continuous domain, like the interval [, 1) or the whole real line R, we wish
1.2 Solving a System of Linear Equations
1.. SOLVING A SYSTEM OF LINEAR EQUATIONS 1. Solving a System of Linear Equations 1..1 Simple Systems - Basic De nitions As noticed above, the general form of a linear system of m equations in n variables
Student Outcomes. Lesson Notes. Classwork. Discussion (10 minutes)
NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 5 8 Student Outcomes Students know the definition of a number raised to a negative exponent. Students simplify and write equivalent expressions that contain
Grade 6 Math Circles. Binary and Beyond
Faculty of Mathematics Waterloo, Ontario N2L 3G1 The Decimal System Grade 6 Math Circles October 15/16, 2013 Binary and Beyond The cool reality is that we learn to count in only one of many possible number
3.1. RATIONAL EXPRESSIONS
3.1. RATIONAL EXPRESSIONS RATIONAL NUMBERS In previous courses you have learned how to operate (do addition, subtraction, multiplication, and division) on rational numbers (fractions). Rational numbers
Sudoku: Bagging a Difficulty Metric & Building Up Puzzles
Sudoku: Bagging a Difficulty Metric & Building Up Puzzles February 18, 2008 Abstract Since its inception in 1979, Sudoku has experienced rapidly rising popularity and global interest. We present a difficulty
The Chinese Remainder Theorem
The Chinese Remainder Theorem Evan Chen [email protected] February 3, 2015 The Chinese Remainder Theorem is a theorem only in that it is useful and requires proof. When you ask a capable 15-year-old why
CALCULATIONS. Understand the operation of addition and the related vocabulary, and recognise that addition can be done in any order
CALCULATIONS Pupils should be taught to: Understand the operation of addition and the related vocabulary, and recognise that addition can be done in any order As outcomes, Year 1 pupils should, for example:
Basic numerical skills: EQUATIONS AND HOW TO SOLVE THEM. x + 5 = 7 2 + 5-2 = 7-2 5 + (2-2) = 7-2 5 = 5. x + 5-5 = 7-5. x + 0 = 20.
Basic numerical skills: EQUATIONS AND HOW TO SOLVE THEM 1. Introduction (really easy) An equation represents the equivalence between two quantities. The two sides of the equation are in balance, and solving
Chapter 17. Orthogonal Matrices and Symmetries of Space
Chapter 17. Orthogonal Matrices and Symmetries of Space Take a random matrix, say 1 3 A = 4 5 6, 7 8 9 and compare the lengths of e 1 and Ae 1. The vector e 1 has length 1, while Ae 1 = (1, 4, 7) has length
Verbal Phrases to Algebraic Expressions
Student Name: Date: Contact Person Name: Phone Number: Lesson 13 Verbal Phrases to s Objectives Translate verbal phrases into algebraic expressions Solve word problems by translating sentences into equations
5544 = 2 2772 = 2 2 1386 = 2 2 2 693. Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1
MATH 13150: Freshman Seminar Unit 8 1. Prime numbers 1.1. Primes. A number bigger than 1 is called prime if its only divisors are 1 and itself. For example, 3 is prime because the only numbers dividing
Solution to Homework 2
Solution to Homework 2 Olena Bormashenko September 23, 2011 Section 1.4: 1(a)(b)(i)(k), 4, 5, 14; Section 1.5: 1(a)(b)(c)(d)(e)(n), 2(a)(c), 13, 16, 17, 18, 27 Section 1.4 1. Compute the following, if
Linear Programming Notes VII Sensitivity Analysis
Linear Programming Notes VII Sensitivity Analysis 1 Introduction When you use a mathematical model to describe reality you must make approximations. The world is more complicated than the kinds of optimization
Midterm Practice Problems
6.042/8.062J Mathematics for Computer Science October 2, 200 Tom Leighton, Marten van Dijk, and Brooke Cowan Midterm Practice Problems Problem. [0 points] In problem set you showed that the nand operator
Previously, you learned the names of the parts of a multiplication problem. 1. a. 6 2 = 12 6 and 2 are the. b. 12 is the
Tallahassee Community College 13 PRIME NUMBERS AND FACTORING (Use your math book with this lab) I. Divisors and Factors of a Number Previously, you learned the names of the parts of a multiplication problem.
Squaring, Cubing, and Cube Rooting
Squaring, Cubing, and Cube Rooting Arthur T. Benjamin Harvey Mudd College Claremont, CA 91711 [email protected] I still recall my thrill and disappointment when I read Mathematical Carnival [4], by
Counting, Generating, and Solving Sudoku
Counting, Generating, and Solving Sudoku Mathias Weller April 21, 2008 Abstract In this work, we give an overview of the research done so far on the topic of Sudoku grid enumeration, solving, and generating
5.5. Solving linear systems by the elimination method
55 Solving linear systems by the elimination method Equivalent systems The major technique of solving systems of equations is changing the original problem into another one which is of an easier to solve
Linear Programming Notes V Problem Transformations
Linear Programming Notes V Problem Transformations 1 Introduction Any linear programming problem can be rewritten in either of two standard forms. In the first form, the objective is to maximize, the material
Chapter 11 Number Theory
Chapter 11 Number Theory Number theory is one of the oldest branches of mathematics. For many years people who studied number theory delighted in its pure nature because there were few practical applications
Systems of Equations Involving Circles and Lines
Name: Systems of Equations Involving Circles and Lines Date: In this lesson, we will be solving two new types of Systems of Equations. Systems of Equations Involving a Circle and a Line Solving a system
TRIGONOMETRY Compound & Double angle formulae
TRIGONOMETRY Compound & Double angle formulae In order to master this section you must first learn the formulae, even though they will be given to you on the matric formula sheet. We call these formulae
5 means to write it as a product something times something instead of a sum something plus something plus something.
Intermediate algebra Class notes Factoring Introduction (section 6.1) Recall we factor 10 as 5. Factoring something means to think of it as a product! Factors versus terms: terms: things we are adding
Multiplication. Year 1 multiply with concrete objects, arrays and pictorial representations
Year 1 multiply with concrete objects, arrays and pictorial representations Children will experience equal groups of objects and will count in 2s and 10s and begin to count in 5s. They will work on practical
The Euclidean Algorithm
The Euclidean Algorithm A METHOD FOR FINDING THE GREATEST COMMON DIVISOR FOR TWO LARGE NUMBERS To be successful using this method you have got to know how to divide. If this is something that you have
