Faster than Weighted A*: An Optimistic Approach to Bounded Suboptimal Search

Size: px
Start display at page:

Download "Faster than Weighted A*: An Optimistic Approach to Bounded Suboptimal Search"

Transcription

1 Faster than Weighted A*: An Optimistic Approach to Bounded Suboptimal Search Jordan Thayer and Wheeler Ruml {jtd7, ruml} at cs.unh.edu Jordan Thayer (UNH) Optimistic Search 1 / 45

2 Motivation Motivation Finding optimal solutions is prohibitively expensive. 200,000 Grid Pathfinding A* Grid Pathfinding A* 1.6 Nodes generated 100,000 Solution Cost (relative to A*) , ,000 Problem Size Problem Size Jordan Thayer (UNH) Optimistic Search 2 / 45

3 Motivation Motivation Finding optimal solutions is prohibitively expensive. Greedy solutions can be arbitrarily bad. 200,000 Grid Pathfinding A* Four-way Grid Pathfinding (Unit cost) A* Greedy Greedy 1.6 Nodes generated 100,000 Solution Cost (relative to A*) Problem Size 800 1, Problem Size 800 1,000 Jordan Thayer (UNH) Optimistic Search 3 / 45

4 Motivation Motivation Finding optimal solutions is prohibitively expensive. Greedy solutions can be arbitrarily bad. Weighted A* bounds suboptimality. 200,000 Grid Pathfinding A* wa* Grid Pathfinding A* wa* Greedy Greedy 1.6 Nodes generated 100,000 Solution Cost (relative to A*) , ,000 Problem Size Problem Size Jordan Thayer (UNH) Optimistic Search 4 / 45

5 Motivation Motivation Finding optimal solutions is prohibitively expensive. Greedy solutions can be arbitrarily bad. Weighted A* bounds suboptimality. Optimistic Search: faster search within the same bound. 200,000 Grid Pathfinding A* wa* Optimistic Greedy Grid Pathfinding A* wa* Optimistic Greedy 1.6 Nodes generated 100,000 Solution Cost (relative to A*) Problem Size 800 1, Problem Size 800 1,000 Jordan Thayer (UNH) Optimistic Search 5 / 45

6 Predecessors Basic Idea Jordan Thayer (UNH) Optimistic Search 6 / 45

7 Talk Outline Predecessors Basic Idea Run weighted A with a weight higher than the bound. Expand additional nodes to prove solution quality. The Greedy Search Phase The Cleanup Phase Jordan Thayer (UNH) Optimistic Search 7 / 45

8 Previous Algorithms: A Predecessors Basic Idea A best first search expanding nodes in f order. f(n) = g(n) + h(n) If h(n) is admissible, returns optimal solution. Jordan Thayer (UNH) Optimistic Search 8 / 45

9 Previous Algorithms: Weighted A Predecessors Basic Idea A best first search expanding nodes in f order. f (n) = g(n) + w h(n) Solution quality bounded by w for admissible h(n). Jordan Thayer (UNH) Optimistic Search 9 / 45

10 Optimistic Search: The Basic Idea Predecessors Basic Idea 1. Run weighted A with a high weight. 2. Expand node with lowest f value after a solution is found. Continue until w f min > f(sol) This clean up guarantees solution quality. Jordan Thayer (UNH) Optimistic Search 10 / 45

11 Optimistic Search: The Basic Idea Predecessors Basic Idea 1. Run weighted A with a high weight. 2. Expand node with lowest f value after a solution is found. Continue until w f min > f(sol) This clean up guarantees solution quality. Jordan Thayer (UNH) Optimistic Search 11 / 45

12 Optimistic Search: The Basic Idea Predecessors Basic Idea 1. Run weighted A with a high weight. 2. Expand node with lowest f value after a solution is found. Continue until w f min > f(sol) This clean up guarantees solution quality. Jordan Thayer (UNH) Optimistic Search 12 / 45

13 Optimistic Search: The Basic Idea Predecessors Basic Idea 1. Run weighted A with a high weight. 2. Expand node with lowest f value after a solution is found. Continue until w f min > f(sol) This clean up guarantees solution quality. Jordan Thayer (UNH) Optimistic Search 13 / 45

14 Weighted A Jordan Thayer (UNH) Optimistic Search 14 / 45

15 Talk Outline Weighted A The Greedy Search Phase Weighted A becomes faster as the bound grows. Weighted A is often better than the bound. The Cleanup Phase Jordan Thayer (UNH) Optimistic Search 15 / 45

16 Large Bounds, Faster Solution wa returns solutions faster as the bound increases. Weighted A Pearl and Kim Hard Node Generations Relative to A* wa* Sub-optimality bound 1.2 Jordan Thayer (UNH) Optimistic Search 16 / 45

17 Weighted A is often better than the bound wa returns solutions better than the bound. Weighted A 3 Four-way Grid Pathfinding (Unit cost) y=x wa* Solution Cost (relative to A*) Sub-optimality Bound 3 Jordan Thayer (UNH) Optimistic Search 17 / 45

18 w-admissibility Jordan Thayer (UNH) Optimistic Search 18 / 45

19 Talk Outline w-admissibility The Greedy Search Phase The Cleanup Phase Expand additional nodes in f order. Quit when the solution is provably within the bound. Jordan Thayer (UNH) Optimistic Search 19 / 45

20 Proving w-admissibility w-admissibility p is the deepest node on an optimal path to opt. f min is the node with the smallest f value. Jordan Thayer (UNH) Optimistic Search 20 / 45

21 Proving w-admissibility w-admissibility p is the deepest node on an optimal path to opt. f min is the node with the smallest f value. f(f min ) f(p) f(p) f(opt) f min provides a lower bound on solution cost. Determine f min by priority queue sorted on f Jordan Thayer (UNH) Optimistic Search 20 / 45

22 Proving w-admissibility w-admissibility p is the deepest node on an optimal path to opt. f min is the node with the smallest f value. f(f min ) f(p) f(p) f(opt) f min provides a lower bound on solution cost. Determine f min by priority queue sorted on f Optimistic Search: Run a greedy search Expand f min until w f min f(sol) Jordan Thayer (UNH) Optimistic Search 20 / 45

