CSCI561留学生作业代写、代做Python程序语言作业、代写Artificial Intelligence作业、代做Python课程设计作业
CSCI561 Fall 2018 Foundations of Artificial Intelligence
Homework 3
Due November 23, 2018 23:59:59
BONUS: 20 points if submitted by November 19, 2018 23:59:59
https://news.utexas.edu/sites/default/files/styles/news_article_main_image/public/photos/autonomous_vehicles_830.jpg?itok=WvKF9fpF
Problem Description:
You are the CTO of a new startup company,SpeedRacer, and you want your
autonomou cars to navigate throughout the city of Los Angeles. The cars can move
North, South, East, or West. The city can be represented in a grid, as below:
0,0 1,0 2,0 3,0 4,0
0,1 1,1 2,1 3,1 4,1
0,2 1,2 2,2 3,2 4,2
0,3 1,3 2,3 3,3 4,3
There will be some obstacles, such as buildings, road closings, etc. If a car crashes
into a building or road closure, SpeedRacer has to pay $100. You also spend $1 for
gas when at each grid location along the way. The cars will start from a given
SpeedRacer parking lot, and will end at another parking lot. When you arrive at your
destination parking lot, you will receive $100. Your goal is to make the most
money over time with the greatest likelihood. Your cars have a faulty turning
mechanism, so they have a chance of going in a direction other than the one
suggested by your model. They will go in the correct direction 70% of the time, with
a 10% chance of going in each of the other three directions instead.
The first part of your task is to design an algorithm that determines where your cars
should try to go in each city grid location given your goal of making the most money.
Then, to make sure that this is a good algorithm when you present it to the rest of
your board, you should simulate the car moving through the city grid. To do this,
you will use your policy from your start location. You will then check to see if the car
went in the correct direction using a random number generator with specific seeds
to make sure you can reproduce your output. You will simulate your car moving
through the city grid 10 times using the random seeds 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10.
You will report the mean over these 10 simulations as an integer after using the
floor operation (e.g., numpy.floor(meanResult)). An example of this process is
given in detail below.
Input: The file input.txt in the current directory of your program will be formatted
as follows:
First line: strictly positive 32-bit integer s, size of grid [grid is a square of size sxs]
Second line: strictly positive 32-bit integer n, number of cars
Third line: strictly positive 32-bit integer o, number of obstacles
Next o lines: 32-bit integer x, 32-bit integer y, denoting the location of obstacles
Next n lines: 32-bit integer x, 32-bit integer y, denoting the start location of each
car
Next n lines: 32-bit integer x, 32-bit integer y, denoting the terminal location of
each car
0,4 1,4 2,4 3,4 4,4
Output:
n lines: 32-bit integer, denoting the mean money earned in simulation for each
car, integer result of floor operation
Example:
Input.txt
3
1
1
0,1
2,0
0,0
Output.txt
95
For example, say you have a 3x3 grid, as follows, with 1 car in start position 1,0
(green):
99 -1 -1
-101 -1 -1
-1 -1 -1
You determine that based on the locations of certain obstacles and people, you
should move in these directions in each cell:
99
- - -
- -
Then, you should do simulation using this policy. Beginning at the start position,
move in the direction suggested by your start policy. There is a 10% chance that you
will move South, so check your direction using random generation with random
seed = 1 (e.g., random.random()). In this case, you actually move South, so you will
receive -$1. You will now try to move North based on your policy. With the random
seed = 1, you successfully move North. Therefore, you now have -$2. Repeat at your
next locations, until you end at your terminal state. Record the total money you have
at the end. Let’s say that the total is $91. Then, repeat this process 9 more times. You
will average $91 with the 9 other results and report the integer floor of that average.
If the result is 91.65093, for example, you should record 91 in your output file.
Standard rounding rules apply. (draw random sample from a distribution: if value is
<= 0.7 make the correct transition, otherwise randomly pick uniformly alternative
direction) (rounding) Some code demonstrating how to do this is given below:
for in range(len(cars)): for in range(10): pos = cars[i]
np.random.seed(j+1) swerve = np.random.random_sample(1000000)
k=0 while pos != ends[i]: move =policies[i][pos]
if swerve[k] > 0.7: if swerve[k] > 0.8: if swerve[k] > 0.9:move = turn_left(turn_left(move))
else:move = turn_left(move) else:move = turn_right(move)k+=1
Guidelines
This is a programming assignment. You are provided sample input and output files. Please
understand that the goal of these samples is to check that you can correctly parse the
problem definitions, and generate a correctly formatted output. The samples are very
simple and it should not be assumed that if your program works on the samples it will
work on all test cases. There will be more complex test cases and it is your task to make
sure that your program will work correctly on any valid input. You are encouraged to try
your own test cases to check how your program would behave in some complex special
case that you might think of. Since each homework is checked via an automated A.I.
script, your output should match the specified format exactly. Failure to do so will most
certainly cost points. The output format is simple and examples are provided. You should
upload and test your code on vocareum.com, and you will submit it there.
Grading
Your code will be tested as follows: Your program must not require any command-line
argument. It should read a text file called “input.txt” in the current directory that contains
a problem definition. It should write a file “output.txt” with your solution to the same
current directory. Format for input.txt and output.txt is specified below. End-of-line
character is LF (since Vocareum is a Unix system and follows the Unix convention).
The grading A.I. script will
Create an input.txt file, delete any old output.txt file.
? Run your code.
Test your output.txt file
Academic Honesty and Integrity
All homework material is checked vigorously for dishonesty using several methods. All
detected violations of academic honesty are forwarded to the Office of Student Judicial
Affairs. To be safe you are urged to err on the side of caution. Do not copy work from
another student or off the web. Keep in mind that sanctions for dishonesty are reflected
in your permanent record and can negatively impact your future success. As a general
guide:
Do not copy code or written material from another student. Even single lines of
code should not be copied.
Do not collaborate on this assignment. The assignment is to be solved
individually.
Do not copy code off the web. This is easier to detect than you may think.
Do not share any custom test cases you may create to check your program’s
behavior in more complex scenarios than the simplistic ones considered below.
Do not copy code from past students. We keep copies of past work to check for
this.
Do ask the professor or TA if you are unsure about whether certain actions
constitute dishonesty. It is better to be safe than sorry.
Homework Rules
1. Use Python 2.7 to implement your homework assignment. You are allowed to
use standard libraries only. You have to implement any other functions or
methods by yourself.
2. Create a file named “hw3cs561f2018.py”. When you submit the homework
on labs.vocareum.com, the following commands will be executed:
python hw3cs561f2018.py
3. Create a file named “output.txt” and print its output there. For each test case,
the grading script will put an “input.txt” file in your work folder, runs your
program (which reads “input.txt”), and check the “output.txt” file generated
by your code. The grading script will replace the files automatically, so you
do NOT need to do anything for that part.
4. Homework must be submitted through Vocareum. Please only upload your
code to the “/work” directory. Don’t create any subfolder or upload any
other files. Please refer to http://help.vocareum.com/article/30-gettingstarted-students
to get started with Vocareum.
5. Your program must handle all test cases within a maximum runtime of 3
minutes per test case on Vocareum.
6. It is recommended to submit your program 24 hours ahead of the deadline to
avoid any submission issues on Vocareum. Late submissions will not be
graded.
Helpful Hints:
1. Tie breaking. If values are the same for your available moves, choose to
move in directions in this order of preference: North, South, East, West.
2. Cars can be in the same grid cell at the same time. There is no need to
consider multi-agent coordination.
3. Calculating expected value. When considering future moves, make sure to
give them a lesser weight, specifically 0.9. You can stop calculating when you
are within 0.1 of the optimal value.
4. It is very important to use the exact parameters we provide for your
simulation, as different answers will be marked as incorrect.
5. We will not give unsolvable inputs. This means that we won’t give any
irregular inputs that don’t conform to the format we’ve described in this
document.
6. Think about representing the problem.
a. What is a good representation of states and operators?
b. How can you use this to simplify the problem representation?
c. How will you evaluate the “score” of a state?
7. Think about complexity.
a. How can you use the input parameters to determine which algorithm
will be able to generate a solution within 3 minutes?

