加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

代寫 2XC3、代做 Python 設計編程

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



Computer Science 2XC3: Final Project
This project will include a final report and your code. Your final report will have the following. You will
be submitting .py (NOT *.ipynb) files for this final project.
• Title page
• Table of Content
• Table of Figures
• An executive summary highlighting some of the main takeaways of your experiments/analysis
• An appendix explaining to the TA how to navigate your code.
For each experiment, include a clear section in your lab report which pertains to that experiment. The report should look professional and readable.
PLEASE NOTE: This is the complete Part I and II. Complete Parts 1 – 5 in group. Part 6 needs to be completed individual. Please refer to the plagiarism policy in Syllabus.
Part 1 : Single source shortest path algorithms
Part 1.1: In this part you will implement variation of Dijkstra’s algorithm. It is a popular shortest path algorithm where the current known shortest path to each node is updated once new path is identified. This updating is called relaxing and in a graph with 𝑛 nodes it can occur at most 𝑛 − 1 times. In this part implement a function dijkstra (graph, source, k) which takes the graph and source as an input and where each node can be relaxed on only k times where, 0 < 𝑘 < Ү**; − 1. This function returns a distance and path dictionary which maps a node (which is an integer) to the distance and the path (sequence of nodes).
Part 1.2: Consider the same restriction as previous and implement a variation of Bellman Ford’s algorithm. This means implement a function bellman_ford(graph, source, k) which take the graph and source as an input and finds the path where each node can be relaxed only k times, where, 0 < 𝑘 < Ү**; − 1. This function also returns a distance and path dictionary which maps a node (which is an integer) to the distance and the path (sequence of nodes).
Part 1.3: Design an experiment to analyze the performance of functions written in Part 1.1 and 1.2. You should consider factors like graph size, graph. density and value of k, that impact the algorithm performance in terms of its accuracy, time and space complexity.
Part 2: All-pair shortest path algorithm
Dijkstra’s and Bellman Ford’s are single source shortest path algorithms. However, many times we are faced with problems that require us to solve shortest path between all pairs. This means that the algorithm needs to find the shortest path from every possible source to every possible destination. For every pair of vertices u and v, we want to compute shortest path 𝑑𝑖w**4;w**5;𝑎𝑛𝑐Ү**;(w**6;, w**7;) and the second-to-last vertex on the shortest path w**1;w**3;Ү**;w**7;𝑖w**0;w**6;w**4;(w**6;, w**7;). How would you design an all-pair shortest path algorithm for both positive edge weights and negative edge weights? Implement a function that can address this. Dijkstra has complexity Ɵ(𝐸 + 𝑉𝑙w**0;𝑔𝑉), or Ɵ (𝑉2) if the graph is dense and Bellman-Ford has complexity Ɵ (𝑉𝐸) , or Ɵ(𝑉3) if the graph is dense. Knowing this, what would you conclude the complexity of your two algorithms to be for dense graphs? Explain your conclusion in your report. You do not need to verify this empirically.
      
Part 3: A* algorithm
In this part, you will analyze and experiment with a modification of Dijkstra’s algorithm called the A* (we will cover this algorithm in next lecture, but you are free to do your own research if you want to get started on it). The algorithm essentially, is an “informed” search algorithm or “best-first search”, and is helpful to find best path between two given nodes. Best path can be defined by shortest path, best time, or least cost. The most important feature of A* is a heuristic function that can control it’s behavior.
Part 3.1: Write a function A_Star (graph, source, destination, heuristic) which takes in a directed weighted graph, a sources node, a destination node , and a heuristic “function”. Assume h is a dictionary which takes in a node (an integer), and returns a float. Your method should return a 2-tuple where the first element is a predecessor dictionary, and the second element is the shortest path the algorithm determines from source to destination. This implementation should be using priority queue.
Part 3.2: In your report explain the following:
• What issues with Dijkstra’s algorithm is A* trying to address?
• How would you empirically test Dijkstra’s vs A*?
• If you generated an arbitrary heuristic function (like randomly generating weights), how would
Dijkstra’s algorithm compare to A*?
• What applications would you use A* instead of Dijkstra’s?
Part 4: Compare Shortest Path Algorithms
In this part, you will compare the performance of Dijkstra’s and A* algorithm. While generating random graphs can give some insights about how algorithms might be performing, not all algorithms can be assessed using randomly generated graphs, especially for A* algorithm where heuristic function is important. In this part you will compare the performance of the two algorithms on a real-world data set. Enclosed are a set of data files that contain data on London Subway system. The data describes the subway network with about 300 stations, and the lines represent the connections between them. Represent each station as a node in a graph, and the edge between stations should exists if two stations are connected. To find weights of different edges, you can use latitude and longitude for each station to find the distance travelled between the two stations This distance can serve as the weight for a given edge. Finally, to compute the heuristic function, you can use the physical direct distance (NOT the driving distance) between the source and a given station. Therefore, you can create a hashmap or a function, which serves as a heuristic function for A*, takes the input as a given station and returns the distance between source and the given station.
Once you have generated the weighted graph and the heuristic function, use it as an input to both A* and Dijkstra’s algorithm to compare their performance. It might be useful to check all pairs shortest paths, and compute the time taken by each algorithm for all combination of stations. Using the experiment design, answer the following questions:
• When does A* outperform Dijkstra? When are they comparable? Explain your observation why you might be seeing these results.
• What do you observe about stations which are 1) on the same lines, 2) on the adjacent lines, and 3) on the line which require several transfers?
• Using the “line” information provided in the dataset, compute how many lines the shortest path uses in your results/discussion?
    
 Figure 1: London Subway Map
