CREATED BY: CALVIN WILLIAMS Bidirectional Search.

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

Graph Theory Arnold Mesa. Basic Concepts n A graph G = (V,E) is defined by a set of vertices and edges v3 v1 v2Vertex (v1) Edge (e1) A Graph with 3 vertices.
Solving Problem by Searching
CS 206 Introduction to Computer Science II 03 / 27 / 2009 Instructor: Michael Eckmann.
Problem Solving Agents A problem solving agent is one which decides what actions and states to consider in completing a goal Examples: Finding the shortest.
Solving Problems by Searching Currently at Chapter 3 in the book Will finish today/Monday, Chapter 4 next.
Chapter 4 Search Methodologies.
Graphs Graphs are the most general data structures we will study in this course. A graph is a more general version of connected nodes than the tree. Both.
Solving Puzzles Solutions Puzzle 1: Word Search Sample Algorithm:
Backtracking COP Backtracking  Backtracking is a technique used to solve problems with a large search space, by systematically trying and eliminating.
Problem Solving by Searching
Pathfinding Algorithms Josh Palmer Rachael Beers.
CS 206 Introduction to Computer Science II 11 / 05 / 2008 Instructor: Michael Eckmann.
5-Nov-2003 Heuristic Search Techniques What do you do when the search space is very large or infinite? We’ll study three more AI search algorithms: Backtracking.
COS 423 Lecture 9 Shortest Paths II ©Robert E. Tarjan 2011.
CS 206 Introduction to Computer Science II 03 / 30 / 2009 Instructor: Michael Eckmann.
Row Reduction and Echelon Forms (9/9/05) A matrix is in echelon form if: All nonzero rows are above any all-zero rows. Each leading entry of a row is in.
CSC 2300 Data Structures & Algorithms April 3, 2007 Chapter 9. Graph Algorithms.
SOLVING MULTI-STEP INEQUALITIES TWO STEP INEQUALITIES Solve: 2x – 3 < Verbal Expressions for = 2x < x < 8 CHECK!
SOLVING SUDOKU WITH MATLAB VERIFICATION FUNCTION correctness verification of the puzzle: checks if the current element appears twice in the same line,
Shortest Path. Dijkstra’s Algorithm finds the shortest path from the start vertex to every other vertex in the network. We will find the shortest path.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
SPANNING TREES Lecture 21 CS2110 – Spring
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Graphs.
Spring 2015 Mathematics in Management Science Traveling Salesman Problem Approximate solutions for TSP NNA, RNN, SEA Greedy Heuristic Algorithms.
7 January 2011 Algebra 2. Solving Quadratics by Graphing 1/7 Using a Graph To solve a quadratic equation with a graph, look for the points where the graph.
1 N -Queens via Relaxation Labeling Ilana Koreh ( ) Luba Rashkovsky ( )
Announcements This Wednesday, Class and Labs are cancelled! The last lab is due this Wednesday … how many people are planning on doing it? Finally posted.
Formal Methods & Verification: Project 1 Sudoku for Nonomino board Farn Wang.
Dijkstra’s Algorithm Supervisor: Dr.Franek Ritu Kamboj
Lecture 3: Uninformed Search
Basic Problem Solving Search strategy  Problem can be solved by searching for a solution. An attempt is to transform initial state of a problem into some.
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
ALGORITHMS.
A* Path Finding Ref: A-star tutorial.
How Do I Solve This Thing?. You are familiar with Sudoku puzzles. For this variation, place the integers 1 – 9 into each row or column such that the.
Monster (“Mega”) Sudoku
Backtracking & Brute Force Optimization Intro2CS – weeks
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Making Histograms with the TI-83 Plus Procedure Reference:
CMPT 463. What will be covered A* search Local search Game tree Constraint satisfaction problems (CSP)
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Chapter 8 Multidimensional Arrays
Monster (“Mega”) Sudoku
Artificial Intelligence (CS 370D)
Here is the graph of a function
Discussion section #2 HW1 questions?
Example Fill in the grid so that every row, column and box contains each of the numbers 1 to 9:
Enumerating Distances Using Spanners of Bounded Degree
Analysis and design of algorithm
Breadth First Search 11/21/ s
Shortest Path.
Shortest Path.
A* Path Finding Ref: A-star tutorial.
Exercise: Dice roll sum
Welcome to Jeopardy!.
Question How do you solve a system of simultaneous equations by substitution?
Discrete Math 2 Shortest Path Using Matrix
Breadth First Search s
Shortest Path.
Graphs of Quadratic Functions Day 2
Graph Algorithms: Shortest Path
UNINFORMED SEARCH -BFS -DFS -DFIS - Bidirectional
Breadth First Search s
Spanning Trees Lecture 20 CS2110 – Spring 2015.
Applications of BFS CSE 2011 Winter /17/2019 7:03 AM.
L3-3 Objective: Students will graph systems of linear inequalities
Choose a number greater than 8, substitute for y and solve:
David Kauchak CS51A – Spring 2019
Lecture 22 Complexity and Reductions
Presentation transcript:

CREATED BY: CALVIN WILLIAMS Bidirectional Search

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.

Sudoku board

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

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

Sudoku Example of Heuristic

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

Sudoku Solved

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.

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.