日韩精品一区二区三区高清_久久国产热这里只有精品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>
        禁久久精品乱码| 欧美日韩国产成人在线免费| 亚洲中字在线| 亚洲一区免费| 亚洲高清一二三区| 狠狠久久综合婷婷不卡| 日韩亚洲欧美一区| 欧美 日韩 国产精品免费观看| 一区二区亚洲欧洲国产日韩| 快she精品国产999| 国产欧美亚洲一区| 国产噜噜噜噜噜久久久久久久久| 亚洲一区二区在线播放| 黄网站免费久久| 国外成人免费视频| 亚洲激情六月丁香| 99国产精品久久久久久久久久| 亚洲国产欧美久久| 国产精品久久久久影院亚瑟| 亚洲电影免费观看高清完整版在线观看| 欧美精品性视频| 香蕉av福利精品导航| 午夜精品久久久久久久99樱桃| 欧美日韩一区二区三区免费看| 亚洲人成小说网站色在线| 一区二区不卡在线视频 午夜欧美不卡在| 蜜桃av一区二区| 欧美日韩一区二区在线| 亚洲日本中文字幕免费在线不卡| 国产欧美一区二区在线观看| 久久国产精品久久w女人spa| 久久国产视频网站| 亚洲国产精品久久久久秋霞蜜臀| 欧美在线关看| 雨宫琴音一区二区在线| 国产精品久久亚洲7777| 一本色道精品久久一区二区三区| 亚洲网在线观看| 蜜桃伊人久久| 国产精品久久午夜夜伦鲁鲁| 欧美午夜宅男影院在线观看| 一区二区三区视频在线看| 亚洲国产岛国毛片在线| 最新亚洲电影| 亚洲精品一区二区三| 国产女主播一区二区三区| 欧美日韩国产色站一区二区三区| 久久噜噜亚洲综合| 99re6这里只有精品视频在线观看| 一本色道久久综合狠狠躁的推荐| 久久久久久高潮国产精品视| 亚洲国产天堂久久国产91| 午夜欧美理论片| 美腿丝袜亚洲色图| 黄色日韩网站视频| 欧美激情亚洲一区| 欧美午夜宅男影院在线观看| 欧美日韩免费一区二区三区| 在线不卡中文字幕| 欧美日韩午夜剧场| 国模套图日韩精品一区二区| 午夜一级在线看亚洲| 国产亚洲成人一区| 亚洲精品一区二区三区蜜桃久| 欧美成人亚洲成人| 久久人体大胆视频| 国产一区二区看久久| 国产精品一区二区在线观看网站| 欧美高清自拍一区| 伊人久久大香线蕉综合热线| 午夜精品久久久久久久久久久久久| 亚洲日韩欧美视频一区| 麻豆国产精品777777在线| 亚洲精品欧美日韩| 国产精品99久久不卡二区| 国产精品一区亚洲| 一区二区三区产品免费精品久久75| 国内精品久久久久久影视8| 亚洲人成小说网站色在线| 狠狠色丁香婷婷综合影院| 亚洲毛片网站| 在线观看成人一级片| 亚洲免费av网站| 国内外成人免费激情在线视频网站| 亚洲另类一区二区| 麻豆精品精品国产自在97香蕉| 欧美成人综合| 国产精品美女xx| 免费美女久久99| 亚洲一区成人| 女女同性精品视频| 国产精品男gay被猛男狂揉视频| 欧美成人免费大片| 精品av久久久久电影| 尤物精品国产第一福利三区| 国产精品日韩一区二区三区| 久久国产福利| 在线视频成人| 亚洲电影免费观看高清| 亚洲国产免费| 欧美在线精品免播放器视频| 欧美成人a视频| 欧美色综合网| 在线性视频日韩欧美| 一区二区日韩精品| 亚洲精品一区二区三区四区高清| 欧美日韩一区视频| 亚洲视频图片小说| 久久米奇亚洲| 国产日韩欧美精品一区| 看欧美日韩国产| 亚洲精品国产系列| 久久大香伊蕉在人线观看热2| 亚洲婷婷在线| 欧美福利小视频| 国产一区二区三区四区在线观看| 欧美韩日亚洲| 国产亚洲美州欧州综合国| 国产午夜精品美女视频明星a级| 久久综合久久综合久久| 老司机精品视频网站| 一本久久综合亚洲鲁鲁五月天| 亚洲永久免费视频| 久久免费视频这里只有精品| 日韩视频第一页| 欧美日韩精品一区二区天天拍小说| 欧美日韩视频专区在线播放| 欧美剧在线免费观看网站| 欧美成人一区二区在线| 欧美国产亚洲视频| 欧美精品在线免费观看| 久久国产精品免费一区| 99国产精品久久久久久久| 欧美视频在线观看免费| 欧美激情一区二区三区四区| 亚洲激情视频在线观看| 欧美三级黄美女| 亚洲精品一区在线| 国产日韩在线亚洲字幕中文| 欧美极品在线播放| 一区二区高清视频| 国产精品一区二区在线观看网站| 国产精品亚洲网站| 欧美黄色影院| 亚洲天堂激情| 亚洲图片欧洲图片日韩av| 精品1区2区| 欧美亚洲免费在线| 久久精品在这里| 狠狠色丁香婷婷综合久久片| 99视频超级精品| 亚洲黄色高清| 国产精品盗摄一区二区三区| 亚洲影院色在线观看免费| 欧美成人福利视频| 好看的日韩av电影| 六月天综合网| 久久综合狠狠综合久久综合88| 国产日本欧美一区二区| 亚洲伦伦在线| 亚洲国产天堂久久综合| 亚洲欧洲另类| 欧美一区二区三区四区夜夜大片| 精品88久久久久88久久久|