91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

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

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++設計編程代做
  • 下一篇:菲律賓旅游簽能出境留學嗎(留學簽證如何辦理)
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    国内久久精品视频| 国产精品毛片在线看| 麻豆精品在线看| 亚洲国产精品一区二区久久恐怖片| 国产亚洲欧美在线| 久久久亚洲高清| 欧美xxx久久| 日韩免费观看高清完整版在线观看| 欧美一级欧美一级在线播放| 欧美日韩免费观看一区二区三区| 91久久精品一区二区三| 91国偷自产一区二区三区成为亚洲经典 | 精品sm捆绑视频| 精品女同一区二区| 精品成人一区二区三区四区| 精品欧美黑人一区二区三区| 久久久久久99精品| 国产精品麻豆网站| 亚洲伊人色欲综合网| 日本中文在线一区| 国产精品77777| 91免费观看在线| 伊人影院久久| 欧美一级精品在线| 欧美成人伊人久久综合网| 国产网站一区二区三区| 国产精品白丝在线| 亚洲一区二区欧美| 久久狠狠亚洲综合| 99国产精品视频免费观看| 狠狠色丁香久久综合频道 | 国产日韩av一区二区| 亚洲免费观看在线视频| 亚洲成人一区在线| 国产一区二区精品久久99| gogo大胆日本视频一区| 在线视频观看日韩| 91久久精品国产91性色tv| 日韩亚洲欧美在线| 国产精品久久久久久久久晋中| 亚洲欧美色图小说| 激情综合五月天| 色综合欧美在线视频区| 亚洲色图自拍| 欧美精品v日韩精品v韩国精品v| 久久久91精品国产一区二区精品 | 欧美激情第8页| 老色鬼久久亚洲一区二区| 精品久久免费看| 亚洲一区二区成人在线观看| 国产大陆a不卡| 国产一区二区久久久| 欧美一区二区日韩一区二区| 亚洲欧美一区二区三区极速播放| 久久99久久精品欧美| 欧美日韩一区自拍| 欧美日精品一区视频| 中文字幕av一区二区三区免费看| 天天av天天翘天天综合网| 91亚洲精品久久久蜜桃网站| 麻豆成人在线播放| 欧美国产97人人爽人人喊| 日韩国产欧美在线观看| 老司机免费视频一区二区三区| 香蕉乱码成人久久天堂爱免费| 97精品国产97久久久久久久久久久久| 黄色成人91| 在线视频亚洲一区| 26uuu欧美| 亚洲一区日韩精品中文字幕| 国产精品一区二区在线观看网站| 99久久er热在这里只有精品15 | 国产成人综合精品三级| 伊人狠狠色j香婷婷综合| 欧美日韩一区二区在线观看| www激情久久| 国产主播一区| 色婷婷一区二区| 国产香蕉久久精品综合网| 午夜精品一区二区三区免费视频 | 成人av免费在线观看| 亚洲一区三区视频在线观看| 欧美mv和日韩mv国产网站| 午夜精品福利久久久| 91免费在线看| 久久一二三区| 性感美女久久精品| 精品不卡一区| 日韩视频免费观看高清完整版在线观看| 国产精品久久久久久久久晋中 | 国产九色sp调教91| 欧美亚洲三区| 亚洲国产精品精华液2区45| 蜜臀av在线播放一区二区三区| 欧美日韩高清在线一区| 美女诱惑一区| 欧美精品一区二区三| 另类小说欧美激情| 国产精品一国产精品k频道56| 欧美精品一二三四| 日韩精品欧美精品| 91美女在线观看| 在线不卡免费欧美| 日韩精品电影在线| 一区二区三区高清视频在线观看| 国产亚洲一区二区三区在线观看| 国产一区福利在线| 色狠狠av一区二区三区| 亚洲精品免费在线观看| 欧美精品国产一区| 69p69国产精品| 日韩中文字幕一区二区三区| 91久久中文| 日韩一区欧美小说| 欧美极品一区| 久久久久国色av免费看影院| 岛国av在线一区| 欧美精品粉嫩高潮一区二区| 一卡二卡欧美日韩| 激情av一区| 国产精品国产三级国产aⅴ入口| 99re这里都是精品| 久久久久久久综合| 91污片在线观看| 精品av综合导航| 欧美在线网址| 中文字幕av一区 二区| 欧美精品色综合| 国产精品一区二区在线观看不卡| 精品视频免费看| 国产麻豆视频一区二区| 91精品在线麻豆| 大陆成人av片| 久久久久久久综合日本| 欧美久久久久| 久久综合久久鬼色| 国产欧美一级| 丝袜美腿高跟呻吟高潮一区| 色婷婷av一区二区三区大白胸| 青娱乐精品视频| 91精品国产全国免费观看 | 久久久久网站| 久久99这里只有精品| 26uuu成人网一区二区三区| 欧美激情日韩| 一级做a爱片久久| 色婷婷综合视频在线观看| 激情综合色综合久久综合| 欧美一级一区二区| 欧美精品一线| 国产精品久久久久久户外露出| 91黄色在线观看| 成人手机在线视频| 中文字幕一区免费在线观看| 国产精品美女黄网| 亚洲成a人v欧美综合天堂下载| 精品视频一区 二区 三区| 91啪亚洲精品| 亚洲电影视频在线| 正在播放亚洲一区| 欧美成人首页| 一区二区三区在线观看视频| 欧美唯美清纯偷拍| 欧美国产91| 图片区小说区国产精品视频| 欧美一区二区三区播放老司机| 欧美人与禽猛交乱配视频| 亚洲午夜一二三区视频| 亚洲欧美国产不卡| 美女视频一区在线观看| 国产日韩欧美精品综合| 久久久噜噜噜久久狠狠50岁| 福利91精品一区二区三区| 亚洲视频一区二区在线观看| 久久久久久久欧美精品| 成人av网址在线| 亚洲欧洲成人精品av97| 精品三级在线看| 久久久久一区二区| 欧美 日韩 国产在线| 男女男精品视频| 国产精品免费视频一区| 欧美色精品在线视频| 女女同性精品视频| www.日韩大片| 丝袜亚洲另类欧美| 中文字幕在线观看不卡| 欧美一区二区精美| 亚洲欧美日韩在线观看a三区| 91最新地址在线播放| 一个色妞综合视频在线观看| 国产日产欧产精品推荐色| 久久国产日本精品| 黑丝一区二区| 成人午夜私人影院| 蜜芽一区二区三区| 亚洲老妇xxxxxx| 日韩一区二区三区在线| 一区二区国产精品| 极品日韩av|