23 Proving w-admissibility w-admissibility p is the deepest node on an optimal path to opt. f min is the node with the smallest f value. f(f min ) f(p) f(p) f(opt) f min provides a lower bound on solution cost. Determine f min by priority queue sorted on f Optimistic Search: Run a greedy search Expand f min until w f min f(sol) Jordan Thayer (UNH) Optimistic Search 21 / 45

24 Performance Jordan Thayer (UNH) Optimistic Search 22 / 45

25 Talk Outline Performance The Greedy Search Guaranteeing solution quality Results in several domains. Jordan Thayer (UNH) Optimistic Search 23 / 45

26 Performance Sliding Tile Puzzles Korf s puzzle instances (add date) Traveling Salesman Unit Square Pearl and Kim Hard (add date) Grid world path finding Four-way and Eight-way Movement Unit and Life Cost Models 25%, 30%, 35%, 40%, 45% obstacles Temporal Planning Blocksworld, Logistics, Rover, Satellite, Zenotravel See paper for additional plots. Jordan Thayer (UNH) Optimistic Search 24 / 45

27 Performance of Optimistic Search Korf s 15 Puzzles: h = Manhattan Distance Performance Node Generations Relative to IDA* wa* Optimistic Sub-optimality bound Jordan Thayer (UNH) Optimistic Search 25 / 45

28 Performance of Optimistic Search TSP: Pearl and Kim Hard Performance Node Generations Relative to A* wa* Optimistic Sub-optimality bound 1.2 Jordan Thayer (UNH) Optimistic Search 26 / 45

29 Performance of Optimistic Search Performance Nodes generated (relative to A*) Four-way Grid Pathfinding (Unit cost) wa* Optimistic Sub-optimality Bound 3 Jordan Thayer (UNH) Optimistic Search 27 / 45

30 Performance of Optimistic Search logistics (problem 3) Performance Nodes generated (relative to A*) wa* Optimistic Search Sub-optimality Bound 3 Jordan Thayer (UNH) Optimistic Search 28 / 45

31 Expansion Policy BAwA Jordan Thayer (UNH) Optimistic Search 29 / 45

32 Talk Outline Expansion Policy BAwA The Greedy Search Guaranteeing solution quality Strict vs. Loose Expansion Policy Bounded Anytime Weighted A Jordan Thayer (UNH) Optimistic Search 30 / 45

33 Expansion Policy Expansion Policy BAwA Strict Expansion Order: Algorithms like wa, A ǫ, Dynamically Weighted A Any expanded node can be shown to be within the bound at the time of their expansion Quality bound comes from this Loose Expansion Order: Algorithms like Optimistic Search No restriction on the nodes expanded initially. Quality bound requires node expansion beyond the initial solution. Jordan Thayer (UNH) Optimistic Search 31 / 45

34 Bounded Anytime Weighted A Anytime Heuristic Search: Running weighted A with a high weight Continue node expansions after a solution is found Expansion Policy BAwA Jordan Thayer (UNH) Optimistic Search 32 / 45

35 Bounded Anytime Weighted A Expansion Policy BAwA Anytime Heuristic Search: Running weighted A with a high weight Continue node expansions after a solution is found Bounded Anytime Weighted A : Running weighted A with a high weight Continue node expansions after a solution is found Add a second priority queue allows us to converge on a bound instead of on optimal. Jordan Thayer (UNH) Optimistic Search 32 / 45

36 Optimistic Search expansions 1. Run weighted A with a high weight. 2. Expand node with lowest f value after a solution is found. Continue until w f min > f(sol) This clean up guarantees solution quality. Expansion Policy BAwA Jordan Thayer (UNH) Optimistic Search 33 / 45

37 Bounded Anytime Weighted A Expansions 1. Run weighted A with a high weight. 2. Expand node with lowest f value after a solution is found. Continue until w f min > f(sol) This clean up guarantees solution quality. Expansion Policy BAwA Jordan Thayer (UNH) Optimistic Search 34 / 45

38 Bounded Anytime Weighted A* Korf s 15 Puzzles Expansion Policy BAwA Node Generations Relative to IDA* BAwA* wa* Optimistic Sub-optimality bound Jordan Thayer (UNH) Optimistic Search 35 / 45

39 Bounded Anytime Weighted A* Pearl and Kim Hard Expansion Policy BAwA Node Generations Relative to A* BAwA* wa* Optimistic Sub-optimality bound 1.2 Jordan Thayer (UNH) Optimistic Search 36 / 45

40 Advertising Optimistic Search: Simple to implement. Performance is predictable. Current results are good, tuning could help. Optimal greediness is still an open question. Consistently better than Weighted A If you currently use wa, you should use Optimistic Search. Jordan Thayer (UNH) Optimistic Search 37 / 45

41 The University of New Hampshire Advertising Tell your students to apply to grad school in CS at UNH! friendly faculty funding individual attention beautiful campus low cost of living easy access to Boston, White Mountains strong in AI, infoviz, networking, systems, bioinformatics Jordan Thayer (UNH) Optimistic Search 38 / 45

42 Additional Slides Loose Bounds Duplicates Pseudo Code Additional Slides Jordan Thayer (UNH) Optimistic Search 39 / 45

43 Weighted A is often better than the bound wa returns solutions better than the bound. 3 Four-way Grid Pathfinding (Unit cost) y=x wa* Additional Slides Loose Bounds Duplicates Pseudo Code Solution Cost (relative to A*) Sub-optimality Bound 3 Jordan Thayer (UNH) Optimistic Search 40 / 45

44 Weighted A Respects a Bound f(n) = g(n) + h(n) f (n) = g(n) + w h(n) Additional Slides Loose Bounds Duplicates Pseudo Code g(sol) f (sol) f (p) g(p) + w h(p) w (g(p) + h(p)) w f(p) w f(opt) w g(opt) Therefore, g(sol) w g(opt) Jordan Thayer (UNH) Optimistic Search 41 / 45