Part 5: Organize your code as per UML diagram
Organize you code as per the below Unified Modelling Language (UML) diagram in Figure 2. Furthermore, consider the points listed below and discuss these points in a section labelled Part 4 in your report (where appropriate).
• Instead of re-writing A* algorithm for this part, treat the class from UML as an “adapter”.
• Discuss what design principles and patterns are being used in the diagram.
• The UML is limited in the sense that graph nodes are represented by the integers. How would you
alter the UML diagram to accommodate various needs such as nodes being represented Strings or carrying more information than their names.? Explain how you would change the design in Figure 2 to be robust to these potential changes.
• Discuss what other types of graphs we could have implement “Graph”. What other implementations exist?
 
 Figure 2: UML Diagram
Part 6: Unknown Algorithm (To work on Individually)
In the code posted with this document, you will find a w**6;𝑛𝑘𝑛w**0;w**8;𝑛() function. It takes a graph as input. Do some reverse engineering. Try to figure out what exactly this function is accomplishing. You should explore the possibility of testing it on graphs with negative edge weights (create some small graphs manually for this). Determine the complexity of this function by running some experiments as well as inspecting the code. Given what this code does, is the complexity surprising? Why or why not?
 Grade Breakup:
   Part 1: Single source shortest path algorithms Part 2: All-pair shortest path algorithm
Part 3: A* algorithm
Part 4: Compare Shortest Path Algorithms
Part 5: Organize your code as per UML diagram Part 6: Unknown Algorithm
Group 25 Group 15 Group 20 Group 30 Group 10
Individual 50
Part
Submission Type
Points
                     
請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

















 

