39
Problem Solving Agents CSL 302 ARTIFICIAL INTELLIGENCE SPRING 2014

Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Problem Solving AgentsCSL 302 ARTIFICIAL INTELLIGENCE

SPRING 2014

Page 2: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Goal Based Agents

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 2

Representation Mechanisms (propositional/first order/probabilistic logic)

Search (blind and informed)PlanningInference

Learning Models

Page 3: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 3

Page 4: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Problem Solving AgentsGoal FormulationoOrganize behavior of the agent

oGoal โ€“ set of states in the world where the goal is satisfied

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 4

Page 5: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 5

Goal

Initial

Page 6: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Problem Solving AgentsGoal FormulationoOrganize behavior of the agent

oGoal โ€“ set of states in the world where the goal is satisfied

Problem FormulationoWhat are the actions?

oWhat are the states?

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 6

Page 7: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Assumptions about the Task EnvironmentObservable or partially observable?

Discrete or Continuous?

Deterministic or Stochastic?

Static or Dynamic?

Episodic or Sequential?

Multiple or Single Agent?

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 7

Page 8: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Assumptions about the Task EnvironmentObservable or partially observable?

Discrete or Continuous?

Deterministic or Stochastic?

Static or Dynamic?

Episodic or Sequential?

Multiple or Single Agent?

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 8

Page 9: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Assumptions about the Task EnvironmentObservable or partially observable?

Discrete or Continuous?

Deterministic or Stochastic?

Static or Dynamic?

Episodic or Sequential?

Multiple or Single Agent?

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 9

Finding a sequence of actions โ€“ Search!

Page 10: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Problem Solving AgentsGoal FormulationoOrganize behavior of the agent

oGoal โ€“ set of states in the world where the goal is satisfied

Problem FormulationoWhat are the actions?

oWhat are the states?

SearchoFinding the sequence of actions

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 10

Page 11: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 11

Goal

States

Operator/Action

Initial

What is the solution?

Page 12: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Problem TypesDeterministic and Fully Observable: Single state problemoSolution is sequence

Non-observable: Conformant problemoSolution (if any) is a sequence

Stochastic and/or Partially Observable: Contingency problemoSolution is a contingency plan or a policy

Unknown state space: Exploration problem

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 12

Page 13: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Problem Solving โ€“ Atomic Agents

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 13

Atomic AgentsoStates are indivisible

oSearching through the states to reach the goal.

Page 14: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Single State Problem Formulation

Problem can be defined by 5 components1. Initial State: the state the agent starts

2. Actions: the set of operators that can be executed at a state

3. Transition model: returns the state that results from doing an action in a state

4. Goal test: determines whether a given state is a goal state

5. Path Cost: function that assigns a numeric cost to a path

Step cost: cost of taking a single action

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 14

โ€ข State Spaceโ€ข Graphโ€ข Path

Page 15: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 15

Initial State: AradActions: Drive(Sibiu),Drive(Timisora)Goal Test: In(Bucharest)Path Cost: ?

Page 16: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example: Toy Vacuum Problem

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 16

State: Robot and Dirt Locations

Initial State: Any State

Actions: Left, Right Suck

Goal Test: No Dirt

Path Cost: cost 1 per action?

Page 17: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example: Eight Puzzle Problem

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 17

State: Tile Locations

Initial State: A specific tile configuration

Actions: move the blank tile left, right, up or down

Goal Test: tiles are in the required configuration

Path Cost: cost 1 per move?

Note: Optimal solution for an n-puzzle family is NP hard.

Page 18: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example: 8 Queens Problem

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 18

State: Configuration of the Queens

Initial State: Empty board

Actions: Add a queen to the board

Goal Test: configuration with 8 queens on the board with none attacking another

Path Cost: time taken to solve?

Page 19: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example: Missionaries and Cannibals

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 19

State: number of missionaries and cannibals on the boat and each bank

Initial State: all objects one bank

Actions: move boat with x missionaries and y cannibals, no more cannibals than missionaries on the boat or the shore, a boat with a maximum capacity.

Goal Test: All objects on the opposite bank

Path Cost: 1 per river crossing

Page 20: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example: Rubikโ€™s Cube

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 20

State: List of colors on each face

Initial State: A specific color pattern

Actions: rotate a row or column or a face

Goal Test: configuration has the same color on all tiles on every face

Path Cost: cost 1 per move?

Page 21: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example: Rubikโ€™s Cube

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 21

Page 22: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example: Real WorldTravelling Salesman Problem (TSP)

Robot Navigation

Protein folding

Graph Coloring

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 22

Page 23: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Uninformed Search21/1

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 23

Page 24: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Search - TreesBasic Principle:oOffline simulated exploration of search space

oGenerate successors of already explored states

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 24

Page 25: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Search Space as a Tree

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 25

Parent Root

Node

Children Children

Node

Initial StateActions

Solution

Goal State

State

Page 26: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Example

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 26

Page 27: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Search Strategies Strategies vary in the order in which nodes are picked for expansion