45 Weighted A Respects the Bound and Then Some f(n) = g(n) + h(n) f (n) = g(n) + w h(n) Additional Slides Loose Bounds Duplicates Pseudo Code g(sol) f (sol) f (p) g(p) + w h(p) w (g(p) + h(p)) w f(p) w f(opt) w g(opt) g(p) + w h(p) w g(p) + w h(p) Jordan Thayer (UNH) Optimistic Search 42 / 45

46 Duplicate Dropping can be Important 0.9 Four-way Grid Pathfinding (Unit cost) wa* wa* dd Additional Slides Loose Bounds Duplicates Pseudo Code Nodes generated (relative to A*) Sub-optimality Bound 3 Jordan Thayer (UNH) Optimistic Search 43 / 45

47 Sometimes it isn t Korf s 15 puzzles Additional Slides Loose Bounds Duplicates Pseudo Code Node Generations Relative to IDA* wa* dd wa* Sub-optimality bound Jordan Thayer (UNH) Optimistic Search 44 / 45

48 Sometimes it isn t Duplicates can be delayed during the greedy search phase. Korf s 15 puzzles Additional Slides Loose Bounds Duplicates Pseudo Code Node Generations Relative to IDA* wa* dd wa* Sub-optimality bound Jordan Thayer (UNH) Optimistic Search 44 / 45

49 Pseudo Code Additional Slides Loose Bounds Duplicates Pseudo Code Optimistic Search(initial, bound) 1. open f {initial} 2. open f {initial} 3. incumbent 4. repeat until bound f(first on open f ) f(incumbent): 5. if f(first on open f) < f(incumbent) then 6. n remove first on open f 7. remove n from open f 8. else n remove first on open f 9. remove n from open f 10. add n to closed 11. if n is a goal then 12. incumbent n 13. else for each child c of n 14. if c is duplicated in open f then 15. if c is better than the duplicate then 16. replace copies in open f and open f 17. else if c is duplicated in closed then 18. if c is better than the duplicate then 19. add c to open f and open f 20. else add c to open f and open f Jordan Thayer (UNH) Optimistic Search 45 / 45

Worst-Case Solution Quality Analysis When Not Re-Expanding Nodes in Best-First Search

Worst-Case Solution Quality Analysis When Not Re-Expanding Nodes in Best-First Search Worst-Case Solution Quality Analysis When Not Re-Expanding Nodes in Best-First Search Richard Valenzano University of Alberta valenzan@ualberta.ca Nathan R. Sturtevant University of Denver sturtevant@cs.du.edu

More information

When does Weighted A* Fail?

When does Weighted A* Fail? When does Weighted A* Fail? Christopher Wilt and Wheeler Ruml Department of Computer Science University of New Hampshire Durham, NH 3824 USA {wilt, ruml} at cs.unh.edu Abstract Weighted A* is the most

More information

AI Programming CS S-06 Heuristic Search

AI Programming CS S-06 Heuristic Search AI Programming CS662-2013S-06 Heuristic Search David Galles Department of Computer Science University of San Francisco 06-0: Overview Heuristic Search - exploiting knowledge about the problem Heuristic

More information

Informed Search. Chap. 4. Breadth First. O(Min(N,B L )) BFS. Search. have same cost BIBFS. Bi- Direction. O(Min(N,2B L/2 )) BFS. have same cost UCS

Informed Search. Chap. 4. Breadth First. O(Min(N,B L )) BFS. Search. have same cost BIBFS. Bi- Direction. O(Min(N,2B L/2 )) BFS. have same cost UCS Informed Search Chap. 4 Material in part from http://www.cs.cmu.edu/~awm/tutorials Uninformed Search Complexity N = Total number of states B = Average number of successors (branching factor) L = Length

More information

Informed Search. Day 3 of Search. Chap. 4, Russel & Norvig. Material in part from

Informed Search. Day 3 of Search. Chap. 4, Russel & Norvig. Material in part from Informed Search Day 3 of Search Chap. 4, Russel & Norvig Material in part from http://www.cs.cmu.edu/~awm/tutorials Uninformed Search Complexity N = Total number of states B = Average number of successors

More information

Game Engineering CS F-12 Artificial Intelligence

Game Engineering CS F-12 Artificial Intelligence Game Engineering CS420-2011F-12 Artificial Intelligence David Galles Department of Computer Science University of San Francisco 12-0: Artifical Intelligence AI in games is a huge field Creating a believable

More information

CMU Lecture 4: Informed Search. Teacher: Gianni A. Di Caro

CMU Lecture 4: Informed Search. Teacher: Gianni A. Di Caro CMU 15-781 Lecture 4: Informed Search Teacher: Gianni A. Di Caro UNINFORMED VS. INFORMED Uninformed Can only generate successors and distinguish goals from non-goals Informed Strategies that can distinguish

More information

CS360 Homework 12 Solution

CS360 Homework 12 Solution CS360 Homework 12 Solution Constraint Satisfaction 1) Consider the following constraint satisfaction problem with variables x, y and z, each with domain {1, 2, 3}, and constraints C 1 and C 2, defined

More information

Tree/Graph Search. q IDDFS-? B C. Search CSL452 - ARTIFICIAL INTELLIGENCE 2

Tree/Graph Search. q IDDFS-? B C. Search CSL452 - ARTIFICIAL INTELLIGENCE 2 Informed Search Tree/Graph Search q IDDFS-? A B C D E F G Search CSL452 - ARTIFICIAL INTELLIGENCE 2 Informed (Heuristic) Search q Heuristic problem specific knowledge o finds solutions more efficiently

More information

Graph Search Howie Choset

Graph Search Howie Choset Graph Search Howie Choset 16-11 Outline Overview of Search Techniques A* Search Graphs Collection of Edges and Nodes (Vertices) A tree Grids Stacks and Queues Stack: First in, Last out (FILO) Queue: First

More information

CS 4100 // artificial intelligence. Recap/midterm review!

CS 4100 // artificial intelligence. Recap/midterm review! CS 4100 // artificial intelligence instructor: byron wallace Recap/midterm review! Attribution: many of these slides are modified versions of those distributed with the UC Berkeley CS188 materials Thanks

More information

(tree searching technique) (Boolean formulas) satisfying assignment: (X 1, X 2 )

