CSCE 5210 Artificial Intelligence Assignment

Assignment Help Computer Engineering
Reference no: EM133001022

CSCE 5210 Artificial Intelligence - University of North Texas

Purpose: To gain a thorough understanding of the working of a simple, table-driven, reflex agent. This will enable you to put into practice the concepts of performance measurement, environment interaction, and the use of actuators (PEAS) to assist the agent's navigation in a stochastic setting that mimics a real-world environment.

Environment Description: The environment is a warehouse represented by a 6 by 6 grid. Each grid can either be empty (i.e. a passage that leads to a shelf) or is a shelf. There are 10 shelves in the warehouse, labelled A, B, ..., J. Each shelf contains a collection of items of a particular type. Thus, for example, shelf A contains multiple items of type A. The objective is to service customer orders through the use of a robot equipped with the agent software and hardware sensors that are mounted on the robot.

The sales ordering system accepts customer orders which are relayed to the robot wirelessly. The number of items in a given order can be taken as a random number between 1 and the total number of item types (i.e. shelves). When a robot receives a new order, it retrieves the items ordered by visiting the shelves that hold the items ordered. In order to perceive the location of shelves the robot uses sensors that are 80% accurate. Thus 80% of the time the robot will correctly sense whether a shelf exists in its neighborhood. Assume that the neighborhood consists of a maximum of 4 grid positions which are to the left, right, up and down from its current position. When the robot senses a shelf, it can move to the shelf and extract the type of item that is stored in that shelf. However, 10% of the time the sensor fails, and the robot thinks that a shelf is present when it is not the case. Similarly, 10% of the time a shelf exists but the sensor fails to detect it until it lands on the grid containing the shelf.

The agent's memory is limited to the current episode, which is the path plotted to retrieve the items for the order being serviced. It has no memory of previous episodes.

The agent should use the following rules to navigate:

1. If any of the grid positions in its neighborhood refer to an item ordered, then it moves to that grid position. If two or more neighboring positions contain ordered items, then the tie is broken by making a random choice between the positions involved.
2. If none of the neighboring positions contain ordered items, then a random choice is made to a position that has not been visited before.
Each visit to a position in a grid that does not contain an ordered item incurs a score of -1, while each visit to a position containing an ordered item scores +3. Thus a brute force algorithm that sweeps through the grid from the starting position P will score a total score of (35-n)*(-1)+n*3=-35+4*n where n is the number of items ordered. Since the robot can sense neighboring positions, your agent should do better than a brute force method when its score is averaged over a large number (say 1000) episodes.

Run your agent for 1000 episodes and print its average score. You may assume that the stock is adequate for 1000 episodes and so stock never runs out. Once an episode is over the robot immediately starts a new episode for a new order if one exists, otherwise it waits in its current position for the next order to arrive.

You are required to write a Python program to implement the agent controlling the robot. Your program should produce the following:

1. The average score taken across 1000 episodes.

2. Display the shortest path (i.e., the sequence of grid positions visited) across the 1000 episodes and its corresponding score.

3. Display the longest path across the 1000 episodes and its corresponding score.

4. Demonstrate that your program is generic enough to cope with a new layout of shelving as shown below. This should be done by carrying out requirements 1, 2 and 3 above for the new layout.

5. Give two possible reasons why the average score differs from the average score computed across the old layout.

6. What data structure(s) did you use to ensure that your program can cope with any given layout?

Attachment:- Artificial Intelligence.rar

Reference no: EM133001022

Questions Cloud

Which a large cash withdrawal by jacob is viewed : Which A large cash withdrawal by Jacob is viewed by the other partners as a permanent reduction of his equity is recorded with a debit to as?
Which the partner capital account will be credited for : The related mortgage payable of P 125,000 was assumed by the partnership. As a result of the investment, the partner's capital account will be credited for
What the partner capital account is credited : What is the entry to record the acceptance of an industrial partner to the partnership? What the partner's capital account is credited when there is a(an)
Discuss whether the industry exhibits constant returns : Discuss whether the industry exhibits Constant Returns to Scale (CRS) OR Decreasing Returns to Scale (DRS) OR Increasing Returns to Scale
CSCE 5210 Artificial Intelligence Assignment : CSCE 5210 Artificial Intelligence Assignment Help and Solution, University of North Texas - Assessment Writing Service
What does complete exposure mean : With a naked call option, the option writer does not own the underlying stock. There is complete risk exposure in this situation!
Make a profit or loss in cny : Haier-China can borrow fund in China with an interest rate of 11.44% to invest 1.63 million Australian dollars (A$) and expected return of A$1.95 million next y
Find the crossover point or the fisher intersection : Your firm is considering two projects with the cash flows below. In which discount rate range will the company prefer Project A? In which discount rate range wi
Tax-themed podcast : Tax-themed podcast: Search google and listen to any one tax-themed podcast you find interesting and it can be very short.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe in detail an implementation of a priority queue

Describe in detail an implementation of a priority queue based on a sorted array. Show that this implementation achieves O(1) time for operations min.

  Review article in the given databases

Research Paper: Find a peer reviewed article in the following databases provided by the UC Library and write a 500-word paper reviewing the literature.

  How your organization may approach it operations as process

Discuss how your organization may evaluate or approach IT operations as a process. Identify and discuss 2-3 challenges your organization may be experiencing.

  Explain the low benefit and cost of pollution control

Assume there are two types of communities in the US, those in which there is a high benefit of pollution control and a high cost of pollustion control.

  Create a detailed diagram or set of diagrams to show how

create a detailed diagram or set of diagrams to show how the letter a is transmitted in an electrical light and radio

  What is the most common implementation

Using a web browser, search for available commercial applications that use various forms of RAID Technologies, such as RAID 0 through RAID 5.

  How can the laws of supply and demand be used

Examine the market for tickets for popular sporting events through the supply and demand model.

  Write an algorithm that takes an integer n as input

Write an algorithm that takes an integer n as input and determines the total number of solutions to the n-Queens problem.

  In privacy deborah g johnson presents arguments designed to

in privacy deborah g. johnson presents arguments designed to show that the greater capacity of computers to gather and

  Create an application that allows the user to enter amount

Create an application that allows the user to enter the amount of a purchase. The program should then calculate the state and county sales tax.

  Advantages and disadvantages to using cots

What are the advantages and disadvantages to using COTS (Commercial Off-the-Shelf) software versus writing your own software within a company environment? Give some examples of problems you have had.

  Sector specific challenges in crafting security policy

Compare and contrast at least two U.S. Critical Infrastructure sector specific challenges in crafting security policy

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd