Changeset 435 in Java_Quellcode_SOOP_Vorlesung for arrays/sudokuextra/SudokuSolverLogic.java
- Timestamp:
- Feb 14, 2020, 3:09:50 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arrays/sudokuextra/SudokuSolverLogic.java
r237 r435 160 160 public static void main(String[] args) { 161 161 162 int[][] sudoku = parseSudokuString(SudokuPuzzles.sExtreme2); 162 String puzzle = SudokuPuzzles.sLangsam; 163 int[][] sLogic = parseSudokuString(puzzle); 164 int[][] sBrute = parseSudokuString(puzzle); 163 165 164 printSudoku(s udoku);166 printSudoku(sLogic); 165 167 166 solve(sudoku); 168 long start = System.currentTimeMillis(); 169 solve(sLogic); 170 printSudoku(sLogic); 171 SudokuSolverBF.solve(sLogic); 172 System.out.println("time logic: " + (System.currentTimeMillis() - start)); 173 174 printSudoku(sLogic); 175 176 start = System.currentTimeMillis(); 177 SudokuSolverBF.solve(sBrute); 178 System.out.println("time brute: " + (System.currentTimeMillis() - start)); 167 179 168 printSudoku(s udoku);180 printSudoku(sBrute); 169 181 170 SudokuSolverBF.solve(sudoku);171 172 printSudoku(sudoku);173 182 } 174 183 }
Note: See TracChangeset
for help on using the changeset viewer.