(tree searching technique) (Boolean formulas) satisfying assignment: (X 1, X 2 ) Algorithms Chapter 5: The Tree Searching Strategy - Examples 1 / 11 Chapter 5: The Tree Searching Strategy 1. Ex 5.1Determine the satisfiability of the following Boolean formulas by depth-first search

More information

6.01: Introduction to EECS I. Optimizing a Search

6.01: Introduction to EECS I. Optimizing a Search 6.0: Introduction to CS I Optimizing a Search May 3, 0 Nano-Quiz Makeups Wednesday, May 4, 6-pm, 34-50. everyone can makeup/retake NQ everyone can makeup/retake two additional NQs you can makeup/retake

More information

A* Search. 1 Dijkstra Shortest Path

A* Search. 1 Dijkstra Shortest Path A* Search Consider the eight puzzle. There are eight tiles numbered 1 through 8 on a 3 by three grid with nine locations so that one location is left empty. We can move by sliding a tile adjacent to the

More information

A* with Lookahead Re-evaluated

A* with Lookahead Re-evaluated A* with Lookahead Re-evaluated Zhaoxing Bu Department of Computing Science University of Alberta Edmonton, AB Canada T6G 2E8 zhaoxing@ualberta.ca Roni Stern and Ariel Felner Information Systems Engineering

More information

I may not have gone where I intended to go, but I think I have ended up where I needed to be. Douglas Adams

I may not have gone where I intended to go, but I think I have ended up where I needed to be. Douglas Adams Disclaimer: I use these notes as a guide rather than a comprehensive coverage of the topic. They are neither a substitute for attending the lectures nor for reading the assigned material. I may not have

More information

Accuracy of Admissible Heuristic Functions in Selected Planning Domains

Accuracy of Admissible Heuristic Functions in Selected Planning Domains Accuracy of Admissible Heuristic Functions in Selected Planning Domains Malte Helmert Robert Mattmüller Albert-Ludwigs-Universität Freiburg, Germany AAAI 2008 Outline 1 Introduction 2 Analyses 3 Summary

More information

0 1 d 010. h 0111 i g 01100

0 1 d 010. h 0111 i g 01100 CMSC 5:Fall 07 Dave Mount Solutions to Homework : Greedy Algorithms Solution : The code tree is shown in Fig.. a 0000 c 0000 b 00 f 000 d 00 g 000 h 0 i 00 e Prob / / /8 /6 / Depth 5 Figure : Solution

More information

Problem-Solving via Search Lecture 3

Problem-Solving via Search Lecture 3 Lecture 3 What is a search problem? How do search algorithms work and how do we evaluate their performance? 1 Agenda An example task Problem formulation Infrastructure for search algorithms Complexity

More information

Predicting the Performance of IDA* with Conditional Distributions

Predicting the Performance of IDA* with Conditional Distributions Predicting the Performance of IDA* with Conditional Distributions Uzi Zahavi Computer Science Bar-Ilan University Ramat-Gan, Israel 92500 zahaviu@cs.biu.ac.il Ariel Felner Information Systems Engineering

More information

Dynamic Programming. Cormen et. al. IV 15

Dynamic Programming. Cormen et. al. IV 15 Dynamic Programming Cormen et. al. IV 5 Dynamic Programming Applications Areas. Bioinformatics. Control theory. Operations research. Some famous dynamic programming algorithms. Unix diff for comparing

More information

Final exam of ECE 457 Applied Artificial Intelligence for the Spring term 2007.

Final exam of ECE 457 Applied Artificial Intelligence for the Spring term 2007. Spring 2007 / Page 1 Final exam of ECE 457 Applied Artificial Intelligence for the Spring term 2007. Don t panic. Be sure to write your name and student ID number on every page of the exam. The only materials

More information

Dynamic Call Center Routing Policies Using Call Waiting and Agent Idle Times Online Supplement

