日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

COMP1039代做、代寫Java程序語言

時間:2024-05-07  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



COMP1039 Coursework 2 (15 Marks) 
Release Date: 8 April 2024 18:00 
Deadline: 6 May 2024 18:00 
 
Your Task 
 
A farmer with his wolf, goat, and cabbage come to the edge of a river they wish to cross. There is 
a boat at the river’s edge, but, of course, only the farmer can row it. The boat also can carry only 
two things (including the rower) at a time. If the wolf is ever left alone with the goat, the wolf will 
eat the goat; similarly, if the goat is left alone with the cabbage, the goat will eat the cabbage. 
Implement the problem in Haskell, and use a search algorithm to find the solution. 
 
Suppose that the function is called solutionPath. The initial state is ['w', 'w', 'w', 
'w'], in which the four w’s represent the position of the farmer, wolf, goat, and cabbage 
respectively, at the west bank of the river. The final state is ['e', 'e', 'e', 'e'] in which 
the four e’s represent the position of the farmer, wolf, goat, and cabbage respectively, at the east 
bank of the river. 
 
We can apply the function to find the solution path as follows: 
 
solutionPath [['w', 'w', 'w', 'w'], ['e', 'e', 'e', 'e']] 
 
One possible returned solution path is as follows: 
 
The solution path is interpreted as follows: 
 
[ F, W, G, C ] [ Farmer, Wolf, Goat, Cabbage ] 
['w', 'w', 'w', 'w'] Farmer, Wolf, Goat, and Cabbage are at the west bank of the river 
['e', 'w', 'e', 'w'] Farmer takes the Goat across to the east bank 
['w', 'w', 'e', 'w'] Farmer returns to the west bank alone 
['e', 'e', 'e', 'w'] Farmer takes the Wolf across to the east bank 
['w', 'e', 'w', 'w'] Farmer returns with the Goat to the west bank 
['e', 'e', 'w', 'e'] Farmer takes the Cabbage across to the east bank 
['w', 'e', 'w', 'e'] Farmer returns alone to the west bank 
['e', 'e', 'e', 'e'] Farmer takes the Goat across to the east bank 
Finally, all four of them are at the east bank.  
Your Submission 
 
Please ensure that your report is formatted in Microsoft Word and contains the following sections: 
 
Section A: Solving the Farmer Crosses River Puzzle using State Space Search (4 marks) 
In this section, provide an explanation in no more than 500 words on how you can solve the Farmer 
Crosses River puzzle using the state space search problem-solving technique. Utilize a figure to 
illustrate clearly how your search algorithm traverses either a tree or a graph. 
 
Section B: Haskell Source Code (4 marks) 
Include your Haskell program without any remarks/comments. Your program will be evaluated 
based on the following criteria: 
• Correctness: The program should produce the required output with correct input. 
• Conciseness: Aim for brevity while ensuring the program meets the required specifications. 
• Adherence to Functional Programming Practices: The code should follow good functional 
programming practices. 
• Utilization of List Structure: Represent the problem states using list structure ([F, W, G, C] 
as demonstrated). 
 
Section C: Experimentation with the Program (Input-Output Sessions) (4 marks) 
Include up to 5 screenshots showcasing the output of your experiments. These screenshots should 
depict the solution paths generated when given initial and final states as input. Your program will 
be assessed based on the following features: 
 
• Ability to generate all possible solution paths, representing safe ways of crossing the river. 
• Effective functionality even when one or two of the wolf, goat, or cabbage are already on 
the opposite side of the river. 
• Identification of the shortest solution path. 
• Ability to inform the number of trips required to get everything across the river safely. 
 
Section D: Discussion on Solving the Same Problem in OOP Way (3 marks) 
Provide an explanation in no more than 300 words on how you can solve the Farmer Crosses River 
puzzle in Object-Oriented Programming way using Java. You should compare and contrast them 
in terms of programming styles (not syntax), such as inheritance, polymorphism, function 
overloading, as well as the imperative and declarative nature of the paradigms. 
Submission Instructions 
 