Evaluating search strategiesoCompleteness โ€“ Does it always find a solution if one exists?oOptimality โ€“ Does it always find a least cost solution?oSpace complexity โ€“ How much memory is needed to perform

search?oTime complexity โ€“ How long does it take to find a solution?

Time and Space complexities are measuredob โ€“ maximum branching factor of the search treeod โ€“ shallowest depth of the least cost solutionom- maximum depth of the search space

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 27

Page 28: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Uninformed search strategiesUse only the information available in the problem definition

Breadth-first search

Uniform-cost search

Depth-first search

Depth-limited search

Iterative deepening search

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 28

Page 29: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Breadth-first search (BFS)Expand shallowest unexpanded node

Implementation: FIFO Queue; successors at the end of the queue

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 29

Page 30: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

BFS โ€“ AnalysisCompleteness: Yes (if b is finite)

Optimality: Not optimal; Yes- Uniform cost edges

Time Complexity: exponential in d1 + ๐‘ + ๐‘2 + ๐‘3 +โ‹ฏ+ ๐‘๐‘‘ + ๐‘ ๐‘๐‘‘ โˆ’ 1 = ๐‘‚(๐‘๐‘‘+1)

Space Complexity: ๐‘‚(๐‘๐‘‘+1)

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 30

๐‘ = 10 106๐‘›๐‘œ๐‘‘๐‘’๐‘  ๐‘ ๐‘’๐‘ 103๐‘๐‘ฆ๐‘ก๐‘’๐‘  ๐‘›๐‘œ๐‘‘๐‘’

Page 31: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Uniform cost search (UCS)Expand least-cost (๐‘”(๐‘›))unexpanded node

Implementation: Priority queue โ€“ sort the nodes in the queue based on cost.

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 31

Page 32: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

UCS - AnalysisCompleteness: Yes; if step cost โ‰ฅ ๐œ–

Optimality: Yes; nodes are expanded in increasing order of ๐‘”(๐‘›)

Time Complexity: # of nodes with ๐‘” โ‰ค cost of optimal solution(๐ถโˆ—) - ๐‘‚(๐‘ ๐ถโˆ— ๐œ– )

Space Complexity: # of nodes with ๐‘” โ‰ค cost of optimal solution - ๐‘‚(๐‘ ๐ถโˆ— ๐œ– )

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 32

Large subtrees with inexpensive steps may be explored before useful paths with costly steps

Page 33: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Depth-first search (DFS)Expand deepest unexpanded node

Implementation: LIFO queue; successors at the front of the queue

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 33

Page 34: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

DFS - AnalysisCompleteness: complete only in finite spaces; incomplete when there are loops and infinite spaces

Optimality: No

Time Complexity: ๐‘‚(๐‘๐‘š); terrible when ๐‘š โ‰ซ ๐‘‘;might be faster than BFS, when solutions are dense.

Space Complexity: 1 + ๐‘ + ๐‘ +โ‹ฏ+ (๐‘š๐‘กโ„Ž๐‘™๐‘’๐‘ฃ๐‘’๐‘™)๐‘ =๐‘‚(๐‘๐‘š); Linear space!!

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 34

Depth # nodes MemoryBFS

Memory DFS

16 1016 10Eb 156Kb

Page 35: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Depth-limited search (DLS)Depth-first search with depth limit ๐‘™

Implementation: nodes at depth ๐‘™ have no successors.

Only finite space to be explored.

Completeness: Yes/No???

Optimality: Yes/No???

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 35

Page 36: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Iterative deepening search(IDS)

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 36

๐‘‘๐‘’๐‘๐‘กโ„Ž = 0

๐‘‘๐‘’๐‘๐‘กโ„Ž = 1

๐‘‘๐‘’๐‘๐‘กโ„Ž =2

๐‘‘๐‘’๐‘๐‘กโ„Ž =3

๐‘‘๐‘’๐‘๐‘กโ„Ž =4

Page 37: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

IDS- AnalysisCompleteness: Yes!

Optimality: Yes for uniform cost edges; can be modified to explore uniform cost tree

Time Complexity: ๐‘‘๐‘ + ๐‘‘ โˆ’ 1 ๐‘2 +โ‹ฏ+1 ๐‘๐‘‘ = ๐‘‚(๐‘๐‘‘)

Space Complexity: ๐‘‚(๐‘๐‘‘)

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 37

Asymptotic ratio of # nodes expanded by IDS vs DFS: (๐‘ + 1) ๐‘ โˆ’ 1 โ‰ˆ 1for large values of ๐‘

Page 38: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Summary

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 38

Page 39: Problem Solving Agentscse.iitrpr.ac.in/ckn/courses/s2014/us.pdfย ยท might be faster than BFS, when solutions are dense. Space Complexity: 1+ + +โ‹ฏ+( I๐‘กโ„Ž ๐‘ฃ ) = ๐‘‚( ); Linear

Graph SearchBFS-?

DFS-?

IDDFS-?

1/21/2014 CSL 302 ARTIFICIAL INTELLIGENCE, INDIAN INSTITUTE OF TECHNOLOGY ROPAR 39