logo

Crowdly

Browser

Add to Chrome

A robot runs this teleo-reactive program, whose rules are checked top to bottom ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

A robot runs this teleo-reactive program, whose rules are checked top to bottom on every cycle:

dirty(X,Y) -> do(clean)

not wall(front) -> do(forward)

wall(front) and not wall(left) -> do(turn(left))

wall(front) and wall(left) -> nil

In the current cycle it perceives that its square is dirty, there is a wall in front, and there is a wall to its left. Which action does it take?

❌
❌
✅
❌
More questions like this

Want instant access to all verified answers on moodle.royalholloway.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome