1 / 10

Bidirectional Search

Bidirectional Search. Created by: Calvin Williams. What is bidirectional search?.

metea
Télécharger la présentation

Bidirectional Search

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Bidirectional Search Created by: Calvin Williams

  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 3H=[(Rz - (Fs ± 1)) * (Cz - (Fs ± 1)] Rzis the row tile being checked against the number picked Cz is the column tile being checked against the number picked. Fs ± 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, you’ll 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.

More Related