Robert Stautz Character Navigation. Overview 1. Briefly review the A* algorithm. 2. Some variations to A*. 3. Dynamic Pathfinding.

Slides:



Advertisements
Similar presentations
AI Pathfinding Representing the Search Space
Advertisements

1 Heuristic Search Chapter 4. 2 Outline Heuristic function Greedy Best-first search Admissible heuristic and A* Properties of A* Algorithm IDA*
1 Ceng 585 Paper Presentation D*-Lite Path Finding Algorithm and its Variations Can Eroğul
Pathfinding. “PathEngine is a sophisticated middleware tool- kit for the implementation of intelligent agent movement, built around an advanced implementation.
Search Strategies CPS4801. Uninformed Search Strategies Uninformed search strategies use only the information available in the problem definition Breadth-first.
Heuristic State Space Seach Henry Kautz. Assignment.
CSC344: AI for Games Lecture 5 Advanced heuristic search Patrick Olivier
A* and D* Search Kevin Tantisevi. Outline Overview of Search Techniques A* Search D* Search.
Games with Chance Other Search Algorithms CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 3 Adapted from slides of Yoonsuck Choe.
1 PHA*:Performing A* in Unknown Physical Environments Ariel Felner Bar-Ilan University. Joint work with Roni Stern and Sarit Kraus.
Pathfinding Algorithms Josh Palmer Rachael Beers.
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.
Rutgers CS440, Fall 2003 Heuristic search Reading: AIMA 2 nd ed., Ch
Chapter 5.4 Artificial Intelligence: Pathfinding.
State-Space Searches. 2 State spaces A state space consists of –A (possibly infinite) set of states The start state represents the initial problem Each.
State-Space Searches.
GPS Navigation and Data Structures By Michael Cabassol and Augie Hill.
CMU Snake Robot
Dijkstra’s Algorithm and Heuristic Graph Search David Johnson.
Chapter 5.4 Artificial Intelligence: Pathfinding.
Lab 3 How’d it go?.
Graphs II Robin Burke GAM 376. Admin Skip the Lua topic.
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
1 Game AI Path Finding. A Common Situation of Game AI A Common Situation of Game AI Path Planning Path Planning –From a start position to a destination.
Search: Heuristic &Optimal Artificial Intelligence CMSC January 16, 2003.
P ROBLEM Write an algorithm that calculates the most efficient route between two points as quickly as possible.
1 CS 2710, ISSP 2610 Chapter 4, Part 1 Heuristic Search.
State-Space Searches. 2 State spaces A state space consists of A (possibly infinite) set of states The start state represents the initial problem Each.
Modified Chinese Checkers Sabrina Wang, Ben Perlmutter, Melinda Lim.
Informed Search Strategies Lecture # 8 & 9. Outline 2 Best-first search Greedy best-first search A * search Heuristics.
Search with Costs and Heuristic Search 1 CPSC 322 – Search 3 January 17, 2011 Textbook §3.5.3, Taught by: Mike Chiang.
Advanced Artificial Intelligence Lecture 2: Search.
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
For Wednesday Read chapter 5, sections 1-4 Homework: –Chapter 3, exercise 23. Then do the exercise again, but use greedy heuristic search instead of A*
Artificial Intelligence for Games Informed Search (2) Patrick Olivier
CSC3203: AI for Games Informed search (1) Patrick Olivier
Informed Search I (Beginning of AIMA Chapter 4.1)
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
A* Path Finding Ref: A-star tutorial.
Warm-up: Tree Search Solution
11/8/2001CS 638, Fall 2001 Today Admin Path Planning –Intro –Waypoints –A* Path Planning.
CHAPTER 2 SEARCH HEURISTIC. QUESTION ???? What is Artificial Intelligence? The study of systems that act rationally What does rational mean? Given its.
1 CO Games Development 1 Week 8 A* Gareth Bellaby.
3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.
Honors Track: Competitive Programming & Problem Solving Finding your way with A*-algorithm Patrick Shaw.
Artificial Intelligence Lecture No. 8 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Solving problems by searching Uninformed search algorithms Discussion Class CS 171 Friday, October, 2nd (Please read lecture topic material before and.
Romania. Romania Problem Initial state: Arad Goal state: Bucharest Operators: From any node, you can visit any connected node. Operator cost, the.
CSE 326: Data Structures Lecture #17 Heuristic Graph Search Henry Kautz Winter Quarter 2002.
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Announcements Homework 1 Questions 1-3 posted. Will post remainder of assignment over the weekend; will announce on Slack. No AI Seminar today.
Chapter 5.4 Artificial Intelligence: Pathfinding
Maze Implementation, Analysis and Design to find Shortest Paths
Tori Pruim, Simone Liu, Zach Parks
The A* Algorithm Héctor Muñoz-Avila.
Path Planning in Discrete Sampled Space
CAP 5636 – Advanced Artificial Intelligence
Dijkstra’s Algorithm We are given a directed weighted graph
CS 4100 Artificial Intelligence
A* Path Finding Ref: A-star tutorial.
Week 4 Jan 29th 2016.
Team 17c ****** Pathfinding
Shortest Path Algorithms
The Rock Boxers: Tabitha Greenwood Cameron Meade Noah Cahan
Announcements This Friday Project 1 due Talk by Jeniya Tabassum
State-Space Searches.
State-Space Searches.
State-Space Searches.
Presentation transcript:

Robert Stautz Character Navigation

Overview 1. Briefly review the A* algorithm. 2. Some variations to A*. 3. Dynamic Pathfinding

A* Best-First graph search Uses a heuristic to determine paths more likely to lead to the goal G(n) = distance from start to current H(n) = dist from current to goal F(n) = G(n) + H(n)

Dijkstra’s Algorithm Briefly introduced in CS310. Starts with the closest verticies and expands outwards. Guaranteed to find a shortest path.Why is this bad?

Greedy BFS Not guaranteed to find a shortest path. Uses a heuristic shown in yellow. Computed cost to get to the goal from the current node. Benefits?

A* Algorithm Dijkstra’s AlgorithmGreedy Next: A* Variations Dynamic Weights

Dynamic weighting F(n) = g(n) + w(n) * h(n) w >= 1, as you get closer to the goal, decrease this weight. Assume that at the beginning of your search it is more important to start moving. Near the end of the search priority goes to getting to the goal. Next: Beam Search

Beam Search Places a limit on the size of the open set. Once the open set is full the worst node is dropped. Pro’s: Cuts back on the amount of memory for large searches. Con’s: You need to keep the set sorted which limits the types of data structures you can use.

Problems with all of this is that it gives the NPC’s complete information and control. What about when we limit the NPC’s knowledge of the surrounding area?

Dynamic A* Used when the entire map is unknown. Initially assume the environment is empty. When an obstacle is registered replan the path. Used in robotics and maze navigation.

D* The first picture shows A* running and the shortest path The second picture shows D* and how it would navigate through the environment. Obviously does not come up with a shortest path, but if a path exists, it will find it.

PacMan Mason.jar A PacMan game courtesy of Prof. Sean Luke. Mason.jar Ghosts using a Greedy search

Summary There are a lot of slight variations you can do to increase speed or performance. A* isn’t the only option. Decide how important is a shortest path to your character’s navigation.

Sources… Tony Stentz, Research Professor at Carnegie Mellon Uni. Amit Patel, Ph.D. student at Stanford University Jamey Pittman, Game Programmer and PackMan fan ier.html