Download presentation

Presentation is loading. Please wait.

1
CREATED BY: CALVIN WILLIAMS Bidirectional Search

2
What is bidirectional search? is a graph search algorithm that finds a shortest path from an initial vertex to a goal vertex in a directed graph. It runs two simultaneous searches: one forward from the initial state, and one backward from the goal, stopping when the two meet in the middle.

3
Sudoku board

4
Sudoku Solving Heuristic In this Sudoku board example we choice our closest number to the start state which is 3 H=[(R z - (F s ± 1)) * (C z - (F s ± 1)] R z is the row tile being checked against the number picked C z is the column tile being checked against the number picked. F s ± 1 picks the number to check to be inserted into the tile

5
Sudoku Solving Heuristic (Cont.) When H = 0, Number picked ± 1 restart (stays between 1-9) Otherwise, Z ± 1 until all tiles are checked then place number there. (Must stay between 0-8) Number Picked is between 1-9

6
Sudoku Example of Heuristic

7
Example explained Picking the 2 and the 4 first because of 3+1 and 3-1. Then from here you go through the row and columns to see if this is a valid number to input. If not input the first number that gets accepted Then move to the next number that on the board from the initial board. We realize after 6 checks that 4 can not be entered there, so we accept the 2

8
Sudoku Solved

9
Problems with Bidirectional Search With Sudoku Bidirectional Search requires you to have the Goal state and work backwards. In Sudoku, youll never have the goal state to work with because that would require the whole board to be finish already. Which defeats the purpose and nullifies the applied heuristic.

10
Solution? There is no true solution by use of Bidirectional Search. The applied heuristic would work if we were only going from the initial state.

Similar presentations

OK

Backtracking COP 3502. Backtracking Backtracking is a technique used to solve problems with a large search space, by systematically trying and eliminating.

Backtracking COP 3502. Backtracking Backtracking is a technique used to solve problems with a large search space, by systematically trying and eliminating.

© 2018 SlidePlayer.com Inc.

All rights reserved.

To make this website work, we log user data and share it with processors. To use this website, you must agree to our Privacy Policy, including cookie policy.

Ads by Google