Dynamic Call Center Routing Policies Using Call Waiting and Agent Idle Times Online Supplement Submitted to imanufacturing & Service Operations Management manuscript MSOM-11-370.R3 Dynamic Call Center Routing Policies Using Call Waiting and Agent Idle Times Online Supplement (Authors names blinded

More information

Discrete Event Simulation. Motive

Discrete Event Simulation. Motive Discrete Event Simulation These slides are created by Dr. Yih Huang of George Mason University. Students registered in Dr. Huang's courses at GMU can make a single machine-readable copy and print a single

More information

Bidirectional Search: Is It For Me? Nathan R. Sturtevant Associate Professor University of Denver

Bidirectional Search: Is It For Me? Nathan R. Sturtevant Associate Professor University of Denver Bidirectional Search: Is It For Me? Nathan R. Sturtevant (@nathansttt) Associate Professor University of Denver practice, the most common heuristic es in the runtime distribution (looked during search)

More information

Incremental Path Planning

Incremental Path Planning Incremental Path Planning Dynamic and Incremental A* Prof. Brian Williams (help from Ihsiang Shu) 6./6.8 Cognitive Robotics February 7 th, Outline Review: Optimal Path Planning in Partially Known Environments.

More information

The Greedy Method. Design and analysis of algorithms Cs The Greedy Method

The Greedy Method. Design and analysis of algorithms Cs The Greedy Method Design and analysis of algorithms Cs 3400 The Greedy Method 1 Outline and Reading The Greedy Method Technique Fractional Knapsack Problem Task Scheduling 2 The Greedy Method Technique The greedy method

More information

MARKOV DECISION PROCESSES (MDP) AND REINFORCEMENT LEARNING (RL) Versione originale delle slide fornita dal Prof. Francesco Lo Presti

MARKOV DECISION PROCESSES (MDP) AND REINFORCEMENT LEARNING (RL) Versione originale delle slide fornita dal Prof. Francesco Lo Presti 1 MARKOV DECISION PROCESSES (MDP) AND REINFORCEMENT LEARNING (RL) Versione originale delle slide fornita dal Prof. Francesco Lo Presti Historical background 2 Original motivation: animal learning Early

More information

Cost-Length Tradeoff Heuristics for Bounded-Cost Search

Cost-Length Tradeoff Heuristics for Bounded-Cost Search Cost-Length Tradeoff Heuristics for Bounded-Cost Search Sean Dobson University of Auckland seandobs@gmail.com Patrik Haslum Australian National University & CSIRO Data6 patrik.haslum@anu.edu.au Abstract

More information

Algorithm Design Strategies V

Algorithm Design Strategies V Algorithm Design Strategies V Joaquim Madeira Version 0.0 October 2016 U. Aveiro, October 2016 1 Overview The 0-1 Knapsack Problem Revisited The Fractional Knapsack Problem Greedy Algorithms Example Coin

More information

Principles of AI Planning

Principles of AI Planning Principles of 7. State-space search: relaxed Malte Helmert Albert-Ludwigs-Universität Freiburg November 18th, 2008 A simple heuristic for deterministic planning STRIPS (Fikes & Nilsson, 1971) used the

More information

Dynamic Call Center Routing Policies Using Call Waiting and Agent Idle Times Online Supplement

Dynamic Call Center Routing Policies Using Call Waiting and Agent Idle Times Online Supplement Dynamic Call Center Routing Policies Using Call Waiting and Agent Idle Times Online Supplement Wyean Chan DIRO, Université de Montréal, C.P. 6128, Succ. Centre-Ville, Montréal (Québec), H3C 3J7, CANADA,

More information

CS 730/830: Intro AI. 1 handout: slides. Wheeler Ruml (UNH) Lecture 17, CS / 16. Regression POP

CS 730/830: Intro AI. 1 handout: slides. Wheeler Ruml (UNH) Lecture 17, CS / 16. Regression POP CS 730/830: Intro AI 1 handout: slides Wheeler Ruml (UNH) Lecture 17, CS 730 1 / 16 Aristotle Break Wheeler Ruml (UNH) Lecture 17, CS 730 2 / 16 Aristotle s Means-ends Analysis Aristotle Break We deliberate

More information

CSE 549: Computational Biology. Computer Science for Biologists Biology

CSE 549: Computational Biology. Computer Science for Biologists Biology CSE 549: Computational Biology Computer Science for Biologists Biology What is Computer Science? http://people.cs.pitt.edu/~kirk/cs2110/computer_science_major.png What is Computer Science? Not actually

More information

CS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018

CS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018 CS 580: Algorithm Design and Analysis Jeremiah Blocki Purdue University Spring 2018 Chapter 9 PSPACE: A Class of Problems Beyond NP Slides by Kevin Wayne. Copyright @ 2005 Pearson-Addison Wesley. All rights

More information

Final exam of ECE 457 Applied Artificial Intelligence for the Fall term 2007.

Final exam of ECE 457 Applied Artificial Intelligence for the Fall term 2007. Fall 2007 / Page 1 Final exam of ECE 457 Applied Artificial Intelligence for the Fall term 2007. Don t panic. Be sure to write your name and student ID number on every page of the exam. The only materials

More information

Contents Lecture 4. Greedy graph algorithms Dijkstra s algorithm Prim s algorithm Kruskal s algorithm Union-find data structure with path compression

Contents Lecture 4. Greedy graph algorithms Dijkstra s algorithm Prim s algorithm Kruskal s algorithm Union-find data structure with path compression Contents Lecture 4 Greedy graph algorithms Dijkstra s algorithm Prim s algorithm Kruskal s algorithm Union-find data structure with path compression Jonas Skeppstedt (jonasskeppstedt.net) Lecture 4 2018

More information

Algorithms. Outline! Approximation Algorithms. The class APX. The intelligence behind the hardware. ! Based on

Algorithms. Outline! Approximation Algorithms. The class APX. The intelligence behind the hardware. ! Based on 6117CIT - Adv Topics in Computing Sci at Nathan 1 Algorithms The intelligence behind the hardware Outline! Approximation Algorithms The class APX! Some complexity classes, like PTAS and FPTAS! Illustration

More information

Scout and NegaScout. Tsan-sheng Hsu.

Scout and NegaScout. Tsan-sheng Hsu. Scout and NegaScout Tsan-sheng Hsu tshsu@iis.sinica.edu.tw http://www.iis.sinica.edu.tw/~tshsu 1 Abstract It looks like alpha-beta pruning is the best we can do for an exact generic searching procedure.

More information

Optimisation and Operations Research

Optimisation and Operations Research Optimisation and Operations Research Lecture 15: The Greedy Heuristic Matthew Roughan http://www.maths.adelaide.edu.au/matthew.roughan/ Lecture_notes/OORII/ School of

More information

Fast SSP Solvers Using Short-Sighted Labeling

Fast SSP Solvers Using Short-Sighted Labeling Luis Pineda, Kyle H. Wray and Shlomo Zilberstein College of Information and Computer Sciences, University of Massachusetts, Amherst, USA July 9th Introduction Motivation SSPs are a highly-expressive model

More information

Local Search & Optimization

Local Search & Optimization Local Search & Optimization CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 4 Some

More information

Algorithms and Complexity theory

Algorithms and Complexity theory Algorithms and Complexity theory Thibaut Barthelemy Some slides kindly provided by Fabien Tricoire University of Vienna WS 2014 Outline 1 Algorithms Overview How to write an algorithm 2 Complexity theory

More information

Chapter 4 Beyond Classical Search 4.1 Local search algorithms and optimization problems

Chapter 4 Beyond Classical Search 4.1 Local search algorithms and optimization problems Chapter 4 Beyond Classical Search 4.1 Local search algorithms and optimization problems CS4811 - Artificial Intelligence Nilufer Onder Department of Computer Science Michigan Technological University Outline

More information

Approximation Algorithms (Load Balancing)

Approximation Algorithms (Load Balancing) July 6, 204 Problem Definition : We are given a set of n jobs {J, J 2,..., J n }. Each job J i has a processing time t i 0. We are given m identical machines. Problem Definition : We are given a set of

More information

Mario A. Nascimento. Univ. of Alberta, Canada http: //

Mario A. Nascimento. Univ. of Alberta, Canada http: // DATA CACHING IN W Mario A. Nascimento Univ. of Alberta, Canada http: //www.cs.ualberta.ca/~mn With R. Alencar and A. Brayner. Work partially supported by NSERC and CBIE (Canada) and CAPES (Brazil) Outline

More information

1 Heuristics for the Traveling Salesman Problem

1 Heuristics for the Traveling Salesman Problem Praktikum Algorithmen-Entwurf (Teil 9) 09.12.2013 1 1 Heuristics for the Traveling Salesman Problem We consider the following problem. We want to visit all the nodes of a graph as fast as possible, visiting

More information

A 2-Approximation Algorithm for Scheduling Parallel and Time-Sensitive Applications to Maximize Total Accrued Utility Value

A 2-Approximation Algorithm for Scheduling Parallel and Time-Sensitive Applications to Maximize Total Accrued Utility Value A -Approximation Algorithm for Scheduling Parallel and Time-Sensitive Applications to Maximize Total Accrued Utility Value Shuhui Li, Miao Song, Peng-Jun Wan, Shangping Ren Department of Engineering Mechanics,

More information

Homework 2: MDPs and Search

Homework 2: MDPs and Search Graduate Artificial Intelligence 15-780 Homework 2: MDPs and Search Out on February 15 Due on February 29 Problem 1: MDPs [Felipe, 20pts] Figure 1: MDP for Problem 1. States are represented by circles

More information

Last time: Summary. Last time: Summary

Last time: Summary. Last time: Summary 1 Last time: Summary Definition of AI? Turing Test? Intelligent Agents: Anything that can be viewed as perceiving its environment through sensors and acting upon that environment through its effectors

More information

Algorithms. Grad Refresher Course 2011 University of British Columbia. Ron Maharik

Algorithms. Grad Refresher Course 2011 University of British Columbia. Ron Maharik Algorithms Grad Refresher Course 2011 University of British Columbia Ron Maharik maharik@cs.ubc.ca About this talk For those incoming grad students who Do not have a CS background, or Have a CS background

More information

Query Processing in Spatial Network Databases

Query Processing in Spatial Network Databases Temporal and Spatial Data Management Fall 0 Query Processing in Spatial Network Databases SL06 Spatial network databases Shortest Path Incremental Euclidean Restriction Incremental Network Expansion Spatial

More information

Unit 1A: Computational Complexity

Unit 1A: Computational Complexity Unit 1A: Computational Complexity Course contents: Computational complexity NP-completeness Algorithmic Paradigms Readings Chapters 3, 4, and 5 Unit 1A 1 O: Upper Bounding Function Def: f(n)= O(g(n)) if

More information

CSE 573. Markov Decision Processes: Heuristic Search & Real-Time Dynamic Programming. Slides adapted from Andrey Kolobov and Mausam

CSE 573. Markov Decision Processes: Heuristic Search & Real-Time Dynamic Programming. Slides adapted from Andrey Kolobov and Mausam CSE 573 Markov Decision Processes: Heuristic Search & Real-Time Dynamic Programming Slides adapted from Andrey Kolobov and Mausam 1 Stochastic Shortest-Path MDPs: Motivation Assume the agent pays cost

More information

Robot Autonomy - Final Report. Spring

Robot Autonomy - Final Report. Spring Robot Autonomy - Final Report Spring 16 Information Theory Based Adaptive Exploration for Geological Classification Team: Aishanou Osha Rait, Shivam Gautam, Tushar Agrawal, and Bishwamoy Sinha Roy Mentors:

More information

CITS4211 Mid-semester test 2011

CITS4211 Mid-semester test 2011 CITS4211 Mid-semester test 2011 Fifty minutes, answer all four questions, total marks 60 Question 1. (12 marks) Briefly describe the principles, operation, and performance issues of iterative deepening.

More information

8.3 Hamiltonian Paths and Circuits

8.3 Hamiltonian Paths and Circuits 8.3 Hamiltonian Paths and Circuits 8.3 Hamiltonian Paths and Circuits A Hamiltonian path is a path that contains each vertex exactly once A Hamiltonian circuit is a Hamiltonian path that is also a circuit

More information

Completeness and Admissibility for General Heuristic Search Algorithms A Theoretical Study: Basic Concepts and Proofs

Completeness and Admissibility for General Heuristic Search Algorithms A Theoretical Study: Basic Concepts and Proofs Journal of Heuristics, 5, 353 376 (1999) c 1999 Kluwer Academic Publishers, Boston. Manufactured in The Netherlands. Completeness and Admissibility for General Heuristic Search Algorithms A Theoretical

More information

Optimal Planning for Delete-free Tasks with Incremental LM-cut

Optimal Planning for Delete-free Tasks with Incremental LM-cut Theoretical Background Contributions Experiments Conclusion Optimal Planning for Delete-free Tasks with Incremental LM-cut Florian Pommerening and Malte Helmert Universität Basel Departement Informatik

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 6 Greedy Algorithms Interval Scheduling Interval Partitioning Scheduling to Minimize Lateness Sofya Raskhodnikova S. Raskhodnikova; based on slides by E. Demaine,

More information

Data Structures in Java

Data Structures in Java Data Structures in Java Lecture 21: Introduction to NP-Completeness 12/9/2015 Daniel Bauer Algorithms and Problem Solving Purpose of algorithms: find solutions to problems. Data Structures provide ways

More information

CS 188 Introduction to Fall 2007 Artificial Intelligence Midterm

CS 188 Introduction to Fall 2007 Artificial Intelligence Midterm NAME: SID#: Login: Sec: 1 CS 188 Introduction to Fall 2007 Artificial Intelligence Midterm You have 80 minutes. The exam is closed book, closed notes except a one-page crib sheet, basic calculators only.

More information

Markov Decision Processes Infinite Horizon Problems

Markov Decision Processes Infinite Horizon Problems Markov Decision Processes Infinite Horizon Problems Alan Fern * * Based in part on slides by Craig Boutilier and Daniel Weld 1 What is a solution to an MDP? MDP Planning Problem: Input: an MDP (S,A,R,T)

More information

Complexity, Undecidability and Tilings. Chaim Goodman-Strauss Univ Arkansas

Complexity, Undecidability and Tilings. Chaim Goodman-Strauss Univ Arkansas Complexity, Undecidability and Tilings Chaim Goodman-Strauss Univ Arkansas strauss@uark.edu Why are tiling puzzles difficult? Why are tiling puzzles difficult? (And how difficult are they anyway?) There

More information

On the influence of non-perfect random numbers on probabilistic algorithms

On the influence of non-perfect random numbers on probabilistic algorithms On the influence of non-perfect random numbers on probabilistic algorithms Markus Maucher Bioinformatics Group University of Ulm 01.07.09 Outline 1 Motivation and introduction 2 Theoretical results 3 Experimental

More information

On my honor I affirm that I have neither given nor received inappropriate aid in the completion of this exercise.

On my honor I affirm that I have neither given nor received inappropriate aid in the completion of this exercise. CS 2413 Data Structures EXAM 1 Fall 2017, Page 1 of 10 Student Name: Student ID # OU Academic Integrity Pledge On my honor I affirm that I have neither given nor received inappropriate aid in the completion

More information

CSE 549: Computational Biology. Computer Science for Biologists Biology

CSE 549: Computational Biology. Computer Science for Biologists Biology CSE 549: Computational Biology Computer Science for Biologists Biology What is Computer Science? http://people.cs.pitt.edu/~kirk/cs2110/computer_science_major.png What is Computer Science? Not actually

More information

NP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch]

