740 likes | 754 Views
Agents & Intelligent Systems. Dr Liz Black elizabeth.black@kcl.ac.uk. What is an Agent?. Software agents or physical agents (robots) The main point about agents is they are autonomous : capable of deciding for themselves what to do
E N D
Agents & Intelligent Systems Dr Liz Black elizabeth.black@kcl.ac.uk
What is an Agent? • Software agents or physical agents (robots) • The main point about agents is they are autonomous: capable of deciding for themselves what to do • We want to delegate goals to the agent without having to worry about specifying how exactly those goals should be achieved • Agent should work out for itself what to do in order to try to achieve its goals
Why do we need Agents? • Because we’re lazy • Because sometimes the problems we want to solve are so complex or unpredictable that we don’t know how to write a precise program that solves them
Video • Starring Douglas Adams and Tom Baker, 1990
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right }
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right }
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right }
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right }
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right }
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right }
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right }
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right }
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right }
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right }
While(not home){ If no obstacle, move forward If obstacle, move left If far end of grid, move right } !
D B C E A 1 Goal: get home Knowledge: { Home is at C1 I am at C4 } 2 3 4
D B C E A 1 Goal: get home Knowledge: { Home is at C1 I am at C4 Obstacle at D3 No obstacle at B4, C4, D4, B3, C3 } 2 3 4
D B C E A 1 Goal: get home Knowledge: { Home is at C1 I am at C3 Obstacle at D3 No obstacle at B4, C4, D4, B3, C3 } 2 3 4
D B C E A 1 Goal: get home Knowledge: { Home is at C1 I am at C3 Obstacle at D3, B2, C2 No obstacle at B4, C4, D4, B3, C3, D2 } 2 3 4
D B C E A 1 Goal: get home Knowledge: { Home is at C1 I am at B3 Obstacle at D3, B2, C2 No obstacle at B4, C4, D4, B3, C3, D2 } 2 3 4
D B C E A 1 Goal: get home Knowledge: { Home is at C1 I am at B3 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4 } 2 3 4
D B C E A 1 Goal: get home Knowledge: { Home is at C1 I am at C3 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4 } 2 3 4
D B C E A 1 Goal: get home Knowledge: { Home is at C1 I am at C4 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4 } 2 3 4
D B C E A 1 1 Goal: get home Knowledge: { Home is at C1 I am at D4 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4 } 2 2 3 3 4 4
D B C E A 1 1 Goal: get home Knowledge: { Home is at C1 I am at D4 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4, E3, E4 } 2 2 3 3 4 4
D B C E A 1 1 Goal: get home Knowledge: { Home is at C1 I am at E4 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4, E3, E4 } 2 2 3 3 4 4
D B C E A 1 1 Goal: get home Knowledge: { Home is at C1 I am at E3 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4, E3, E4 } 2 2 3 3 4 4
D B C E A 1 1 Goal: get home Knowledge: { Home is at C1 I am at E3 Obstacle at D3, B2, C2. A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4, E3, E4, E2 } 2 2 3 3 4 4
D B C E A 1 1 Goal: get home Knowledge: { Home is at C1 I am at E2 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4, E3, E4, E2 } 2 2 3 3 4 4
D B C E A 1 1 Goal: get home Knowledge: { Home is at C1 I am at E2 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4, E3, E4, E2, D1, E1 } 2 2 3 3 4 4
D B C E A 1 1 Goal: get home Knowledge: { Home is at C1 I am at E1 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4, E3, E4, E2, D1, E1 } 2 2 3 3 4 4
D B C E A 1 1 Goal: get home Knowledge: { Home is at C1 I am at D1 Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4, E3, E4, E2, D1, E1 } 2 2 3 3 4 4
D B C E A 1 1 Goal: get home Knowledge: { Home is at C1 I am at home Obstacle at D3, B2, C2, A2 No obstacle at B4, C4, D4, B3, C3, D2, A3, A4, E3, E4, E2, D1, E1 } 2 2 3 3 4 4
D B C E A 1 2 3 4
D B C E A 1 2 Can anybody help me? 3 4
D B C E A 1 Maybe, I’ve got a big pillow 2 3 4
D B C E A 1 2 Please bring it to E2 3 4
D B C E A 1 Why should I? 2 3 4
D B C E A 1 2 I will pay you £5 3 4
D B C E A 1 No way will I do it for less than £7 2 3 4
D B C E A 1 2 I’ll give you £6 and that’s my final offer 3 4
D B C E A 1 Ok! 2 3 4