掃一掃在手機打開當前頁
  • 上一篇:代做CSE 470、djava/Python 編程
  • 下一篇:CS 2550代做、代寫SQL設計編程
  • 無相關信息
    合肥生活資訊

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

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

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

    精品一区av| 美女被久久久| 国产在线日韩精品| 韩国精品视频在线观看| 免费日韩av片| 人人精品亚洲| 亚洲专区视频| 亚洲三级免费| 嫩草伊人久久精品少妇av杨幂| 米奇777超碰欧美日韩亚洲| 亚洲图区在线| 久久综合另类图片小说| 国产经典一区| 四季av一区二区凹凸精品| 欧美成人午夜| 精品视频高潮| 激情不卡一区二区三区视频在线| 伊人久久综合网另类网站| 99精品久久久| 国产精品久久久久av电视剧| 免费成人美女在线观看.| 一本一道久久综合狠狠老| 久久国产精品色av免费看| 亚洲黄页在线观看| 亚洲网色网站| 久久精品日产第一区二区| 亚洲优女在线| 日本久久综合| 香蕉久久夜色精品国产| 欧美福利专区| 久久美女精品| 久久国产精品免费精品3p | 国产精品极品在线观看| 亚洲资源网站| 无码日韩精品一区二区免费| 一区二区中文字| 亚洲国产精品第一区二区| 久久精品免费看| 一区二区高清| 日韩黄色免费电影| 久久不卡日韩美女| 99精品国产在热久久婷婷| 国产欧美日韩一级| 日韩精品免费视频人成| 一区二区三区导航| 麻豆91在线看| 亚洲人成免费网站| 电影一区二区三区久久免费观看| 亚洲伦理久久| 欧美日本三级| 日本精品一区二区三区在线观看视频| 亚洲性视频大全| 亚洲裸色大胆大尺寸艺术写真| 亚州国产精品| 爱爱精品视频| 久久久夜精品| 欧美日韩激情| 久久一二三区| 国产欧洲在线| 亚洲四虎影院| 日日欢夜夜爽一区| 亚洲天天综合| 日韩vs国产vs欧美| 国产色噜噜噜91在线精品| 91精品一区国产高清在线gif| 国产高清一区二区| 国产亚洲午夜| 日韩欧美高清在线播放| 久久精品国产福利| 国产精品啊啊啊| 国产日韩视频在线| 成人自拍在线| 极品av少妇一区二区| 日韩专区欧美专区| 黄色精品视频| 亚洲精选成人| 亚洲尤物av| 麻豆视频一区| 日韩一区二区久久| 亚洲天堂av影院| 日日夜夜免费精品| 日韩啪啪网站| 99精品美女| 久久一二三区| 亚洲国产高清一区| 久久99影视| 麻豆精品少妇| 免费xxxx性欧美18vr| 成人在线免费电影网站| 欧美国产专区| 亚洲精品视频一二三区| 久久在线观看| 日本sm残虐另类| 天堂99x99es久久精品免费| 精品国产乱码久久久| 一本色道精品久久一区二区三区 | 国产成人高清精品免费5388| 九九久久精品| 最近高清中文在线字幕在线观看1| 国产欧美一区二区三区国产幕精品| 国产精品久久免费视频| 国产精品115| 视频一区二区三区入口| 久久精品国产一区二区| 日韩欧美中文字幕在线视频| 亚洲精品一区二区妖精| 神马久久资源| 亚洲最大在线| 欧美在线亚洲| 国产成人精品一区二区三区在线 | 精品日产乱码久久久久久仙踪林| 一区久久精品| 国产日韩欧美高清免费| av成人综合| 国产精品videosex性欧美| 中文字幕人成人乱码| 日日天天久久| 日韩久久视频| 亚洲小说图片视频| 亚洲欧美日本国产专区一区| 亚洲国产国产亚洲一二三| 精品亚洲成人| 伊人久久综合一区二区| 亚洲人成精品久久久 | 999久久久国产精品| 亚洲精品mv| 日韩成人av影视| 玖玖国产精品视频| 91国产一区| 最新国产拍偷乱拍精品| 老司机免费视频一区二区 | 欧美~级网站不卡| 欧美日韩精品免费观看视完整| 欧美猛男同性videos| 一本不卡影院| 国产中文欧美日韩在线| 亚洲欧洲一区| 国产精品亚洲综合在线观看| 国产精品7m凸凹视频分类| 日本不卡一区二区三区| 欧洲三级视频| 日本欧美加勒比视频| 激情婷婷综合| 亚洲国产精品第一区二区三区| 91精品高清| 久久久久久毛片免费看 | 另类欧美日韩国产在线| 91精品电影| 伊人久久综合网另类网站| 麻豆成人精品| 日韩av中文字幕一区| а√天堂8资源在线| www.亚洲一二| 国产精品亚洲欧美| 午夜国产精品视频免费体验区| 欧美国产先锋| 成年男女免费视频网站不卡| 91久久精品无嫩草影院| 国产91在线精品| 欧美日韩hd| 国产欧美日本| 色综合一本到久久亚洲91| 久久经典综合| 伊人久久综合网另类网站| 鲁鲁在线中文| 91精品精品| 欧美欧美在线| 99欧美精品| 亚洲精华国产欧美| 日韩精品丝袜美腿| av亚洲一区二区三区| 亚洲午夜精品久久久久久app| 久久婷婷国产| 日韩精品永久网址| 亚洲第一毛片| 国产不卡一区| 国产一区二区三区黄网站| 一本色道久久综合亚洲精品高清| 日本亚洲一区二区| 一区二区三区精品视频在线观看| 狠狠噜噜久久| 日韩中文字幕| 麻豆一区二区三区| 国产乱码午夜在线视频| 欧美成人中文| 综合视频一区| 亚洲人人精品| 精品123区| 日韩中文字幕1| 99久久99久久精品国产片桃花| 亚洲人成777| 久久精品免费看| 波多野一区二区| 欧美日韩激情| 激情小说亚洲色图| 综合色就爱涩涩涩综合婷婷| 国产日韩亚洲欧美精品| 成年男女免费视频网站不卡| 性欧美69xoxoxoxo| 欧美五码在线|