1 / 20

AI Search Strategies and State-Space Abstraction in Java

This course covers AI theories, program architecture, search algorithms, state-space modeling, and abstracting problem states in Java. Learn about uninformed and informed search algorithms, abstraction mechanisms, and design patterns. Discover how to model problem structures graphically and implement search strategies. Explore generality, reuse, and the interaction between AI theory and program architecture. Gain insights into DFS, BFS, best-first search, heuristic ranks, and the separation of representation and control. Put the framework to use by defining problem states efficiently and implementing searches effectively in Java.

Download Presentation

AI Search Strategies and State-Space Abstraction in Java

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. CSCE 580Artificial IntelligenceProblem Spaces and Search Fall 2011 Jingsong Wang wang82@engr.sc.edu

  2. Abstraction and Generality in Java • The Interaction between AI theory and program architecture • Implementation of search strategies • Generality and reuse • Abstraction mechanisms and design patterns

  3. Search Algorithms • Uninformed algorithms: • Depth-first search (DFS) • Breadth-first search (BFS) • … • Informed algorithms • Best-first search • …

  4. Search Algorithms • Model the structure of a problem graphically as a state—space • Elements defining a state-space: • A formal representation of possible states of a problem solution • Operators for generating new states from a given state • Some way of recognizing a goal state • A starting state of the problem, represented as the root of the graph

  5. Search Algorithms • DFS – stack • BFS – queue • Best-first search – priority queue • Heuristic rank • sorted

  6. Abstracting Problem States • The separation of representation and control • States and search engines • Goal: to define an abstract representation of problems states that supports the general search algorithm and can be easily specialized through the mechanism of class inheritance

  7. Abstracting Problem States

  8. Abstracting Problem States • Abstract class

  9. Abstracting Problem States • Interface

  10. Abstracting Problem States • Java’s generic • Collection-Type<Element-Type>

  11. Traversing the Problem Space • Implementation of search itself • Define the list of states and the mechanisms for moving through them in search

  12. Putting the Framework to Use • See the code in Eclipse

More Related