Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author:...

15
19-01-2018 1 Dr Pradipta Biswas, PhD (Cantab) Assistant Professor Indian Institute of Science http://cpdm.iisc.ernet.in/PBiswas.htm 2 STATE-SPACE SEARCH STATES STATE-SPACE OPTIMAL START STATE GOAL STATE

Transcript of Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author:...

Page 1: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

1

Dr Pradipta Biswas, PhD (Cantab)Assistant Professor

Indian Institute of Sciencehttp://cpdm.iisc.ernet.in/PBiswas.htm

2

• STATE-SPACE SEARCH

• STATES

• STATE-SPACE

OPTIMAL

START STATE GOAL STATE

Page 2: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

2

5

• UNINFORMED (BLIND):

• VARIOUS BLIND STRATEGIES:

6

• INSERTED

Initial state = AIs A a goal state?

Put A at end of queue.frontier = [A]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

7

Expand A to B, C. Is B or C a goal state?

Put B, C at end of queue.frontier = [B,C]

8

Expand B to D, EIs D or E a goal state?

Put D, E at end of queuefrontier=[C,D,E]

Page 3: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

3

9

Expand C to F, G.Is F or G a goal state?

Put F, G at end of queue.frontier = [D,E,F,G]

10

Expand D to no children.Forget D.

frontier = [E,F,G]

11

Expand E to no children.Forget B,E.

frontier = [F,G]

12

• COMPLETE?

• TIME?

• SPACE?

• OPTIMAL?

• F(D) ≥ F(D-1),

• SPACE

Page 4: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

4

13

• INSERTED

Initial state = AIs A a goal state?

Put A at front of queue.frontier = [A]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

14

Expand A to B, C. Is B or C a goal state?

Put B, C at front of queue.frontier = [B,C]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

15

Expand B to D, E. Is D or E a goal state?

Put D, E at front of queue.frontier = [D,E,C]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

16

Expand D to H, I. Is H or I a goal state?

Put H, I at front of queue.frontier = [H,I,E,C]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

Page 5: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

5

17

Expand H to no children.Forget H.

frontier = [I,E,C]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

18

Expand I to no children.Forget D, I.

frontier = [E,C]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

19

Expand E to J, K. Is J or K a goal state?

Put J, K at front of queue.frontier = [J,K,C]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

20

Expand I to no children.Forget D, I.

frontier = [E,C]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

Page 6: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

6

21

Expand K to no children.Forget B, E, K.

frontier = [C]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

22

Expand C to F, G. Is F or G a goal state?

Put F, G at front of queue.frontier = [F,G]

Future= green dotted circlesFrontier=white nodesExpanded/active=gray nodesForgotten/reclaimed= black nodes

23

• COMPLETE?

• TIME?

• SPACE?

• OPTIMAL?

24

Page 7: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

7

25

• To avoid the infinite depth problem of DFS,

only search until depth L,

i.e., we don’t expand nodes beyond depth L.� Depth-Limited Search

• What if solution is deeper than L? � Increase L iteratively.

� Iterative Deepening Search

• This inherits the memory advantage of Depth-first search

• Better in terms of space complexity than Breadth-first search.

26

27 28

Page 8: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

8

29 30

INFORMED SEARCH STRATEGIES

• SELECT WHICH NODE TO EXPAND NEXT DURING SEARCH

• W(N)

Page 9: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

9

• APPEARS

Page 10: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

10

� COMPLETE?

� TIME?

� SPACE?

� OPTIMAL?

Page 11: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

11

• GENERALLY THE PREFERRED SIMPLE HEURISTIC SEARCH

• ESTIMATE

ESTIMATE

S i

S

S f

g(S)

h(S)

f(S)

Components of A*

Page 12: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

12

Page 13: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

13

• COMPLETE?

• TIME/SPACE?

• OPTIMAL?

• OPTIMALLY EFFICIENT?

* *| ( ) ( ) | (log ( ))h n h n O h n− ≤

Page 14: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

14

53

P. Biswas, Interactive Gaze Controlled Projected Display, Patent Application No.: 201641037828

• STATE SPACE

• STATES

• START STATE

• GOAL STATES

• OPERATORS

Each set of colored dots represents a state

Page 15: Lec 3 Search - PradiptaBiswas · 2019. 9. 16. · Microsoft PowerPoint - Lec 3 Search.pptx Author: I3D_03 Created Date: 1/19/2018 12:04:06 PM ...

19-01-2018

15

•0.95

1.66

1.13

0

0.5

1

1.5

2

2.5

Projected_HS Projected Touch

MEA

N D

EV

IATI

ON

Mean Deviation from Lane

2608.723030.29

2556.72

0

500

1000

1500

2000

2500

3000

3500

4000

4500

5000

Projected_HS Projected Touch

RESP

ON

SE T

IME (

IN M

SEC

)

Response Time

59

TAKE AWAY POINTS