1 00:00:06,090 --> 00:00:09,860 In this video, I'm just going to go through some of the basic terminology and 2 00:00:09,860 --> 00:00:13,100 rules of Sudoku. So this is really kind of like a domain 3 00:00:13,100 --> 00:00:15,716 analysis for the problem we're about to solve. 4 00:00:15,716 --> 00:00:21,260 So first, Sudoku is played on a nine by nine board. 5 00:00:21,260 --> 00:00:25,960 because it's nine by nine, the board has 81 of what we're going to call squares. 6 00:00:25,960 --> 00:00:31,757 In addition to the 81 squares, we say that the board has 9 rows, because it's a 7 00:00:31,757 --> 00:00:37,200 nine by nine board, nine columns. Cause it's a nine by nine board, and it 8 00:00:37,200 --> 00:00:43,760 also has nine boxes, where the boxes are little three by three blocks of the whole 9 00:00:43,760 --> 00:00:47,220 board. And so there's three boxes at the top, 10 00:00:47,220 --> 00:00:50,298 three boxes kind of in the middle and three boxes at the bottom. 11 00:00:50,298 --> 00:00:58,920 So, the rows, the columns and the boxes together, comprised what are called 12 00:00:58,920 --> 00:01:03,040 units. There's 27 total units, because there's 13 00:01:03,040 --> 00:01:11,296 nine rows, nine columns, and nine boxes. And adding nine, nine and nine gets 27. 14 00:01:11,296 --> 00:01:17,820 So there's 27 total units and now we have enough terminology to concisely say the 15 00:01:17,820 --> 00:01:22,020 goal of the game. The goal of the game is to fill every 16 00:01:22,020 --> 00:01:28,450 square with a natural number from one to nine, but making sure there's not a 17 00:01:28,450 --> 00:01:32,980 duplicate number in any unit. So there can't be a single row that has a 18 00:01:32,980 --> 00:01:35,610 duplicate number in it. There can't be a single column that has a 19 00:01:35,610 --> 00:01:38,690 duplicate number in it. And there can't be a single box that has 20 00:01:38,690 --> 00:01:42,490 a duplicate number in it. Because we have the term unit we can say 21 00:01:42,490 --> 00:01:47,340 that more concisely as there can't be a single unit that has a duplicate number 22 00:01:47,340 --> 00:01:51,645 in it. So just to be clear, this is an illegal 23 00:01:51,645 --> 00:01:56,690 move. You can't put a six in that third box in 24 00:01:56,690 --> 00:01:59,250 the first row, because there's already a six in that row. 25 00:01:59,250 --> 00:02:05,350 So that's an illegal move. Here's another illegal move, you can't 26 00:02:05,350 --> 00:02:09,348 put a one there because there's already a one in that column. 27 00:02:09,348 --> 00:02:14,120 So that's an illegal move. And here's another illegal move. 28 00:02:14,120 --> 00:02:18,780 You can't put a three there, you can't put the red three in because there's 29 00:02:18,780 --> 00:02:23,790 already a three in that box. That's an illegal move. 30 00:02:23,790 --> 00:02:31,250 Again, the goal of the game is to fill in every square. 31 00:02:31,250 --> 00:02:36,970 Was a natural from one to nine inclusive, but making sure that there's not a 32 00:02:36,970 --> 00:02:43,390 duplicate number in any unit. So that's the quick terminology of Sudoku 33 00:02:43,390 --> 00:02:48,080 and a quick summary of the rules. Again, if you've never seen Sudoku before 34 00:02:48,080 --> 00:02:52,630 and you'd like a bit more detailed introduction to the rules of the game. 35 00:02:52,630 --> 00:02:58,420 Just do a web search and find one of the many Sudoku sites, and you can play one 36 00:02:58,420 --> 00:03:04,625 or two quick games before picking up the next video.