Digital Signal Processing Reference
In-Depth Information
2, 7, 0, 3, 0, 8, 0, 9, 1;
9, 0, 1, 6, 0, 2, 8, 0, 5;
0, 6, 4, 9, 0, 5, 2, 3, 0]
>> sudoku_search(puzzle);
Shortly afterwards, MATLAB responds with the following output.
puzzle =
1
2
3
4
5
6
7
8
9
4
5
6
7
8
9
1
2
3
7
8
9
1
2
3
4
5
6
3
1
2
5
6
4
9
7
8
5
4
7
8
9
1
3
6
2
6
9
8
2
3
7
5
1
4
2
7
5
3
4
8
6
9
1
9
3
1
6
7
2
8
4
5
8
6
4
9
1
5
2
3
7
puzzle =
1
2
3
4
5
6
7
8
9
5
4
6
7
8
9
1
2
3
7
8
9
1
2
3
4
5
6
3
1
2
5
6
4
9
7
8
4
5
7
8
9
1
3
6
2
6
9
8
2
3
7
5
1
4
2
7
5
3
4
8
6
9
1
9
3
1
6
7
2
8
4
5
8
6
4
9
1
5
2
3
7
As we see from the output, the puzzle now has two solutions. Examining the two
solutions shows that the columns 1 and 2 in rows 2 and 5 are the only dierences.
10.8
Converting Decimal to Binary
To convert a decimal number to binary, most people are familiar with a divide-by-
two algorithm. We start with the decimal number and divide by 2, keeping track of
Search WWH ::




Custom Search