NP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch] NP-Completeness Andreas Klappenecker [based on slides by Prof. Welch] 1 Prelude: Informal Discussion (Incidentally, we will never get very formal in this course) 2 Polynomial Time Algorithms Most of the

More information

Enumerate all possible assignments and take the An algorithm is a well-defined computational

Enumerate all possible assignments and take the An algorithm is a well-defined computational EMIS 8374 [Algorithm Design and Analysis] 1 EMIS 8374 [Algorithm Design and Analysis] 2 Designing and Evaluating Algorithms A (Bad) Algorithm for the Assignment Problem Enumerate all possible assignments

More information

Local and Stochastic Search

Local and Stochastic Search RN, Chapter 4.3 4.4; 7.6 Local and Stochastic Search Some material based on D Lin, B Selman 1 Search Overview Introduction to Search Blind Search Techniques Heuristic Search Techniques Constraint Satisfaction

More information

Heuristic Search Algorithms

Heuristic Search Algorithms CHAPTER 4 Heuristic Search Algorithms 59 4.1 HEURISTIC SEARCH AND SSP MDPS The methods we explored in the previous chapter have a serious practical drawback the amount of memory they require is proportional

More information

More Approximation Algorithms

More Approximation Algorithms CS 473: Algorithms, Spring 2018 More Approximation Algorithms Lecture 25 April 26, 2018 Most slides are courtesy Prof. Chekuri Ruta (UIUC) CS473 1 Spring 2018 1 / 28 Formal definition of approximation

