+
+
+
140 std::array <int, V> {5, 3, 0, 0, 7, 0, 0, 0, 0},
+
141 std::array <int, V> {6, 0, 0, 1, 9, 5, 0, 0, 0},
+
142 std::array <int, V> {0, 9, 8, 0, 0, 0, 0, 6, 0},
+
143 std::array <int, V> {8, 0, 0, 0, 6, 0, 0, 0, 3},
+
144 std::array <int, V> {4, 0, 0, 8, 0, 3, 0, 0, 1},
+
145 std::array <int, V> {7, 0, 0, 0, 2, 0, 0, 0, 6},
+
146 std::array <int, V> {0, 6, 0, 0, 0, 0, 2, 8, 0},
+
147 std::array <int, V> {0, 0, 0, 4, 1, 9, 0, 0, 5},
+
+
+
+
151 backtracking::printMat<V>(mat, mat, 9);
+
+
+
154 backtracking::solveSudoku<V>(mat, starting_mat, 0, 0);
+
+
+
diff --git a/d6/d7b/sudoku__solve_8cpp.js b/d6/d7b/sudoku__solve_8cpp.js
index 0f11ecb15..4bff529c7 100644
--- a/d6/d7b/sudoku__solve_8cpp.js
+++ b/d6/d7b/sudoku__solve_8cpp.js
@@ -2,6 +2,6 @@ var sudoku__solve_8cpp =
[
[ "isPossible", "d6/d7b/sudoku__solve_8cpp.html#a80af16e57cfb6aaab2bf1da4c4db3308", null ],
[ "main", "d6/d7b/sudoku__solve_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
- [ "printMat", "d6/d7b/sudoku__solve_8cpp.html#a4664b23ed7939e3df1c0cb23013eec0c", null ],
- [ "solveSudoku", "d6/d7b/sudoku__solve_8cpp.html#af6b62cbc209d7e13ffca0ab3ed3392b6", null ]
+ [ "printMat", "d6/d7b/sudoku__solve_8cpp.html#ae1a76e21cb3934368d01cea7672d3906", null ],
+ [ "solveSudoku", "d6/d7b/sudoku__solve_8cpp.html#a2b98ee79cdbc02ffd7b1f786f9696892", null ]
];
\ No newline at end of file
diff --git a/d7/dba/cll_8h_source.html b/d7/dba/cll_8h_source.html
index 3e831ea8f..4f791dc4d 100644
--- a/d7/dba/cll_8h_source.html
+++ b/d7/dba/cll_8h_source.html
@@ -151,12 +151,13 @@ $(document).ready(function(){initNavTree('d7/dba/cll_8h_source.html','../../');
static void test()
Test implementations.
Definition: rat_maze.cpp:84
int main()
Definition: vigenere_cipher.cpp:131
-
int main()
Definition: sudoku_solve.cpp:131
+
int main()
Definition: sudoku_solve.cpp:137
static matrix< int > generate_encryption_key(size_t size, int limit1=0, int limit2=10)
Generate encryption matrix of a given size. Larger size matrices are difficult to generate but provid...
Definition: hill_cipher.cpp:339
Implementation of Hill Cipher algorithm.
Definition: hill_cipher.cpp:81
int main()
Definition: nqueen_print_all_solutions.cpp:98
int main()
Definition: n_queens.cpp:118
+
void printMat(const std::array< std::array< int, V >, V > &mat, const std::array< std::array< int, V >, V > &starting_mat, int n)
Definition: sudoku_solve.cpp:67
bool solveMaze(int currposrow, int currposcol, const std::array< std::array< int, size >, size > &maze, std::array< std::array< int, size >, size > soln)
Solve rat maze problem.
Definition: rat_maze.cpp:45
@@ -165,6 +166,7 @@ $(document).ready(function(){initNavTree('d7/dba/cll_8h_source.html','../../');
bool CanIMove(const std::array< std::array< int, n >, n > &board, int row, int col)
Definition: n_queens_all_solution_optimised.cpp:59
void deleteKey(int i)
Definition: binaryheap.cpp:105
Backtracking algorithms.
Definition: graph_coloring.cpp:26
+
bool solveSudoku(std::array< std::array< int, V >, V > &mat, const std::array< std::array< int, V >, V > &starting_mat, int i, int j)
Definition: sudoku_solve.cpp:97
Definition: binaryheap.cpp:10
int main()
Definition: minimax.cpp:54
int heap_size
Current number of elements in min heap.
Definition: binaryheap.cpp:13
@@ -196,7 +198,6 @@ $(document).ready(function(){initNavTree('d7/dba/cll_8h_source.html','../../');
node * insert(node *root, int item)
Definition: avltree.cpp:66
int main()
Definition: graph_coloring.cpp:96
static matrix< double > get_inverse(matrix< T > const &A)
Definition: hill_cipher.cpp:250
-
void printMat(const std::array< std::array< int, V >, V > &mat, int n)
Definition: sudoku_solve.cpp:66
static matrix< int > generate_decryption_key(matrix< int > const &encrypt_key)
Generate decryption matrix from an encryption matrix key.
Definition: hill_cipher.cpp:371
int h(int key)
Definition: hash_search.cpp:45
@@ -250,7 +251,6 @@ $(document).ready(function(){initNavTree('d7/dba/cll_8h_source.html','../../');
Functions for Eight Queens puzzle optimized.
static std::ostream & operator<<(std::ostream &out, matrix< T > const &v)
Definition: hill_cipher.cpp:54
-
bool solveSudoku(std::array< std::array< int, V >, V > &mat, int i, int j)
Definition: sudoku_solve.cpp:91
diff --git a/db/dc0/namespacebacktracking.html b/db/dc0/namespacebacktracking.html
index 0bd6e2612..abe8c8b40 100644
--- a/db/dc0/namespacebacktracking.html
+++ b/db/dc0/namespacebacktracking.html
@@ -123,12 +123,12 @@ Functions
| template<size_t V> |
| bool | isPossible (const std::array< std::array< int, V >, V > &mat, int i, int j, int no, int n) |
| |
-
| template<size_t V> |
-
| void | printMat (const std::array< std::array< int, V >, V > &mat, int n) |
-
| |
-
| template<size_t V> |
-
| bool | solveSudoku (std::array< std::array< int, V >, V > &mat, int i, int j) |
-
| |
+
| template<size_t V> |
+
| void | printMat (const std::array< std::array< int, V >, V > &mat, const std::array< std::array< int, V >, V > &starting_mat, int n) |
+
| |
+
| template<size_t V> |
+
| bool | solveSudoku (std::array< std::array< int, V >, V > &mat, const std::array< std::array< int, V >, V > &starting_mat, int i, int j) |
+
| |
Backtracking algorithms.
@@ -502,8 +502,8 @@ Here is the call graph for this function: