COEN266-Homework 1 Solved

30.00 $

Category:

Description

Rate this product

Problem 1: Define in your own words the following terms: agent, agent function, agent program, performance measure, rational agent.

Problem 2: Give the task environment description of the following scenarios (Fully observable vs. partially observable? Deterministic vs. stochastic/strategic? Episodic vs. sequential? Static vs. dynamic/semi-dynamic? Discrete vs continuous? Single-agent vs. multi-agents?) a. Taxi driving.

  1. Playing soccer.

Problem 3: Implement a Model-Based-Reflex-Agent for the Vacuum World problem.

 

x Define the “state” as a list of three elements: the 1st element specifies the status of the left square (“Clean” or “Dirty”), the 2nd element specifies the status of the right square (“Clean” or “Dirty”), and the 3rd element specifies the current location of the agent (0 for left square, 1 for right square).

 

x The candidate actions are “Suck”, “Left” (moving to the left square), “Right” (moving to the right square). Each action costs 1 point.

 

x The agent will take an action based on the current state of the world. The agent program can update the state every time an action is taken. The program terminates when both squares are clean.

 

x Create a test case to verify your code. The test case takes two inputs: the current state, and an empty list that will store the actions; then it will generate two outputs: the sequence of actions, and the total cost.

 

x Your test case should be able to take any possible inputs, generate the corresponding outputs, and verify whether the outputs are correct or not.

 

x Explain in detail how your code works (for example, what each function does, and how the test case works).

 

  • HW-1-z8qnwt.zip