More information

Math Models of OR: Branch-and-Bound

Math Models of OR: Branch-and-Bound Math Models of OR: Branch-and-Bound John E. Mitchell Department of Mathematical Sciences RPI, Troy, NY 12180 USA November 2018 Mitchell Branch-and-Bound 1 / 15 Branch-and-Bound Outline 1 Branch-and-Bound

More information

Deterministic planning

Deterministic planning Chapter 3 Deterministic planning The simplest planning problems involves finding a sequence of actions that lead from a given initial state to a goal state. Only deterministic actions are considered. Determinism

More information

ABHELSINKI UNIVERSITY OF TECHNOLOGY

ABHELSINKI UNIVERSITY OF TECHNOLOGY Approximation Algorithms Seminar 1 Set Cover, Steiner Tree and TSP Siert Wieringa siert.wieringa@tkk.fi Approximation Algorithms Seminar 1 1/27 Contents Approximation algorithms for: Set Cover Steiner

More information

Essentials of the A* Algorithm

Essentials of the A* Algorithm Essentials of the A* Algorithm Keith L. Downing Search problems are ubiquitous in Artificial Intelligence (AI), and they are often so complex that standard brute-force methods (i.e. those that try every

More information

CS 4407 Algorithms Lecture 2: Iterative and Divide and Conquer Algorithms

CS 4407 Algorithms Lecture 2: Iterative and Divide and Conquer Algorithms CS 4407 Algorithms Lecture 2: Iterative and Divide and Conquer Algorithms Prof. Gregory Provan Department of Computer Science University College Cork 1 Lecture Outline CS 4407, Algorithms Growth Functions

More information

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Asymptotic Analysis, recurrences Date: 9/7/17

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Asymptotic Analysis, recurrences Date: 9/7/17 601.433/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Asymptotic Analysis, recurrences Date: 9/7/17 2.1 Notes Homework 1 will be released today, and is due a week from today by the beginning

More information

Analyzing Tie-Breaking Strategies for the A Algorithm

Analyzing Tie-Breaking Strategies for the A Algorithm Analyzing Tie-reaking Strategies for the A Algorithm Augusto. orrêa, André G. Pereira 2 and Marcus Ritt 2 University of asel, Switzerland 2 Federal University of Rio Grande do Sul, razil {abcorrea, agpereira,

More information

Greedy. Outline CS141. Stefano Lonardi, UCR 1. Activity selection Fractional knapsack Huffman encoding Later:

Greedy. Outline CS141. Stefano Lonardi, UCR 1. Activity selection Fractional knapsack Huffman encoding Later: October 5, 017 Greedy Chapters 5 of Dasgupta et al. 1 Activity selection Fractional knapsack Huffman encoding Later: Outline Dijkstra (single source shortest path) Prim and Kruskal (minimum spanning tree)

More information

Multiple Choice Tries and Distributed Hash Tables

Multiple Choice Tries and Distributed Hash Tables Multiple Choice Tries and Distributed Hash Tables Luc Devroye and Gabor Lugosi and Gahyun Park and W. Szpankowski January 3, 2007 McGill University, Montreal, Canada U. Pompeu Fabra, Barcelona, Spain U.

More information

Polyhedral Approaches to Online Bipartite Matching

Polyhedral Approaches to Online Bipartite Matching Polyhedral Approaches to Online Bipartite Matching Alejandro Toriello joint with Alfredo Torrico, Shabbir Ahmed Stewart School of Industrial and Systems Engineering Georgia Institute of Technology Industrial

More information

Part III: Traveling salesman problems

Part III: Traveling salesman problems Transportation Logistics Part III: Traveling salesman problems c R.F. Hartl, S.N. Parragh 1/282 Motivation Motivation Why do we study the TSP? c R.F. Hartl, S.N. Parragh 2/282 Motivation Motivation Why

More information

IS 709/809: Computational Methods for IS Research. Math Review: Algorithm Analysis

IS 709/809: Computational Methods for IS Research. Math Review: Algorithm Analysis IS 709/809: Computational Methods for IS Research Math Review: Algorithm Analysis Nirmalya Roy Department of Information Systems University of Maryland Baltimore County www.umbc.edu Topics Proof techniques

More information

Branch-and-Bound. Leo Liberti. LIX, École Polytechnique, France. INF , Lecture p. 1

Branch-and-Bound. Leo Liberti. LIX, École Polytechnique, France. INF , Lecture p. 1 Branch-and-Bound Leo Liberti LIX, École Polytechnique, France INF431 2011, Lecture p. 1 Reminders INF431 2011, Lecture p. 2 Problems Decision problem: a question admitting a YES/NO answer Example HAMILTONIAN

More information

Low-ranksemidefiniteprogrammingforthe. MAX2SAT problem. Bosch Center for Artificial Intelligence

Low-ranksemidefiniteprogrammingforthe. MAX2SAT problem. Bosch Center for Artificial Intelligence Low-ranksemidefiniteprogrammingforthe MAX2SAT problem Po-Wei Wang J. Zico Kolter Machine Learning Department Carnegie Mellon University School of Computer Science, Carnegie Mellon University, and Bosch

More information

Algorithm runtime analysis and computational tractability

Algorithm runtime analysis and computational tractability Algorithm runtime analysis and computational tractability As soon as an Analytic Engine exists, it will necessarily guide the future course of the science. Whenever any result is sought by its aid, the

More information

Learning in State-Space Reinforcement Learning CIS 32

Learning in State-Space Reinforcement Learning CIS 32 Learning in State-Space Reinforcement Learning CIS 32 Functionalia Syllabus Updated: MIDTERM and REVIEW moved up one day. MIDTERM: Everything through Evolutionary Agents. HW 2 Out - DUE Sunday before the

More information

Single Machine Models

Single Machine Models Outline DM87 SCHEDULING, TIMETABLING AND ROUTING Lecture 8 Single Machine Models 1. Dispatching Rules 2. Single Machine Models Marco Chiarandini DM87 Scheduling, Timetabling and Routing 2 Outline Dispatching

More information

Analysis of Algorithms - Midterm (Solutions)

Analysis of Algorithms - Midterm (Solutions) Analysis of Algorithms - Midterm (Solutions) K Subramani LCSEE, West Virginia University, Morgantown, WV {ksmani@cseewvuedu} 1 Problems 1 Recurrences: Solve the following recurrences exactly or asymototically

More information

CS 730/730W/830: Intro AI

CS 730/730W/830: Intro AI CS 730/730W/830: Intro AI 1 handout: slides Wheeler Ruml (UNH) Lecture 20, CS 730 1 / 13 Summary k-nn Wheeler Ruml (UNH) Lecture 20, CS 730 2 / 13 Summary Summary k-nn supervised learning: induction, generalization

More information

CS Algorithms and Complexity

CS Algorithms and Complexity CS 50 - Algorithms and Complexity Linear Programming, the Simplex Method, and Hard Problems Sean Anderson 2/15/18 Portland State University Table of contents 1. The Simplex Method 2. The Graph Problem

More information

Priority queues implemented via heaps

Priority queues implemented via heaps Priority queues implemented via heaps Comp Sci 1575 Data s Outline 1 2 3 Outline 1 2 3 Priority queue: most important first Recall: queue is FIFO A normal queue data structure will not implement a priority

More information

Doctoral Course in Speech Recognition. May 2007 Kjell Elenius

Doctoral Course in Speech Recognition. May 2007 Kjell Elenius Doctoral Course in Speech Recognition May 2007 Kjell Elenius CHAPTER 12 BASIC SEARCH ALGORITHMS State-based search paradigm Triplet S, O, G S, set of initial states O, set of operators applied on a state

More information

A General Theory of Additive State Space Abstractions

A General Theory of Additive State Space Abstractions Journal of Artificial Intelligence Research 32 (2008) 631-662 Submitted 11/07; published 06/08 A General Theory of Additive State Space Abstractions Fan Yang Joseph Culberson Robert Holte Computing Science

More information

COSC 341: Lecture 25 Coping with NP-hardness (2)

COSC 341: Lecture 25 Coping with NP-hardness (2) 1 Introduction Figure 1: Famous cartoon by Garey and Johnson, 1979 We have seen the definition of a constant factor approximation algorithm. The following is something even better. 2 Approximation Schemes

More information

Timing-Aware Decoupling Capacitance Allocation in Power Distribution Networks

Timing-Aware Decoupling Capacitance Allocation in Power Distribution Networks Timing-Aware Decoupling Capacitance Allocation in Power Distribution Networks Sanjay Pant, David Blaauw Electrical Engineering and Computer Science University of Michigan 1/22 Power supply integrity issues

More information

Problem solving and search. Chapter 3. Chapter 3 1

Problem solving and search. Chapter 3. Chapter 3 1 Problem solving and search Chapter 3 Chapter 3 1 eminders ssignment 0 due 5pm today ssignment 1 posted, due 2/9 Section 105 will move to 9-10am starting next week Chapter 3 2 Problem-solving agents Problem

More information

Introduction to Fall 2008 Artificial Intelligence Final Exam

Introduction to Fall 2008 Artificial Intelligence Final Exam CS 188 Introduction to Fall 2008 Artificial Intelligence Final Exam INSTRUCTIONS You have 180 minutes. 100 points total. Don t panic! The exam is closed book, closed notes except a two-page crib sheet,

More information

CS 410/584, Algorithm Design & Analysis, Lecture Notes 4

CS 410/584, Algorithm Design & Analysis, Lecture Notes 4 CS 0/58,, Biconnectivity Let G = (N,E) be a connected A node a N is an articulation point if there are v and w different from a such that every path from 0 9 8 3 5 7 6 David Maier Biconnected Component

More information