因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com

微信:codinghelp

转载于:https://www.cnblogs.com/hellorrrrr/p/9985121.html

CSCI561 Fall 2018 Foundations of Artificial Intelligence相关推荐

  1. CS 540: Introduction to Artificial Intelligence

    代写CS 540作业.代做Artificial Intelligence作业.代写Java课程设计作业.代写Java实验作业 CS 540 Fall 2018 CS 540: Introduction ...

  2. Artificial Intelligence Computer Vision ML and DL

    Ref:face_recognition Ref:seetaface Ref:百度AI开放平台 Ref:Face++开放平台 Ref:Cognitive Services Ref:AForge.NET ...

  3. 人工智能(Artificial Intelligence),英文缩写为AI

    人工智能 人工智能(英語:,缩写为)亦稱智械.機器智能,指由人製造出來的機器所表現出來的智慧.通常人工智能是指普通電腦程式來呈現人類智能的技術.該詞也指出研究這樣的智能系統是否能夠實現,以及如何實現. ...

  4. Re23:读论文 How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligence

    诸神缄默不语-个人CSDN博文目录 论文名称:How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligence ...

  5. 《Artificial Intelligence in Finance》(AI金融, by Yves Hilpisch)台湾谢承熹Chenghsi Hsieh老师中文讲解

    [AI金融]AI in Finance (by Yves Hilpisch) 台湾Chenghsi Hsieh(谢承憙)老师中文讲解202105 课程简介: 基于书籍<Artificial In ...

  6. Chapter21: Consideration in the Application of Artificial Intelligence to Pharmacokinetic Prediction

    reading notes of<Artificial Intelligence in Drug Design> 文章目录 1.Introduction 2.The Evolution o ...

  7. 【全文翻译】Edge Intelligence: Paving the Last Mile of Artificial Intelligence With Edge Computing

    Edge Intelligence:Paving the Last Mile of Artificial Intelligence With Edge Computing I.INTRODUCTION ...

  8. 人工智能英文原版PDF教材1.03G资源包Artificial Intelligence

    人工智能英文原版PDF教材1.03G资源包Artificial Intelligence 资源包包含以下教材: Bayesian networks Learning Bayesian Networks ...

  9. 《Artificial intelligence in healthcare》综述论文阅读

    为了方便阅读,我将下面这篇综述论文进行了翻译. Yu, KH., Beam, A.L. & Kohane, I.S. Artificial intelligence in healthcare ...

