美文网首页
CSI2120作业代做、代写Java课程设计作业、Program

CSI2120作业代做、代写Java课程设计作业、Program

作者: zhachunai | 来源:发表于2019-03-11 15:48 被阅读0次

    Assignment 0CSI2120 Programming ParadigmsWinter 2019Part 2 and 3 due on March 15th before 11:00 pm in Virtual Campus[6 marks]Problem DescriptionSee the separate problem description first.Part 2: Concurrent solution (Go) [3 marks]The next step in the comprehensive assignment is to code the Stepping Stone method in Go. The maindifference in your Go solution compared to the Java solution is that classes are replaced by structs andmethods. You are free to change the structure of your program, i.e., your Go program does not have tofollow the design of your Java program.You are allowed to use the initial solution as created by your Java program (or by other means, e.g.,manually or with another solver). Your Go program should ask the user to specify a text file containingthe description of the problem (same as before for your Java code) and, different than before, for a textfile containing an initial solution. Your Go program should then find an optimal solution (table includingminimal cost) and write it to a text file named solution.txtIn addition, your program must use Go routines to find the solution using concurrency. You must createa function to get the marginal cost of a path from an empty cell.marginalCost (cell Cell, result channel Path)This will allow you to run the marginalCost function concurrently for all empty cells of the currentiteration using the go keyword. Next, your program identifies the path and performs a new iteration.You must submit your Go source code well commented, in which all types and methods created areclearly described. CSI 2120 page 2_________________________________________________________________________________________________Part 3: Logic solution (Prolog) [3 marks]The next step in the comprehensive assignment is to code the Stepping Stone method in Prolog. It seemsnatural to approach the problem with a generate-and-test approach. However, you are free to choose thestructure of your program, i.e., your Prolog program does not have to use a generate-and-test approachnor does it need to follow the design of your Java or Go program.For Prolog, you are again allowed to use the initial solution as created by your Java program (or by othermeans, e.g., manually or with another solver). Your predicate should expect as input two file names:One filename of a text file containing the description of the problem and a second text file containing theinitial solution (same as before for your Go code). Your Prolog program should then find an optimalsolution (table including minimal cost) and write it to a text file named solution.txt. Please name yourtop-level predicate:minimumTransportCost(‘input.txt’, ‘initial.txt’, Cost)This predicate will need to accept two file names and will be true if Cost is minimal for the specifiedproblem. Note that Cost is intended as output.You must submit your Prolog source code well commented. Each helper predicate has to have a cleardescription when it is true.Note that a file to list reader is available from the general problem description page. 本团队核心人员组成主要包括硅谷工程师、BAT一线工程师,精通德英语!我们主要业务范围是代做编程大作业、课程设计等等。我们的方向领域:window编程 数值算法 AI人工智能 金融统计 计量分析 大数据 网络编程 WEB编程 通讯编程 游戏编程多媒体linux 外挂编程 程序API图像处理 嵌入式/单片机 数据库编程 控制台 进程与线程 网络安全 汇编语言 硬件编程 软件设计 工程标准规等。其中代写编程、代写程序、代写留学生程序作业语言或工具包括但不限于以下范围:C/C++/C#代写Java代写IT代写Python代写辅导编程作业Matlab代写Haskell代写Processing代写Linux环境搭建Rust代写Data Structure Assginment 数据结构代写MIPS代写Machine Learning 作业 代写Oracle/SQL/PostgreSQL/Pig 数据库代写/代做/辅导Web开发、网站开发、网站作业ASP.NET网站开发Finance Insurace Statistics统计、回归、迭代Prolog代写Computer Computational method代做因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com 微信:codehelp

    相关文章

      网友评论

          本文标题:CSI2120作业代做、代写Java课程设计作业、Program

          本文链接:https://www.haomeiwen.com/subject/aijbpqtx.html