日韩精品一区二区三区高清_久久国产热这里只有精品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++設計編程代做
  • 下一篇:菲律賓旅游簽能出境留學嗎(留學簽證如何辦理)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 酒店vi設計 deepseek 幣安下載 AI生圖 AI寫作 aippt AI生成PPT 阿里商辦

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

    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>
        欧美日韩色一区| 欧美激情视频一区二区三区在线播放| 欧美日韩成人综合天天影院| 欧美久久久久久蜜桃| 午夜精品久久久久久久久| 国产精品一区二区三区四区五区| 欧美日韩中文字幕在线视频| 亚洲大片精品永久免费| 国产欧美综合在线| 国产一区二区三区久久久| 国产视频久久久久久久| 国产精品久久久久毛片大屁完整版| 欧美超级免费视 在线| 噜噜噜在线观看免费视频日韩| 久久久久久久尹人综合网亚洲| 欧美成ee人免费视频| 国产欧美日本在线| 欧美日韩视频在线一区二区| 亚洲女女女同性video| 亚洲第一偷拍| 在线成人激情黄色| 在线观看国产成人av片| 欧美精品不卡| 国产精品美女黄网| 久久综合狠狠综合久久综青草| 久久综合福利| 日韩视频精品在线观看| 欧美国产另类| 免费成人网www| 欧美日韩在线免费视频| 国产九九精品视频| 亚洲一区二区三区成人在线视频精品| 在线观看中文字幕不卡| 亚洲视频高清| 欧美色视频在线| 国产在线日韩| 亚洲激情欧美| 国产精品久久久久天堂| 欧美日韩大片一区二区三区| 一区二区在线观看视频| 欧美日韩国产美| 欧美精品一区二区三区一线天视频| 久久精品国产清自在天天线| 国产亚洲在线| 亚洲一区二区成人| 国产亚洲精品aa午夜观看| 亚洲影院一区| 欧美日韩精品免费观看视频完整| 红杏aⅴ成人免费视频| 午夜精品久久久久久久99樱桃| 91久久极品少妇xxxxⅹ软件| 亚洲男人的天堂在线| 在线精品视频在线观看高清| 亚洲精品日韩综合观看成人91| 在线亚洲精品| 在线一区二区三区做爰视频网站| 日韩视频精品在线| 一区二区亚洲精品| 一区二区免费在线播放| 精品99一区二区三区| 日韩西西人体444www| 一区二区三区在线视频播放| 亚洲婷婷综合久久一本伊一区| 欧美午夜电影在线观看| 亚洲少妇最新在线视频| 久久综合精品国产一区二区三区| 在线欧美日韩精品| 欧美日韩1区2区| 欧美伊人久久久久久午夜久久久久| 久久国产天堂福利天堂| 欧美乱大交xxxxx| 国产精品日韩久久久| 久久人人看视频| 欧美成人精品1314www| 亚洲最新视频在线| 久久xxxx精品视频| 欧美午夜精品一区二区三区| 亚洲精品护士| 一区二区三区免费网站| 亚洲一区一卡| 国产伦精品一区二区三区高清| 欧美成人中文字幕| 榴莲视频成人在线观看| 亚洲综合大片69999| 欧美日韩成人综合天天影院| 亚洲成人在线视频网站| 99在线精品免费视频九九视| 亚洲人精品午夜在线观看| 国产精品揄拍一区二区| 在线日韩精品视频| 蜜桃av一区二区三区| 夜夜爽99久久国产综合精品女不卡| 亚洲国产综合在线看不卡| 国产精品视频最多的网站| 欧美日韩国产在线看| 久久精品电影| 国产色婷婷国产综合在线理论片a| 亚洲色无码播放| 欧美中文字幕第一页| 亚洲国产1区| 蜜桃伊人久久| 国外精品视频| 国产午夜精品久久久| 最新69国产成人精品视频免费| 亚洲第一精品久久忘忧草社区| 国产美女精品人人做人人爽| 亚洲欧洲在线播放| 亚洲欧美日韩精品久久亚洲区| 国产欧美日韩一区二区三区在线| 国产精品成人一区二区三区吃奶| 亚洲免费久久| 一本色道久久| 韩日精品在线| 欧美一区二区在线免费观看| 国产日韩欧美夫妻视频在线观看| 欧美日韩国产欧| 亚洲国产精品久久久久婷婷老年| 一区二区三区中文在线观看| 久久精品99无色码中文字幕| 亚洲国产福利在线| 亚洲网站在线观看| 乱人伦精品视频在线观看| 欧美四级在线观看| 一本色道久久88综合日韩精品| 国产精品美女久久久久aⅴ国产馆| 欧美中文字幕久久| 性感少妇一区| 巨胸喷奶水www久久久免费动漫| 国产亚洲精品高潮| 亚洲福利电影| 亚洲欧洲在线观看| 久久亚洲国产精品日日av夜夜| 欧美激情日韩| 国产精品成人av性教育| 亚洲精品一区中文| 国产精品v欧美精品v日韩精品| 一区二区国产在线观看| 国产酒店精品激情| 欧美亚洲成人网| 国产日韩亚洲欧美精品| 狠狠操狠狠色综合网| 亚洲精品色婷婷福利天堂| 久久久免费观看视频| 国产精品99久久久久久白浆小说| 欧美精品亚洲精品| 女人香蕉久久**毛片精品| 国产欧美视频一区二区| 亚洲国产人成综合网站| 国产精品地址| 免费日韩视频| 欧美freesex8一10精品| 欧美一区成人| 久久人人看视频| 欧美午夜精品理论片a级大开眼界| 麻豆精品视频在线观看| 欧美极品在线观看| 夜夜爽99久久国产综合精品女不卡| 国产欧美亚洲一区| 亚洲最快最全在线视频| 亚洲福利视频二区| 一区二区不卡在线视频 午夜欧美不卡'| 久久久久国产一区二区三区| 欧美成人在线免费视频| 在线观看日韩国产|