1 8puzzle. 2 A* search algorithm A* is a best-first, graph search algorithm that finds the least-cost path from a given initial node to one goal node.

Slides:



Advertisements
Similar presentations
Problem solving with graph search
Advertisements

Greedy best-first search Use the heuristic function to rank the nodes Search strategy –Expand node with lowest h-value Greedily trying to find the least-cost.
Informed Search Methods Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 4 Spring 2004.
Informed Search Methods How can we improve searching strategy by using intelligence? Map example: Heuristic: Expand those nodes closest in “as the crow.
Search in AI.
Anytime RRTs Dave Fergusson and Antony Stentz. RRT – Rapidly Exploring Random Trees Good at complex configuration spaces Efficient at providing “feasible”
March 30, 2015 SPI Find the length of vertical or horizontal line segments in the first quadrant of the coordinate system, including problems.
State-Space Searches. State spaces A state space consists of –A (possibly infinite) set of states The start state represents the initial problem Each.
Informed Search Methods How can we make use of other knowledge about the problem to improve searching strategy? Map example: Heuristic: Expand those nodes.
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.
EXERCISES – PATH PLANNING & ROS ISSUES By Vuk Vujovic.
Problem-solving agents
Let’s start with a little problem…
Table of Contents Functions: Transformations of Graphs Vertical Translation: The graph of f(x) + k appears.
Taxicab Geometry. Uses a graph and the movement of a taxi Uses the legs of the resulting right triangle to find slope, distance, and midpoint.
Use coordinate geometry to represent and analyze line segments and polygons, including determining lengths, midpoints and slopes of line segments.
Dijkstra’s Algorithm and Heuristic Graph Search David Johnson.
§ Consider Taxicab and Euclidean distances. Which is usually greater? Taxicab distance or Euclidean distance? Is the reverse ever true? Are they.
Plotting, Midpoint, Distance, Slope. Cartesian Plane Coordinates are written in the following order.
DISTANCE IN THE COORDINATE PLANE Use coordinate geometry to represent and analyze line segments and polygons, including determining lengths, midpoints.
How are things going? Core AI Problem Mobile robot path planning: identifying a trajectory that, when executed, will enable the robot to reach the goal.
EXAMPLE 5 Graph real-world functions CABLE A cable company charges new customers $40 for installation and $60 per month for its service. The cost to the.
Informed search strategies Idea: give the algorithm “hints” about the desirability of different states – Use an evaluation function to rank nodes and select.
COMP261 Lecture 7 A* Search. A* search Can we do better than Dijkstra's algorithm? Yes! –want to explore more promising paths, not just shortest so far.
Operations on Functions Lesson 3.5. Sums and Differences of Functions If f(x) = 3x + 7 and g(x) = x 2 – 5 then, h(x) = f(x) + g(x) = 3x (x 2 – 5)
 Let c be a positive real number. Vertical and Horizontal Shifts in the graph of y = f(x) are represented as follows. 1. Vertical shift c upward:
