Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Lab Report No 5

Artificial Intelligence
All students have to create their own unique manuals. Write each and every step with output
screenshots. Marks will be marked as zero (0) if any student copy the lab manual of any other
student.

The document must be in hard form (font size 14 for headings and 12 for text and sub
headings). Hand written work will not be accepted.

Good Luck to all!

Write Step by Step Procedure with output screenshots for all the given task?

Task no 1:
Write pseudocode of simple reflex agent?

Task no 2:
Solve the activity of “room temperature controller” that we have implemented in lab?

Task no 3:
Consider the vacuum world shown in the figure below: Write pseudocode for this given scenario
of reflex vacuum agent?

Task no 4:
Implement Model Based Vacuum Agent that has been discussed in lab?
Task no 5:
a) Can you name few model-based reflex agents?
b) Write a program for model-based reflex agent of your own choice.
c) Consider the vacuum world shown in the figure below:

This particular world has just two locations: squares A and B. The vacuum agent perceives which
square it is in and whether there is dirt in the square. It can choose to move left, move right, suck
up the dirt, or do nothing. One very simple agent function is the following: if the current square
is dirty, then suck, otherwise move to the other square. Write a simple reflex agent for the vacuum
cleaner.
(Hint: Agent has no initial states knowledge)
If the current square is dirty, then suck; otherwise, move to the other square.

Pseudocode to the task is as follows;


function Reflex-Vacuum-Agent( [location,status]) returns an action
if status = Dirty then return Suck
else if location = A then return Right
else if location = B then return Left

You might also like