There are two files to be submitted: a report in Microsoft Word (e.g., Report.docx), and a Haskell 
program source file (e.g., Farmer.hs). Please ensure that all your files are compressed into a single 
zip file. The file should be named according to the following format: STUDENTID_NAME.zip 
(e.g., 20514000_Danting_Wang.zip). 
 
Once your files are organized and zipped, submit the zip file onto the Moodle page. Note that each 
subsequent submission will overwrite the previous one. If you submit multiple times, please verify 
that your last submission includes all the necessary files. 
 
After submission, please review your submission to ensure that it is complete and executable. Past 
experiences have shown that submitted files may occasionally be corrupted. You will receive a 
zero mark if your submitted file is corrupted or not executable. 
 
For late submissions, the standard late submission policy applies, resulting in a 5% deduction for 
every 24-hour period, including weekends and public holidays. 

Plagiarism 
If you utilize code sourced from a textbook or the internet, you must acknowledge its origin. 
Plagiarism detection tools will be employed to check for similarities between submissions and the 
online content. We would like to remind you of the School's Policy on Plagiarism. While recent 
advancements in AI and large language models (LLMs) such as ChatGPT have presented good 
opportunities of using them, it is crucial to note that the University considers the use of such 
technologies as potentially constituting misconduct. 
 
 Recommended Learning Materials 
 
Welcome to the Farmer, Wolf, Goat, and Cabbage Problem 
https://www.d.umn.edu/~gshute/cs2511/slides/javascript/code/solve/solve.html 
There is a simple animation to help you understand the Farmer Crosses River puzzle better, before 
you start to implement a solution. 
 
AI Algorithms, Data Structures, and Idioms in Prolog, Lisp, and Java 
https://www.cse.sc.edu/~mgv/csce580sp15/Luger_0136070**7_1.pdf 
There is a good discussion about implementing the Farmer Crosses River puzzle using Prolog 
(logic programming), Lisp (functional programming), and Java (object-oriented programming). 
 
Graph theory: wolf, sheep and cabbage 
https://www.youtube.com/watch?v=pBT-8gqhHzo 
This videoclip provides a simple and easy to understand presentation on how to solve the Farmer 
Crosses River puzzle using a graph search method. 
 
Goat, cabbage, wolf 
https://www.uni-weimar.de/fileadmin/user/fak/medien/professuren/Webis/teaching/ws14/searchalgorithms/wolf-goat-cabbage.html

There is a good discussion on how to formulate the Farmer Crosses River puzzle as a search 
problem. 
 
A little bit of Lisp 

There is a discussion about the Farmer Crosses River puzzle in Lisp. 
 請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp













 