最新文章

  1. Spring Boot系列——7步集成RabbitMQ
  2. CUDA and cudnn 历史版本归档地址
  3. 基于maven的ssh框架一步一步搭建(一)
  4. dbvis 数据库工具:数据库驱动集合包获取,dbvis数据库工具安装驱动实例演示
  5. 十大最急需IT技术人才榜:Java开发人员领跑
  6. mysql ef_在EF中使用MySQL的方法及常见问题
  7. 程序设计基础(c语言)复习大纲,《程序设计基础-C》复习大纲.doc
  8. nfc卡模式与标准模式_渠道如何标准化管理,建立新的销售模式,提升业绩完成率...
  9. linux 格式化u盘_【Ventoy】一个U盘,启动多个系统
  10. JavaScript学习---JavaScript基础知识
  11. 雾山五行专题高清壁纸,绝美动漫场景
  12. 从 json 文件到炫酷动画 - Lottie 实现思路和源码分析
  13. centos安装docker详细步骤,如何配置阿里云镜像加速
  14. HttpClient的使用方法
  15. 黑马程序员c++讲义课件笔记
  16. win10 电脑扬声器显示未插入
  17. java指数运算_java算法-指数运算(大数运算)
  18. 玩转Python,30行Python代码刷王者荣耀金币
  19. 实时数据库 - 笔记
  20. 华米 Amazfit 跃我 GTR 4和GTS 4的区别

热门文章

  1. 20 数据存储服务器集群的伸缩性设计
  2. ubuntu 通过命令行上传百度云
  3. 【智能相机】2023年国内最火相机
  4. 15位身份证号的校验
  5. 使用adb命令导出hprof文件
  6. HDP kt_renewer ERROR Couldn‘t renew kerberos ticket in order to work around Kerberos 1.8.1 issu
  7. 监督学习VS无监督学习
  8. 读书:《SEO实战密码》
  9. js 下载url返回的excel数据,并解析为json
  10. java设置单元格格式_java报表开发之单元格格式设置