Memory-Constrained Pathfinding Algorithms for Partially-Known Environments

Total Page:16

File Type:pdf, Size:1020Kb

Memory-Constrained Pathfinding Algorithms for Partially-Known Environments University of Windsor Scholarship at UWindsor Electronic Theses and Dissertations Theses, Dissertations, and Major Papers 2007 Memory-constrained pathfinding algorithms for partially-known environments Denton Cockburn University of Windsor Follow this and additional works at: https://scholar.uwindsor.ca/etd Recommended Citation Cockburn, Denton, "Memory-constrained pathfinding algorithms for partially-known environments" (2007). Electronic Theses and Dissertations. 4672. https://scholar.uwindsor.ca/etd/4672 This online database contains the full-text of PhD dissertations and Masters’ theses of University of Windsor students from 1954 forward. These documents are made available for personal study and research purposes only, in accordance with the Canadian Copyright Act and the Creative Commons license—CC BY-NC-ND (Attribution, Non-Commercial, No Derivative Works). Under this license, works must always be attributed to the copyright holder (original author), cannot be used for any commercial purposes, and may not be altered. Any other use would require the permission of the copyright holder. Students may inquire about withdrawing their dissertation and/or thesis from this database. For additional inquiries, please contact the repository administrator via email ([email protected]) or by telephone at 519-253-3000ext. 3208. Memory-Constrained Pathfinding Algorithms for Partially-Known Environments by Denton Cockbum A Thesis Submitted to the Faculty of Graduate Studies through The School of Computer Science in Partial Fulfillment of the Requirements for the Degree of Master o f Science at the University of Windsor Windsor, Ontario, Canada 2007 © Denton Cockbum 2007 Reproduced with permission of the copyright owner. Further reproduction prohibited without permission. Library and Bibliotheque et Archives Canada Archives Canada Published Heritage Direction du Branch Patrimoine de I'edition 395 Wellington Street 395, rue Wellington Ottawa ON K1A 0N4 Ottawa ON K1A 0N4 Canada Canada Your file Votre reference ISBN: 978-0-494-34975-5 Our file Notre reference ISBN: 978-0-494-34975-5 NOTICE: AVIS: The author has granted a non­ L'auteur a accorde une licence non exclusive exclusive license allowing Library permettant a la Bibliotheque et Archives and Archives Canada to reproduce,Canada de reproduire, publier, archiver, publish, archive, preserve, conserve,sauvegarder, conserver, transmettre au public communicate to the public by par telecommunication ou par I'lnternet, preter, telecommunication or on the Internet,distribuer et vendre des theses partout dans loan, distribute and sell theses le monde, a des fins commerciales ou autres, worldwide, for commercial or non­ sur support microforme, papier, electronique commercial purposes, in microform,et/ou autres formats. paper, electronic and/or any other formats. The author retains copyright L'auteur conserve la propriete du droit d'auteur ownership and moral rights in et des droits moraux qui protege cette these. this thesis. Neither the thesis Ni la these ni des extraits substantiels de nor substantial extracts from it celle-ci ne doivent etre imprimes ou autrement may be printed or otherwise reproduits sans son autorisation. reproduced without the author's permission. In compliance with the Canadian Conformement a la loi canadienne Privacy Act some supporting sur la protection de la vie privee, forms may have been removed quelques formulaires secondaires from this thesis. ont ete enleves de cette these. While these forms may be includedBien que ces formulaires in the document page count, aient inclus dans la pagination, their removal does not represent il n'y aura aucun contenu manquant. any loss of content from the thesis. i * i Canada Reproduced with permission of the copyright owner. Further reproduction prohibited without permission. ABSTRACT Pathfmding is the search for a goal state given a start state, within either static Or dynamic environments. Many pathfmding algorithms exist, including established algorithms such as A*, SMA:*, and D*. These algorithms all provide optimal solution paths, using all available memory. Consequently, Algorithms such as A* and D* are known to be inefficient in terms of memory space usage. SMA* and similar algorithms provide a means by which optimal solution paths can be found while being memory efficient. SMA* and such algorithms are restricted to static environments, in which state traversal costs never change. This is a severe limitation, as one of the primary fields for search algorithms are games, many of which involve dynamic environments. Presented in this paper is a dynamic variant of the established D* Lite algorithm, that is able to provide an optimal solution path, if given sufficient memory, while using as little memory as possible. It is also the case that in some areas, an optimal solution is not needed. This may be the case for robotics. Many algorithms already exist in this area, such as Anytime algorithms for time-limited searches. Real-Time algorithms for when the agent needs to move while planning its path. Also presented is an algorithm for real-time planning when an agent does not have a priori knowledge of the environment, and also limited memory capacity. This algorithm sacrifices optimality, but in turn is highly memory efficient, even in comparison to other algorithms designed for memory efficiency. iii Reproduced with permission of the copyright owner. Further reproduction prohibited without permission. DEDICATION I would like to dedicate this work to my two sets of parents. I am fortunate to have two great families that love me so much. My dad and stepmother, thank you so much for all that you have put into me and my education. I couldn't be who I am today without you. My mother and my stepfather, thank you for helping me be the man I am today. When I get stressed with the winter months and the school burnout, I always have a tropical home to return to. I'd like to thank you all for all that you have done for me, I love you. Reproduced with permission of the copyright owner. Further reproduction prohibited without permission. ACKNOWLEDGEMENTS I would like to thank first of all my advisor Dr. Kobti. Your guidance has helped me through times when I doubted myself. You have also been an inspiration in showing me that I can continue my education to even higher heights. I'd also like to thank Dr. Goodwin. > Your class is what started me along this research area. Thank you for making your class fun to be in and learn from. Also thank you for the advice and patience you have given and shown. I'd also like to thank Dr. Ngom. Even though I wasn't a student of yours, you spent a lot of your time advising me. I thank you for suggesting I continue with this research area. Finally, I'd like to thank the ladies in the computer science office. You made handling school bureaucracy a breeze. v Reproduced with permission of the copyright owner. Further reproduction prohibited without permission. Table of Contents ABSTRACT...........................................................................................................................................................3 DEDICATION.............................................................. 4 ACKNOWLEDGEMENTS .........................................................................................................................5 Chapter 1: Introduction.................................................;............. 1 1.1 Background....................................................................................... 1 1.2 Motivation.................................................... 1 1.3 Thesis Contribution................................................................................................................................... 3 1.4 Thesis Organization......................................... 3 Chapter 2: Review of Literature....................................................................... 5 2.1 A* .................................................................................................................................................................5 2.2 SMA* ............................................................................................................................. 7 2.3 LPA* ................................................................................. ,.........................................................................7 2.4 Focused D*................................................................................................................................................. 9 2.5 D* Lite ........................................................................................................ !...............................................9 2.6 Anytime Repairing A* ............................................................................................................................ 10 2.7 Anytime D* ...............................................................................................................................................11 2.8 Adaptive A*..............................................................................................................................................12 2.9 Fringe Saving A*................................................................................................... 13 2.10 Delayed D*............................................................................................................................................. 14 Chapter 3: Range-Limited A*...........................................................................................................................
Recommended publications
  • Pathfinding in Computer Games
    The ITB Journal Volume 4 Issue 2 Article 6 2003 Pathfinding in Computer Games Ross Graham Hugh McCabe Stephen Sheridan Follow this and additional works at: https://arrow.tudublin.ie/itbj Part of the Computer and Systems Architecture Commons Recommended Citation Graham, Ross; McCabe, Hugh; and Sheridan, Stephen (2003) "Pathfinding in Computer Games," The ITB Journal: Vol. 4: Iss. 2, Article 6. doi:10.21427/D7ZQ9J Available at: https://arrow.tudublin.ie/itbj/vol4/iss2/6 This Article is brought to you for free and open access by the Ceased publication at ARROW@TU Dublin. It has been accepted for inclusion in The ITB Journal by an authorized administrator of ARROW@TU Dublin. For more information, please contact [email protected], [email protected]. This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 4.0 License ITB Journal Pathfinding in Computer Games Ross Graham, Hugh McCabe, Stephen Sheridan School of Informatics & Engineering, Institute of Technology Blanchardstown [email protected], [email protected], [email protected] Abstract One of the greatest challenges in the design of realistic Artificial Intelligence (AI) in computer games is agent movement. Pathfinding strategies are usually employed as the core of any AI movement system. This report will highlight pathfinding algorithms used presently in games and their shortcomings especially when dealing with real-time pathfinding. With the advances being made in other components, such as physics engines, it is AI that is impeding the next generation of computer games. This report will focus on how machine learning techniques such as Artificial Neural Networks and Genetic Algorithms can be used to enhance an agents ability to handle pathfinding in real-time.
    [Show full text]
  • Branch and Bound Algorithm to Determine the Best Route to Get Around Tokyo
    Branch and Bound Algorithm to Determine The Best Route to Get Around Tokyo Muhammad Iqbal Sigid - 13519152 Program Studi Teknik Informatika Sekolah Teknik Elektro dan Informatika Institut Teknologi Bandung, Jalan Ganesha 10 Bandung E-mail: [email protected] Abstract—This paper described using branch and bound Fig. 1. State Space Tree example for Branch and Bound Algorithm (Source: algorithm to determined the best route to get around six selected https://informatika.stei.itb.ac.id/~rinaldi.munir/Stmik/2020-2021/Algoritma- places in Tokyo, modeled after travelling salesman problem. The Branch-and-Bound-2021-Bagian1.pdf accessed May 8, 2021) bound function used is reduced cost matrix using manual calculation and a python program to check the solution. Branch and Bound is an algorithm design which are usually used to solve discrete and combinatorial optimization Keywords—TSP, pathfinding, Tokyo, BnB problems. Branch and bound uses state space tree by expanding its nodes (subset of solution set) based on the minimum or I. INTRODUCTION maximum cost of the active node. There is also a bound which is used to determine if a node can produce a better solution Pathfinding algorithm is used to find the most efficient than the best one so far. If the node cost violates this bound, route between two points. It can be the shortest, the cheapest, then the node will be eliminated and will not be expanded the faster, or other kind. Pathfinding is closely related to the further. shortest path problem, graph theory, or mazes. Pathfinding usually used a graph as a representation. The nodes represent a Branch and bound algorithm is quite similar to Breadth place to visit and the edges represent the nodes connectivity.
    [Show full text]
  • Pathfinding in Strategy Games and Maze Solving Using A* Search Algorithm
    Journal of Computer and Communications, 2016, 4, 15-25 http://www.scirp.org/journal/jcc ISSN Online: 2327-5227 ISSN Print: 2327-5219 Pathfinding in Strategy Games and Maze Solving Using A* Search Algorithm Nawaf Hazim Barnouti, Sinan Sameer Mahmood Al-Dabbagh, Mustafa Abdul Sahib Naser Al-Mansour University College, Baghdad, Iraq How to cite this paper: Barnouti, N.H., Abstract Al-Dabbagh, S.S.M. and Naser, M.A.S. (2016) Pathfinding in Strategy Games and Pathfinding algorithm addresses the problem of finding the shortest path from Maze Solving Using A* Search Algorithm. source to destination and avoiding obstacles. One of the greatest challenges in the Journal of Computer and Communications, design of realistic Artificial Intelligence (AI) in computer games is agent movement. 4, 15-25. http://dx.doi.org/10.4236/jcc.2016.411002 Pathfinding strategies are usually employed as the core of any AI movement system. In this work, A* search algorithm is used to find the shortest path between the source Received: July 25, 2016 and destination on image that represents a map or a maze. Finding a path through a Accepted: September 4, 2016 Published: September 8, 2016 maze is a basic computer science problem that can take many forms. The A* algo- rithm is widely used in pathfinding and graph traversal. Different map and maze Copyright © 2016 by authors and images are used to test the system performance (100 images for each map and maze). Scientific Research Publishing Inc. The system overall performance is acceptable and able to find the shortest path be- This work is licensed under the Creative Commons Attribution International tween two points on the images.
    [Show full text]
  • Graph Traversal
    CSE 373: Graph traversal Michael Lee Friday, Feb 16, 2018 1 Solution: This algorithm is known as the 2-color algorithm. We can solve it by using any graph traversal algorithm, and alternating colors as we go from node to node. Warmup Warmup Given a graph, assign each node one of two colors such that no two adjacent vertices have the same color. (If it’s impossible to color the graph this way, your algorithm should say so). 2 Warmup Warmup Given a graph, assign each node one of two colors such that no two adjacent vertices have the same color. (If it’s impossible to color the graph this way, your algorithm should say so). Solution: This algorithm is known as the 2-color algorithm. We can solve it by using any graph traversal algorithm, and alternating colors as we go from node to node. 2 Problem: What if we want to traverse graphs following the edges? For example, can we... I Traverse a graph to find if there’s a connection from one node to another? I Determine if we can start from our node and touch every other node? I Find the shortest path between two nodes? Solution: Use graph traversal algorithms like breadth-first search and depth-first search Goal: How do we traverse graphs? Today’s goal: how do we traverse graphs? Idea 1: Just get a list of the vertices and loop over them 3 I Determine if we can start from our node and touch every other node? I Find the shortest path between two nodes? Solution: Use graph traversal algorithms like breadth-first search and depth-first search Goal: How do we traverse graphs? Today’s goal: how do we traverse graphs? Idea 1: Just get a list of the vertices and loop over them Problem: What if we want to traverse graphs following the edges? For example, can we..
    [Show full text]
  • CSE 473: Artificial Intelligence Outline
    1/8/20 CSE 473: Artificial Intelligence Problem Spaces & Search Dan Weld With slides from Dan Klein, Stuart Russell, Andrew Moore, Luke Zettlemoyer, Dana Nau… 1 Outline § Search Problems § Uninformed Search Methods § Depth-First Search § Breadth-First Search § Iterative Deepening Search § Uniform-Cost Search § Heuristic Search Methods § Heuristic Generation 2 1 1/8/20 Agent vs. Environment § An agent is an entity that Agent perceives and acts. Sensors Percepts § A rational agent selects Environment actions that maximize its ? utility function. § Characteristics of the Actuators percepts, environment, and Actions action space dictate techniques for selecting rational actions. 3 Goal Based Agents § Plan ahead § Ask “What if” § Decisions based on (hypothesized) consequences of actions § Requires a model of hoW the World evolves in response to actions § Act on hoW the World WOULD BE 4 2 1/8/20 Search thru a Problem Space (aka State Space) • Input: Functions: States à States § Set of states Aka “Successor Function” § Operators [and costs] § Start state § Goal state [or test] • Output: • Path: start Þ a state satisfying goal test [May require shortest path] [Sometimes just need a state that passes test] 6 6 Example: Simplified Pac-Man § Input: § A state space § Operators § Go North “Go North” § Go East § Etc “Go East” § A start state § A goal test § Output: 7 3 1/8/20 State Space Defines a Graph State space graph: § Each node is a state a G § Each edge is an operators b c § Edges may be labeled with cost of operator e d f S h p r q In contrast
    [Show full text]
  • Pathfinding Algorithm Efficiency Analysis in 2D Grid
    ISSN 1691-5402 Environment. Technology. Resources Proceedings of the 9th International Scientific and Practical Conference. Volume 1I © Rēzeknes Augstskola, Rēzekne, RA Izdevniecība, 2013 Pathfinding Algorithm Efficiency Analysis in 2D Grid Imants Zarembo, Sergejs Kodors Rezekne Higher Education Institution Abstract. The main goal of this paper is to collect information about pathfinding algorithms A*, BFS, Dijkstra's algorithm, HPA* and LPA*, and compare them on different criteria, including execution time and memory requirements. Work has two parts, the first being theoretical and the second practical. The theoretical part details the comparison of pathfinding algorithms. The practical part includes implementation of specific algorithms and series of experiments using algorithms implemented. Such factors as various size two dimensional grids and choice of heuristics were taken into account while conducting experiments. Keywords – A*, BFS, Dijkstra's algorithm, HPA*, LPA*, shortest path problem. I INTRODUCTION In case of HPA* three level hierarchy was chosen Pathfinding theory describes a process of finding a and initial grid was divided into 4x4 clusters. These path between two points in a certain environment. In parameters were chosen because any smaller division the most cases the goal is to find the specific shortest of base grid (64x64 in this case) would lead to path, which would be optimal, i.e., the shortest, the incorrect search results while executing preprocessing cheapest or the simplest. Criteria such as, a path, phase. which imitates path chosen by a person, a path, that Manhattan distance was chosen as heuristic requires the lowest amount of fuel, or a path from function, because it is strictly grid based distance: point A to point B through point C is often found .
    [Show full text]
  • Pathfinding Algorithms and Implementations on Grid Map
    Pathfinding Algorithms and Implementations on Grid Map Steven Andrew / 13509061 Program Studi Teknik Informatika Sekolah Teknik Elektro dan Informatika Institut Teknologi Bandung, Jl. Ganesha 10 Bandung 40132, Indonesia [email protected] Abstract—This paper explains some pathfinding than seeking the goal directly. Planning with pathfinders algorithms such as: depth-first search, breadth-first search, is slower but gives better results [3]. Floyd–Warshall algorithm, Dijkstra’s algorithm, best-first There are many algorithms we can use to do search, and A* algorithm, and also their implementations pathfinding. We will discuss about some pathfinding on a grid map that are commonly used in real-time strategy and role-playing games. Experiments show that A* algorithms and do experiments with them to see results. algorithm results in the best path and is efficient in We will also compare experiment results and determine performance. which pathfinding algorithm is the best. Index Terms —A* algorithm, graph, grid map, heuristic, II. GRID MAP REPRESENTATION AND DATA pathfinding. STRUCTURE I. INTRODUCTION In most kind of games, such as real-time strategy and role-playing games, there are many problems dealing with a game character. A problem we’re trying to solve is to get a game object from the starting point to a goal. Depending on distance and obstacles, there are many ways to find a path. But, the best path we want to find is the shortest path. Pathfinding is a process to find the object the shortest path. It is complex [3]. Consider the situation as shown in Fig. 1. Fig. 2.
    [Show full text]
  • Heuristic Pathfinding Algorithm Based on Dijkstra Yan-Jiang SUN1, A, Xiang-Qian DING2, B, Lei-Na JIANG3, C
    Advances in Engineering Research (AER), volume 131 3rd Annual International Conference on Electronics, Electrical Engineering and Information Science (EEEIS 2017) Heuristic Pathfinding Algorithm Based on Dijkstra Yan-Jiang SUN1, a, Xiang-Qian DING2, b, Lei-Na JIANG3, c 1, 2, 3 College of Information Science and Engineering Ocean University of China, Qingdao, Shandong, China [email protected], [email protected], [email protected] *Leina Jiang Keywords: Dijkstra algorithm, shortest path, small heap, passing point, heuristic, pathfinding Abstract. The problem of shortest path solution belongs to the classical algorithm problem, the Dijkstra algorithm has wide research and application, but there are still some shortcomings in practical applications. First of all, in order to solve the problem of low efficiency of Dijkstra algorithm, this paper adopts the way of small heap, it improves the efficiency and makes the time complexity reduce to O (nlogn); secondly, since Dijkstra is a single source shortest path algorithm, and cannot be better to solve the problem that the path has passing points, so, this paper presents a heuristic path- finding strategy based on the improved Dijkstra algorithm. Under the restriction of passing points, with the distance between the source point and passing point as a elicitation, this paper solves the shortest path problem from the starting point to finishing point; in the end, this paper verify the effectiveness of this pathfinding strategy by experimental results. Introduction The problem of calculating route belongs to the basic algorithm problem, the study of such problem is very important. Optimizing and dealing with the shortest path that encounter in the work can greatly improve the efficiency of work.
    [Show full text]
  • Anytime Heuristic Search: Frameworks and Algorithms
    Proceedings of the Third Annual Symposium on Combinatorial Search (SOCS-10) Anytime Heuristic Search: Frameworks and Algorithms Jordan Thayer and Wheeler Ruml h jtd7, ruml i at cs.unh.edu The University of New Hampshire Department of Computer Science Durham, NH 03824 USA Abstract Other evaluations have erred in the other direction, focus- ing primarily on domains which are trees of bounded depth Anytime search is a pragmatic approach for trading solution cost and solving time. It can also be used for solving prob- where each leaf is a solution (Aine, Chakrabarti, and Kumal lems within a time bound. Three frameworks for construct- 2007). Both types of benchmarks are required for a realistic ing anytime algorithms from bounded suboptimal search have impression of the performance of an algorithm. been proposed: continuing search, repairing search, and Hansen and Zhou (2007) argued that the approach taken restarting search, but what combination of suboptimal search by ARA* is flawed. They note that decreasing weights and anytime framework performs best? An extensive em- and delaying the expansion of duplicate states is of lim- pirical evaluation results in several novel algorithms and re- ited utility and can be harmful. Delaying duplicates can in- veals that the relative performance of frameworks is essen- crease the cost of the solution found during an iteration of tially fixed, with the repairing framework having the strongest ARA*, potentially increasing the time to converge on opti- overall performance. As part of our study, we present two en- hancements to Anytime Window A* that allow it to solve a mal solutions.
    [Show full text]
  • Pathfinding Algorithms in Graphs and Applications
    Facultat de Matemàtiques i Informàtica GRAU DE MATEMÀTIQUES Treball final de grau PATHFINDING ALGORITHMS IN GRAPHS AND APPLICATIONS Autor: Daniel Monzonís Laparra Director: Dr. Antoni Benseny Realitzat a: Departament de Matemàtiques i Informàtica Barcelona, January 15, 2019 Abstract The aim of this work is to give a rigorous mathematical insight of the most popular pathfinding algorithms, focusing on A∗ and trying to understand how the heuristic it uses affects its correctness and performance. We complement this theoretical study of the algorithms with experimental results found by running two benchmarks of the algorithms using a simulator of the algorithms built for this project. 2010 Mathematics Subject Classification. 05C12, 05C38, 05C85, 68R10 Contents 1 Introduction 4 2 The A∗ algorithm 6 2.1 BFS . .7 2.2 Dijkstra . 10 2.3 Greedy Best-First search . 13 2.4 A∗ ............................................ 13 3 Heuristics 21 3.1 Consistent heuristics . 21 3.2 Optimality of A∗ ................................... 24 3.3 Heuristics on grid graphs . 27 4 Pathfinding simulator 28 5 Comparison of the algorithms 31 5.1 Grid graph benchmark . 31 5.2 Road graph benchmark . 32 6 Conclusions 34 Appendices 36 A Data structures 36 A.1 Queue . 36 A.2 Priority Queue . 36 A.3 Set............................................ 37 A.4 Map . 37 3 Chapter 1 Introduction Many problems in the fields of science, mathematics and engineering can be gener- alised to the problem of finding a path in a graph. Examples of such problems include routing of telephone or Internet traffic, layout of printed circuit boards, automated theo- rem proving, GPS routing, decision making in artificial intelligence and robotics [1].
    [Show full text]
  • 230 Simulation and Comparison of Efficency in Pathfinding Algorithms
    230 Ciência e Natura, v. 37 Part 2 jun. 2015, p. 230−238 ISSN impressa: 0100-8307 ISSN on-line: 2179-460X Simulation and Comparison of Efficency in Pathfinding algorithms in Games Azad Noori 1, Farzad Moradi 2 1Department of Computer at Technical and Vocational University, Tehran, iran 2 Saghez Branch,Islamic Azad University, Saghez, iran Abstract There are several routes to go from point A to point B in many computer games and computer player have to choose the best route. To do this, the pathfinding algorithms is used. Currently, several algorithms have been proposed for routing in games so that the general challenges of them is high consumption of memory and a long Execution time. Due to these problems, the development and introduction of new algorithms will be continued. At the first part of this article, in addition to basic and important used algorithms, the new algorithm BIDDFS is introduced. In the second part, these algorithms in the various modes, are simulated on 2D-Grid, and compared based on their efficency (memory consumption and execution time) , Simulated algorithms include: Dijkstra, Iddfs, Biddfs, Bfs (Breadth), Greedy Best First Search, Ida*, A*, Jump point search, HPA*. Keywords: BIDDFS, JPS, A*,HPA*, IDA *. Recebido: dia/mês/ano Aceito: dia/mês/ano 231 a 2D grid map. They are compared together 1 Introduction according to performance and the number of nodes traversed from start to end [2,3]. One of the important concepts in the game is trying to use artificial intelligence o that has been in them [1]. For achieving the 2 History And Previous Work aim, several methods and techniques have been proposed .One of the most important methods is In [4], the author mentions to intelligent the use of pathfinding method, Some of them are routing that is required in route selection in discussed in part [2].
    [Show full text]
  • ARTIFICIAL INTELLIGENCE Pathfinding and Search
    INFOB2KI 2019-2020 Utrecht University The Netherlands ARTIFICIAL INTELLIGENCE Pathfinding and search Lecturer: Silja Renooij These slides are part of the INFOB2KI Course Notes available from www.cs.uu.nl/docs/vakken/b2ki/schema.html Pathfinding `Physical’ world: open space or structured? 2 Contents . Dijkstra, BFS, DFS, DLS, IDS . Differences with elective course ‘Algoritmiek’: – Theory all by example: Dijkstra in detail, others more superficial. Some more in- depth in Project B – Emphasis on difference tree-search / graph-search – Emphasis on comparison of properties rather than proofs of properties. 3 Pathfinding in Romania 4 Requirements for search 1. States S: abstract represention of (set of) real state(s) – E.g. all cities on a map, or all possible paths in a grid or (waypoint) graph – A problem typically assigns an initial state (e.g "in Arad“) and a goal state (e.g. "in Zerind“) 2. Actions (operators/production rules) S S’: abstract representation of combination of real actions – E.g. change from one path to another by change of links – Each abstract action should be "easier" than the original problem; e.g., "Arad Zerind" represents a complex set of possible routes, detours, rest stops, etc. 5 State space for search The state space represents all states reachable from the initial state by any sequence of actions. A tree or graph with nodes S and (un)directed edges S S’ is used as state space representation. A search algorithm is applied to the state space representation to find a solution (abstract representation of solution in the real world) – for guaranteed realizability, a sequence of actions maps initial state to goal state – e.g.
    [Show full text]