掃一掃在手機打開當前頁
  • 上一篇:代寫COMP282 程序、C++設計編程代做
  • 下一篇:菲律賓旅游簽能出境留學嗎(留學簽證如何辦理)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
  • 短信驗證碼 豆包 幣安下載 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        欧美亚洲在线播放| 国产一级揄自揄精品视频| 久久亚洲欧美| 一区二区三区毛片| 99热这里只有精品8| 欧美在线综合视频| 亚洲一区尤物| 好吊色欧美一区二区三区视频| 亚洲欧美卡通另类91av| 亚洲精品一区二区三区不| 欧美日韩视频一区二区三区| 夜夜嗨av一区二区三区四季av| 国产精品嫩草99av在线| 美女露胸一区二区三区| 女人色偷偷aa久久天堂| 日韩视频一区二区三区在线播放| 狠狠v欧美v日韩v亚洲ⅴ| 欧美日本韩国一区二区三区| 亚洲视频在线观看一区| 亚洲精品一区二区在线| 久久亚洲欧美| 一区二区三区 在线观看视频| 欧美午夜女人视频在线| 国产精品久久久99| 欧美高清视频在线观看| 欧美日韩不卡视频| 欧美日韩中国免费专区在线看| 国产精品女同互慰在线看| 精品91久久久久| 国产精品爽爽ⅴa在线观看| 欧美日韩在线一二三| 亚洲一区在线播放| 国产精品二区影院| 欧美韩国日本综合| 亚洲精品久久久久久一区二区| 中文一区字幕| 好看不卡的中文字幕| 国产精品久久久久久久久久免费看| 国产精品一区免费在线观看| 亚洲区免费影片| 亚洲免费电影在线| 亚洲人成网在线播放| 欧美日韩免费一区二区三区视频| 欧美日韩精品一二三区| 在线观看欧美视频| 国产原创一区二区| 国产乱码精品一区二区三区五月婷| 亚洲精品少妇30p| 亚洲一区二区三区涩| 亚洲人成绝费网站色www| 国产精品视频网| 国产农村妇女精品一区二区| 欧美福利电影在线观看| 亚洲自拍偷拍一区| 久久久高清一区二区三区| 精品动漫一区二区| 国产精品性做久久久久久| 国产乱码精品一区二区三| 激情五月综合色婷婷一区二区| 日韩视频在线观看免费| 99pao成人国产永久免费视频| 亚洲一区久久| 久久五月激情| 正在播放欧美视频| 亚洲欧美日韩第一区| 一区福利视频| 夜色激情一区二区| 欧美日韩国产综合网| 狠狠色伊人亚洲综合网站色| 美女亚洲精品| 在线成人h网| 亚洲欧洲中文日韩久久av乱码| 国产精品女人久久久久久| 亚洲国产欧美日韩| 欧美一区二区三区精品电影| 一本色道久久综合精品竹菊| 国产一区二区三区四区五区美女| 99国内精品久久久久久久软件| 欧美日韩国产高清| 欧美日韩国产综合新一区| 久久精品一区中文字幕| 美日韩免费视频| 狠狠88综合久久久久综合网| 国产精品亚洲综合色区韩国| 国产午夜精品美女毛片视频| 亚洲国产精品福利| 亚洲在线观看视频网站| 久久国产99| 国产婷婷成人久久av免费高清| 久久精品视频va| 国产精品高清在线观看| 久久久久久久网站| 欧美精品粉嫩高潮一区二区| 欧美精品一区二区三区久久久竹菊| 国产精品综合| 99国内精品久久| 亚洲免费视频成人| 激情成人综合网| 欧美成人精品| 欧美成年人网| 欧美视频不卡| 一本色道婷婷久久欧美| 欧美制服第一页| 欧美成人一区二区在线| 欧美精品手机在线| 国语自产精品视频在线看一大j8| 欧美亚洲在线播放| 欧美亚洲成人精品| 欧美午夜电影在线观看| 欧美精品在线一区| 亚洲国产日韩一区二区| 国产日韩精品综合网站| 亚洲日本无吗高清不卡| 亚洲日本电影| 亚洲欧美国产不卡| 在线看片日韩| 一区二区三区国产在线| 久久久久五月天| 久久久久九九九九| 国产亚洲欧美日韩在线一区| 国产欧美日韩另类视频免费观看| 欧美日韩精品一区二区天天拍小说| 国产精品三上| 一区二区日韩精品| 亚洲午夜精品17c| 久久久国产精品亚洲一区| 国产精品一区二区黑丝| 欧美亚洲综合另类| 国产一区在线观看视频| 国产欧美日韩免费看aⅴ视频| 欧美精品一区二区三区视频| 亚洲一区二区毛片| 91久久精品美女高潮| 亚洲欧美韩国| 久久久一区二区| 欧美色道久久88综合亚洲精品| 亚洲第一福利社区| 一区二区三区精品久久久| 好吊色欧美一区二区三区四区| 日韩视频中文字幕| 樱桃国产成人精品视频| 老司机久久99久久精品播放免费| 欧美午夜宅男影院在线观看| 国产精品免费看| 欧美日韩卡一卡二| 欧美亚洲尤物久久| 国产农村妇女精品一二区| 国产精品大片wwwwww| 久久婷婷亚洲| 亚洲日本电影| 欧美与黑人午夜性猛交久久久| 亚洲日韩视频| 一区二区三区成人精品| av成人免费在线| 鲁大师成人一区二区三区| 日韩一区二区免费高清| 国产精品永久入口久久久| 亚洲精品国产精品乱码不99| 欧美精品二区| 国内精品久久久久影院薰衣草| 在线免费观看欧美| 国产一区二区三区日韩欧美| 久久福利资源站| 亚洲精美视频|