Heuristic Search: A* 1 CPSC 322 – Search 4 January 19, 2011 Textbook §3.6 Taught by: Vasanth.
2.1 “Relations & Functions” Relation: a set of ordered pairs. Function: a relation where the domain (“x” value) does NOT repeat. Domain: “x” values Range:
Artificial Intelligence for Games Informed Search (2) Patrick Olivier
A * Search A* (pronounced "A star") is a best first, graph search algorithm that finds the least-cost path from a given initial node to one goal node out.
Find the equation of the line with: 1. m = 3, b = m = -2, b = 5 3. m = 2 (1, 4) 4. m = -3 (-2, 8) y = 3x – 2 y = -2x + 5 y = -3x + 2 y = 2x + 2.
Midpoint and Distance Formulas
Distance Formula Geometry Regular Program SY Source: Discovering Geometry (2008) by Michael Serra.
State space representations and search strategies - 2 Spring 2007, Juris Vīksna.
9.6 – POLAR COORDINATES I N THIS SECTION, YOU WILL LEARN TO  plot points in the polar coordinate system  convert points from rectangular to polar.
A* optimality proof, cycle checking CPSC 322 – Search 5 Textbook § 3.6 and January 21, 2011 Taught by Mike Chiang.
8.1 The Rectangular Coordinate System and Circles Part 2: Circles.
Geometry Lesson 8 – 2 Extended Coordinates in Space Objective: Use ordered triple with distance and midpoint formulas.
3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.
Ch. 4 – Informed Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
Draw a line through the points A(1,-2) and D(4,4). Find the coordinates of 2 more points on the line.
Rectangular Coordinates Objectives: Use the Distance Formula Use the Midpoint Formula.
8.1 The Rectangular Coordinate System and Circles Part 2: Circles.
Shortest Path Algorithms By: Nick Bielik Aaron Staranowicz Mike Knadle.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Midpoint and Distance Formulas
1.3 Distance and Midpoints
P8.py.
Midpoint and Distance Formulas
Midpoint and Distance in the Coordinate Plane
Lesson 3-6: Perpendicular & Distance
Coordinate Geometry Notes Name:____________________________
Introduction to Graphing
The A* Algorithm Héctor Muñoz-Avila.
P.5 The Cartesian Plane Our goals are to learn
Chapter 1: Lesson 1.1 Rectangular Coordinates
Ellipses Objectives: Write the standard equation for an ellipse given sufficient information Given an equation of an ellipse, graph it and label the center,
Combinations of Functions:
Partner Whiteboard Review.
Graph the function, not by plotting points, but by starting with the graph of the standard functions {image} given in figure, and then applying the appropriate.
Properties of Functions
1.2 Analyzing Graphs of Functions and Relations
Finding the Total Area y= 2x +1 y= x Area = Area =
6-1: Operations on Functions (+ – x ÷)
Finding the Total Area y= 2x +1 y= x Area = Area =
Find the derivative of the following function:   {image} .
Heuristic Search Generate and Test Hill Climbing Best First Search
Midterm Review.
Heuristic Search Viewed as path Finding in a Graph
Informed Search.
Presentation transcript:

1 8puzzle

2 A* search algorithm A* is a best-first, graph search algorithm that finds the least-cost path from a given initial node to one goal node f(x) = g(x) + h(x) f(x) = distance-plus-cost heuristic function g(x) = the path-cost function = the cost from the starting node to the current node h(x) = an admissible "heuristic estimate" of the distance to the goal

3 Taxicab geometry The taxicab distance between two points in a Euclidean space with fixed Cartesian coordinate system is the sum of the lengths of the projections of the line segment between the points onto the coordinate axes. In the plane the taxicab distance between the point P1 with coordinates (x 1, y 1 ) and the point P2 at (x 2, y 2 ) is |x 1 - x 2 | + |y 1 - y 2 |

4 Our algorithm Different Distance = RouteCount + distToGoal – distToInitial RouteCount = Cost to current state distToGoal = Estimated cost between possible state with coordinates (x 1, y 1 ) and goal state at (x 2, y 2 ) = |x 1 - x 2 | + |y 1 - y 2 | distToInitial = Estimated cost between possible state with coordinates (x 1, y 1 ) and initial state at (x 2, y 2 ) = |x 1 - x 2 | + |y 1 - y 2 |

Example Initial State Current StateGoal State

Move Up Cost = = 4 Move Down Move Right Cost = = Move Left Cost = = 6

Initial State Current StateGoal State

Cost = = Cost = = Cost = = Move UpMove Down Move RightMove Left

Initial State Current StateGoal State

Cost = = Cost = = Cost = = 2 Move UpMove Down Move RightMove Left

Initial State Current StateGoal State

Cost = = Cost = = 5 Move UpMove Down Move RightMove Left

Initial State Current StateGoal State

Cost = = Cost = = Cost = = 0 Move UpMove Down Move RightMove Left

Initial State Current StateGoal State

16

17 Our interface

18 Our options Auto run Run step by step Initial State is fixed Initial State is random