99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫CSCI-561 Artificial Intelligence 程序

時(shí)間:2024-01-27  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)


CSCI-561 - Spring 2023 - Foundations of Artificial Intelligence Homework 1 Due February 5, 2024 23:59 Image from https://www.astronomy.com/space-exploration/check-out-nasas-latest-mars-rover/ Guidelines This is a programming assignment. You will be provided sample inputs and outputs (see below). The goal of the samples is to check that you can correctly parse the problem definitions and generate a correctly formatted output which is also a correct solution to the problem. For grading, your program will be tested on a different set of samples. It should not be assumed that if your program works on the samples it will work on all test cases, so you should focus on making sure that your algorithm is general and algorithmically correct. You are encouraged to try your own test cases to check how your program would behave in some corner cases 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 some points. The output format is simple and examples are provided below. You should upload and test your code on vocareum.com, and you will also submit it there. Grading Your code will be tested as follows: Your program should 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, 50 times: - Create an input.txt file, delete any old output.txt file. - Run your code. - Check correctness of your program’s output.txt file. - If your outputs for all 50 test cases are correct, you get 100 points. - If one or more test case fails, you get 100 – 2xN points where N is the number of failed test cases. Note that if your code does not compile, or somehow fails to load and parse input.txt, or writes an incorrectly formatted output.txt, or no output.txt at all, or OuTpUt.TxT, or runs out of memory or out of time (details below), you will get zero points. Anything you write to stdout or stderr will be ignored and is ok to leave in the code you submit (but it will likely slow you down). Please test your program with the provided sample files to avoid any problem. 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. Even though this problem differs from those of previous years, do not try to copy from homeworks of previous years. Do not ask on piazza how to implement some function for this homework, or how to calculate something needed for this homework. Do not post code on piazza asking whether or not it is correct. This is a violation of academic integrity because it biases other students who may read your post. Do not post test cases on piazza asking for what the correct solution should be. Do ask the professor or TAs if you are unsure about whether certain actions constitute dishonesty. It is better to be safe than sorry. Project description In this project, we look at the problem of path planning in a different way just to give you the opportunity to deepen your understanding of search algorithms and modify search techniques to fit the criteria of a realistic problem. To give you a context for how search algorithms can be utilized, we invite you Mars. Using a rover, we want to collect soil samples. Because the rover has a limited life expectancy, we want to travel from our current location to the next soil sample location as efficiently as possible, i.e., taking the shortest path. Using advanced satellite imaging techniques, the terrain of Mars has already been scanned, discretized, and simplified into a set of locations that are deemed safe for the rover, as well as a set of path segments that are safe between locations. This is similar to a standard route planning problem using a topological map of cities and street segments, except that here we also account for elevation (locations have 3D coordinates). One additional complication is that the rover has a limited amount of available motor energy on every move, such that it cannot travel on path segments that are going uphill above a certain limit. This, however, can be overcome in some cases if the rover has gained some momentum by going downhill just before it goes uphill. This is explained in more details below. For now, just beware that whether the rover can or cannot traverse an uphill path segment depends on whether it has been going downhill and has gained momentum just before. Search for the optimal paths Our task is to lead the rover from a start location to a new location for the next soil sample. We want to find a shortest path among the safe paths, i.e., one that minimizes the total distance traveled. There may be one, several, or no solutions on a given instance of the problem. When several optimal (shortest) solutions exist, your algorithm can return any of those. Problem definition details You will write a program that will take an input file that describes the terrain (lists of safe locations and of safe path segments), the starting location, the goal location, and the available motor energy for going uphill. Your program should then output a shortest path as a list of locations traversed, or FAIL if no path could be found. A path is composed of a sequence of elementary moves. Each elementary move consists of moving the rover from its current safe location to a new safe location that is directly connected to the current location by a single safe path segment. To find the solution you will use the following algorithms: - Breadth-first search (BFS) with step cost of 1 per elementary move. - Uniform-cost search (UCS) with 2D step costs (ignoring elevation). - A* search (A*) with 3D step costs. In all cases, you should consider that a path segment is only traversable if either it is not going uphill by more than the uphill energy limit, or the rover currently has enough momentum from the immediately preceding move to overcome that limit. Terrain map The terrain will be described as a graph, specified in input.txt using two lists: - List of safe locations, each with a name and a 3D coordinate (x, y, z) - List of safe path segments, each given as a pair of two safe location names. Path segments are not directed, i.e., if segment “aaa bbb” is in the list, then the rover could in principle either travel from aaa to bbb or from bbb to aaa. Beware, however, that the uphill energy limit and momentum may prevent some of those travels (details below). To avoid potential issues with rounding errors, your path will be considered a correct solution if its length is within 0.1 of the optimal path length calculated by our reference algorithm (and if it also does not violate any energy/momentum rules). We recommend using double (64-bit) rather than float (**-bit) for your internal calculations. Energy and momentum The required energy for a given move is always calculated from a point (x1, y1, z1) to another point (x2, y2, z2) as z2 – z1. Likewise, momentum is here simply defined as the opposite of the energy of the previous move. For simplicity, we assume that momentum does not accumulate over several successive moves. Hence, momentum at a given point is only given by the downhill energy obtained from the last move that brought us to that point. If the combined momentum from the previous move and required energy for the next move is exactly the energy limit, assume that the robot will be able to make that next move. To avoid issues with rounding errors, energy limit and location coordinates are integers, and hence momentum is too. Algorithm variants To help us distinguish between your three algorithm implementations, you must follow the following conventions for computing operational path length: - Breadth-first search (BFS) In BFS, each move from one location to a direct neighbor counts for a unit path cost of 1. You do not need to worry about the elevation levels or about the actual distance traveled. However, you still need to make sure the move is allowed according to energy and momentum. Therefore, any allowed move from one location to a graph-adjacent location costs 1. The length of any path will hence always be an integer. - Uniform-cost search (UCS) When running UCS, you should compute unit path costs in 2D, as the Euclidean distance between the (x1,y1) and (x2,y2) coordinates of two locations. You still need to make sure the move is allowed, in the same way you did for BFS. Path length is now a floating point number. - A* search (A*). When running A*, you should compute unit path costs in 3D, as the Euclidean distance between the (x1,y1,z1) and (x2,y2,z2) coordinates of two locations. You still need to make sure the move is allowed, in the same way you did for BFS and UCS. Path length is again a floating point number. Remember: In addition to computing the path cost, you also need to design an admissible heuristic for A* for this problem. File formats Input: The file input.txt in the current directory of your program will be formatted as follows: First line: Instruction of which algorithm to use, as a string: BFS, UCS or A* Second line: One positive **-bit integer specifying the rover’s uphill energy limit. Third line: One strictly positive **-bit integer for the number N of safe locations. Next N lines: A string on each line with format “name x y z” where name is a lowercase alphabetical string denoting the name of the location x, y, and z are **-bit signed integers for the location’s coordinates You are guaranteed that exactly one of the N names will be “start”, and exactly one will be “goal”. These are the starting and goal locations. Next line: One strictly positive **-bit integer for the number M of safe path segments. Next M lines: A string on each line for safe path segments with format “nameone nametwo” where nameone and nametwo are the names of two locations, each guaranteed to exist in the previously provided set of N locations. For example: BFS 23 4 start 0 0 0 abcd 1 2 3 efgh 4 5 6 goal 8 9 10 3 start abcd abcd efgh efgh goal You are guaranteed that the format of input.txt will be correct (e.g., if the file specifies that N is 4, you can assume that the following 4 lines always exist and are correct definitions of safe locations). There will be no duplicate safe path segments (e.g., if “abcd efgh” is specified in the list of paths, it will only appear once, and the equivalent “efgh abcd” will not appear in the list). Finally, two safe locations will never have the same coordinates, nor even the same (x,y) coordinates. Output: The file output.txt which your program creates in the current directory should be formatted as follows: First line: A space-separated list of safe location names that are along your solution path. This list should always start with the “start” location name and should always end with the “goal” location name. If no solution was found (goal location was unreachable by the rover from the given starting point), write a single word FAIL. For example, output.txt may contain: start abcd efgh goal Notes and hints: - Please name your program “homework.xxx” where ‘xxx’ is the extension for the programming language you choose (“py” for python, “cpp” for C++17, and “java” for Java). - Likely (but no guarantee) we will create 12 BFS, 19 UCS, and 19 A* test cases for grading. - When you submit on vocareum, your program will run against the training test cases. Your program will be killed and the run will be aborted if it appears stuck on a given test case for more than 10 seconds. During grading, the test cases will be of similar complexity, but you will be given up to 30 seconds per test case. Also note that vocareum has time limits for the whole set of 50 test cases, which are 300 seconds total for submission and 1800 seconds total for grading. - You can tell vocareum to run only one test case instead of all of them, for faster debugging, by adding the following line anywhere in your code: o For python: # RUN_ONLY_TESTCASE x o For C++ or Java: // RUN_ONLY_TESTCASE x where x is a number from 1 to 50. Or you can write your own script to copy and run one test case at a time in the interactive shell of vocareum. - The sample test cases are in $ASNLIB/publicdata/ on vocareum. In addition to input.txt and output.txt, we also provide pathlen.txt with the total cost of the optimal path that is given in output.txt - There is no limit on input size, number of safe locations, number of safe path segments, etc. other than specified above (**-bit integers, etc.). However, you can assume that all test cases used for grading will take < 30 secs to run on a regular laptop. - If several optimal solutions exist, any of them will count as correct as long as its path length is within 0.1 of the optimal path length found by our reference algorithm and your path does not violate any energy/momentum rule. - In vocareum, if you get “child exited with value xxx” on some test case, this means that your agent either crashed or timed out. Value 124 is for timeout. Value 137 if your program timed out and refused to close (and had to be more forcefully killed -9). Value 139 is for segmentation fault (trying to access memory that is not yours, e.g., past the end of an array). You can look up any other codes on the web. - The 50 test cases given to you for training and debugging are quite big. We recommend that you first create your own small test cases to check for correct traversal order, correct loop detection, correct heuristic, etc. Also, there is no FAIL test case in the samples. To check for correct failure detection (no valid path exists from start to goal), you can take any of the test cases and either reduce the energy limit, or delete one arc that is on the solution path (you may have to try several times as other solution paths may still exist, though possibly more costly). - Most of the 50 test cases given for training run in < 1 second with our reference code, with a few running in up to 3 seconds.
如有需要,請加QQ:99515681 或WX:codehelp

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:代寫CSCI 1170 Lab 2
  • 下一篇:代做EEE6207、代寫 c/c++語言程序
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開團(tuán)工具
    出評(píng) 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場巴士4號(hào)線
    合肥機(jī)場巴士4號(hào)線
    合肥機(jī)場巴士3號(hào)線
    合肥機(jī)場巴士3號(hào)線
    合肥機(jī)場巴士2號(hào)線
    合肥機(jī)場巴士2號(hào)線
    合肥機(jī)場巴士1號(hào)線
    合肥機(jī)場巴士1號(hào)線
  • 短信驗(yàn)證碼 豆包 幣安下載 AI生圖 目錄網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                91麻豆精品久久久久蜜臀| 亚洲精品伦理在线| 日韩一级黄色大片| 日本一道高清亚洲日美韩| 欧美一级免费大片| 青青草原综合久久大伊人精品| 欧美日本一道本| 国内外精品视频| 亚洲三级在线免费| 欧美日韩精品系列| 国产成人综合网站| 亚州成人在线电影| 国产亚洲精品超碰| 欧美日韩一区精品| 国产一区二区伦理| 一区二区三区四区亚洲| 91麻豆精品国产无毒不卡在线观看| 久久国产精品一区二区| 一区二区三区在线免费| 欧美大白屁股肥臀xxxxxx| 国产中文一区二区三区| 亚洲精品高清在线观看| 日韩片之四级片| 91麻豆免费观看| 另类小说一区二区三区| 亚洲欧洲日韩女同| 日韩精品在线看片z| 国产成人精品一区二区三区网站观看| 亚洲精品欧美综合四区| 久久久久久免费毛片精品| 欧美亚洲国产一区在线观看网站| 黄色小说综合网站| 亚洲夂夂婷婷色拍ww47| 欧美国产一区二区| 日韩欧美亚洲一区二区| 色狠狠色狠狠综合| 丁香婷婷综合激情五月色| 亚洲欧美电影一区二区| 2023国产精品| 日韩女优av电影在线观看| 97精品久久久午夜一区二区三区| 久久er99精品| 午夜国产不卡在线观看视频| 中文字幕不卡一区| 久久夜色精品一区| 日韩欧美一级片| 欧美日韩国产色站一区二区三区| 成人永久免费视频| 国产在线播精品第三| 日本欧美一区二区| 一区二区三区在线观看国产| 日本一区二区三区免费乱视频| 欧美美女黄视频| 欧美情侣在线播放| 色婷婷av一区二区| 99久久精品久久久久久清纯| 久久99在线观看| 日本不卡的三区四区五区| 亚洲尤物视频在线| 一区二区三区免费| 亚洲激情五月婷婷| 亚洲免费毛片网站| 亚洲免费在线电影| 亚洲乱码国产乱码精品精可以看| 亚洲国产精华液网站w| 国产亚洲欧洲997久久综合| 精品嫩草影院久久| 精品电影一区二区三区| 日韩色视频在线观看| 欧美成人激情免费网| 精品国产亚洲在线| 久久精品视频在线看| 国产精品女上位| 中文字幕一区二区在线播放 | 国产麻豆精品一区二区| 国产美女视频一区| 国精产品一区一区三区mba桃花 | 欧美在线观看视频一区二区| 欧美影院精品一区| 宅男噜噜噜66一区二区66| 日韩欧美中文字幕一区| 久久久久免费观看| 亚洲欧美视频在线观看视频| 1024成人网| 亚洲国产精品自拍| 精品乱人伦一区二区三区| 亚洲国产精品t66y| 亚洲综合色噜噜狠狠| 偷拍日韩校园综合在线| 国产精品白丝jk白祙喷水网站 | 91猫先生在线| 91精品一区二区三区久久久久久 | 日本亚洲视频在线| 国产99久久久精品| 欧美亚洲动漫制服丝袜| 2020日本不卡一区二区视频| 蜜臀久久99精品久久久画质超高清 | 精品日韩一区二区三区免费视频| 久久精品夜色噜噜亚洲a∨| 亚洲欧美另类小说视频| 麻豆精品久久久| av在线播放不卡| 欧美一区二区女人| 日韩久久一区二区| 国产伦精一区二区三区| 777午夜精品免费视频| 国产精品入口麻豆九色| 免费国产亚洲视频| 91精品国产综合久久精品app | 一区二区三区日韩精品视频| 另类小说综合欧美亚洲| 在线精品视频免费播放| 国产精品三级在线观看| 精品亚洲成a人| 欧美日韩国产高清一区二区三区| 亚洲国产精品二十页| 激情综合色丁香一区二区| 欧美日韩情趣电影| 伊人色综合久久天天人手人婷| 麻豆成人在线观看| 欧美日韩成人一区| 一片黄亚洲嫩模| 99久久久免费精品国产一区二区| xfplay精品久久| 男男视频亚洲欧美| 精品视频在线视频| 亚洲国产精品久久久久婷婷884 | 久久99国产精品免费网站| 欧美三级视频在线| 一区二区三区美女| 欧美三区在线视频| 亚洲国产美女搞黄色| 成人激情电影免费在线观看| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 成人国产一区二区三区精品| 国产色产综合产在线视频| 久久国产精品99久久人人澡| 日韩一区二区高清| 极品少妇一区二区| 精品卡一卡二卡三卡四在线| 精品伊人久久久久7777人| www亚洲一区| 国产不卡免费视频| 国产精品午夜电影| 色先锋资源久久综合| 亚洲欧美色一区| 在线观看国产日韩| 日本伊人色综合网| 久久久久久久久免费| 成人综合在线网站| 亚洲激情中文1区| 欧美日韩和欧美的一区二区| 丝袜美腿亚洲综合| 久久综合久久鬼色| 91亚洲国产成人精品一区二三| 亚洲男女毛片无遮挡| 欧美裸体bbwbbwbbw| 国内成人免费视频| 中文字幕日韩精品一区| 欧美日韩久久久久久| 九九在线精品视频| 国产精品动漫网站| 3d动漫精品啪啪| 99久久精品免费| 久久成人免费网站| 亚洲女人****多毛耸耸8| 欧美久久久久久久久久| 国产福利91精品一区二区三区| 亚洲三级在线观看| 精品久久久久久无| 色中色一区二区| 久久99精品一区二区三区| 亚洲欧洲精品一区二区三区| 91精品国产综合久久精品app| 国产精品自拍网站| 婷婷中文字幕一区三区| 国产精品色婷婷| 精品国产一区二区三区av性色| 色综合中文字幕| 国产成人a级片| 蜜桃视频在线一区| 一区二区三区中文字幕在线观看| 欧美一区二区三区啪啪| 成人av资源在线观看| 奇米影视7777精品一区二区| 亚洲自拍都市欧美小说| 国产精品乱码人人做人人爱| 日韩欧美一区二区视频| 色综合久久综合| 成人亚洲精品久久久久软件| 青青青伊人色综合久久| 亚洲福中文字幕伊人影院| 国产欧美久久久精品影院| 亚洲精品在线观看网站| 欧美日韩精品一区二区天天拍小说| 成a人片国产精品| 粉嫩av亚洲一区二区图片| 国产一区二区免费看| 日本va欧美va欧美va精品| 亚洲成av人片在线观看无码|