Todd Neller 1 Adrian Fisher 2 Munyaradzi Choga 1 Samir Lalvani 1 Kyle McCarty 1 1 Gettysburg College 2 Adrian Fisher Design Ltd.

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

Cooperating Intelligent Systems
Informed search algorithms
Informed Search Algorithms
Local optimization technique G.Anuradha. Introduction The evaluation function defines a quality measure score landscape/response surface/fitness landscape.
Informed search algorithms
A* Search. 2 Tree search algorithms Basic idea: Exploration of state space by generating successors of already-explored states (a.k.a.~expanding states).
Problem Solving: Informed Search Algorithms Edmondo Trentin, DIISM.
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.
BackTracking Algorithms
State Space 3 Chapter 4 Heuristic Search. Three Algorithms Backtrack Depth First Breadth First All work if we have well-defined: Goal state Start state.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
Solving Problem by Searching
CSE 380 – Computer Game Programming Pathfinding AI
Problem Solving and Search in AI Part I Search and Intelligence Search is one of the most powerful approaches to problem solving in AI Search is a universal.
Backtracking COP Backtracking  Backtracking is a technique used to solve problems with a large search space, by systematically trying and eliminating.
Todd W. Neller Gettysburg College.  Specification: grid size, start state (square), goal state, jump numbers for each non- goal state.  Jump number:
Artificial Intelligence
Artificial Intelligence
Optimization via Search CPSC 315 – Programming Studio Spring 2009 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
Cooperating Intelligent Systems Informed search Chapter 4, AIMA.
CS 460 Spring 2011 Lecture 3 Heuristic Search / Local Search.
Cooperating Intelligent Systems Informed search Chapter 4, AIMA 2 nd ed Chapter 3, AIMA 3 rd ed.
Randomized Motion Planning for Car-like Robots with C-PRM Guang Song, Nancy M. Amato Department of Computer Science Texas A&M University College Station,
CS 326A: Motion Planning Basic Motion Planning for a Point Robot.
Cooperating Intelligent Systems Informed search Chapter 4, AIMA 2 nd ed Chapter 3, AIMA 3 rd ed.
HEURISTIC SEARCH. Luger: Artificial Intelligence, 5 th edition. © Pearson Education Limited, 2005 Portion of the state space for tic-tac-toe.
Solving problems by searching
Routing 2 Outline –Maze Routing –Line Probe Routing –Channel Routing Goal –Understand maze routing –Understand line probe routing.
Search Introduction to Artificial Intelligence COS302
Minimum Spanning Tree in Graph - Week Problem: Laying Telephone Wire Central office.
Brute Force Search Depth-first or Breadth-first search
A Randomized Approach to Robot Path Planning Based on Lazy Evaluation Robert Bohlin, Lydia E. Kavraki (2001) Presented by: Robbie Paolini.
CS261 Data Structures DFS and BFS – Edge List Representation.
Informed search algorithms
Self-Organizing Agents for Grid Load Balancing Junwei Cao Fifth IEEE/ACM International Workshop on Grid Computing (GRID'04)
WAES 3308 Numerical Methods for AI
DATA MINING LECTURE 13 Absorbing Random walks Coverage.
HISTORY The problem was originally proposed in 1848 by the chess player Max Bezzel, and over the years, many mathematicians, including Gauss have worked.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Z-Town Technical Details Ben Trivett, Drew Switzer, Cameron Jett, Ryan Southard Department of Computer Science and Engineering The Ohio State University.
Informed search algorithms
1 Shanghai Jiao Tong University Informed Search and Exploration.
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
Informed searching. Informed search Blind search algorithms do not consider any information about the states and the goals Often there is extra knowledge.
G5BAIM Artificial Intelligence Methods
A General Introduction to Artificial Intelligence.
Feng Zhiyong Tianjin University Fall  Best-first search  Greedy best-first search  A * search  Heuristics  Local search algorithms  Hill-climbing.
Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most desirable unexpanded node Implementation:
Every chess master was once a beginner. Irving Chernev
Informed Search II CIS 391 Fall CIS Intro to AI 2 Outline PART I  Informed = use problem-specific knowledge  Best-first search and its variants.
Heuristic Functions. A Heuristic is a function that, when applied to a state, returns a number that is an estimate of the merit of the state, with respect.
A* optimality proof, cycle checking CPSC 322 – Search 5 Textbook § 3.6 and January 21, 2011 Taught by Mike Chiang.
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Heuristic Functions.
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 5 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
Some counting questions with the Rules of Chess. Chessboard and Chess pieces The game of chess is played on an 8-by-8 grid of alternately colored squares.
Lecture 3: Uninformed Search
Informed Search Methods
Sequential Placement Optimization Games: Poker Squares, Word Squares, and Take It Easy! Todd W. Neller Abstract: In this talk, we teach how to play “Poker.
Introduction to Artificial Intelligence
Artificial Intelligence Problem solving by searching CSC 361
The Birds of a Feather Research Challenge
Problem Solving and Searching
Unit 4: Dynamic Programming
Technical Implementations
Problem Solving and Searching
Combinatorial Optimization Problems in Self-Assembly (Given a shape, output an “efficient” tile-system for assembling it)
Basic Search Methods How to solve the control problem in production-rule systems? Basic techniques to find paths through state- nets. For the moment: -
Presentation transcript:

Todd Neller 1 Adrian Fisher 2 Munyaradzi Choga 1 Samir Lalvani 1 Kyle McCarty 1 1 Gettysburg College 2 Adrian Fisher Design Ltd.

 Specification: grid size, start state (square), goal state, jump numbers for each non- goal state.  Jump number: Move exactly that many squares up, down, left, right. (Not diagonally.)  Objectives: ◦ Find a path from start to goal. ◦ Find the shortest of these paths.

 Sam Loyd’s 1898 “Back from the Klondike” ◦ Queen Jumping Maze ◦ Created to defeat Euler’s backtracing method  1990: Robert Abbott “Jumping Jim”  1991: Adrian Fisher Human-size RJM  1997: Robert Abbott “Number Maze”

 The number of possible 5  5 rook jumping mazes configurations with a center goal: 4 16  3 8 > 2.8  (a lot)  The number of possible n  n mazes is bounded above by (n-1) n 2.  The number of good puzzle configurations is considerably less (many needles in a very large haystack).  We can’t generate and test all configurations.  We can search for a good one.

 1) We need a way to rate the maze relative (un)desirability ◦ e.g. penalize if goal not reachable from a state  2) we need a method for looking around: ◦ Start with a random maze configuration ◦ Change a random position to a random different jump ◦ Accept all improvements, reject changes for the worse with high probability

 The prime design challenge is to define a good energy function, scoring a maze’s undesirability.  What are desirable/undesirable characteristics? ◦ Goal reachability, reachable states, black holes, white holes, start/goal locations, shortest solution uniqueness, minimum solution path length, forward/backward decisions, initial forced moves, same jump clusters

 We want to have a solution, and that solution should be uniquely shortest.  Strongly penalize mazes with no solution.  Let |S| be the number of states.  Score: If there is no unique shortest solution, add |S| 3 to the undesirability score.

 Black hole: Group of reachable states that are non-reaching, i.e. can reach from initial state, but can’t reach goal (“forward dead end”)  White hole: Group of unreachable states that are reaching, i.e. can’t reach from initial state, but can reach goal (“backward dead end”)  We penalize black holes, but don’t penalize white holes. ◦ Black holes force a restart, encouraging disengagement. ◦ White holes increase the difficulty of visual backtracing.

 We want to have all reachable states to have a path to the goal. (No black holes.)  Thus, unreaching states must also be unreachable  wasted maze space.  Score: Add |S| 2 per unreaching state, i.e. state with no path to goal.

 Initial forced moves worsen the maze design.  Let m be the number of initial forced moves.  Score: Add m 2.  Non-corner initial states allow initial forced moves. ◦ Restrict initial state to upper-left corner. ◦ Allow goal state in any other position for variety.

 We prefer decisions over forced moves, working forward or working backward  d f, d b – number of forward, backward decisions along optimal solution path, respectively  Score: Subtract min(d f, d b ).

 A same jump cluster is a group of states with the same jump number that are all reachable from each other:  For each same jump cluster J, let |J| be the size. ◦ Score: Add (|J| - 1) 2.

 Free on Apple iStore  Twofold cognitive challenge ◦ Perception of graph topology ◦ Memory of past moves  Hint feature: highlight visited states  Notes: ◦ 5  5 challenging for average user ◦ Checkerboard, colors aid visually ◦ 10,000 cached mazes for speed  Rook Jumping Maze of the Day: ◦

 Many variations are possible: ◦ Use different regular tilings, e.g. triangular or hexagonal. ◦ Topological constraints may be added (e.g. impassable walls/tiles) or removed (e.g. toroidal wrap-around). ◦ Movement constraints may be varied as well.  Add diagonal moves  Queen Jumping Maze  Abbott's "no-U-turn" rule increases state complexity

 Stochastic local search is a simple, powerful algorithm for finding good configurations in a vast space of configurations, if: ◦ One can identify a good “local” step, and ◦ One can characterize relative (un)desirability via an energy function.  We’ve presented a number of features useful for defining a good RJM design energy function.  Everything you’d ever want to know about RJMs: ◦  Questions?