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

        代寫COMP3023、C/C++語言編程代做

        時間:2023-12-08  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


        COMP3023 Design and Analysis of Algorithms

        Fall 2023

        Programming Assignment

        Submission by Dec. 6, 2023

        Instructions:

        Write a program that can return any three of the following four artifacts from a given weighted,

        undirected graph: (Note each numbered item is considered as one artifact.)

        1. A Depth-First Search (DFS) Tree (Lecture06)

        2. All its Articulation Points (AP) and Biconnected Components (BC) (Lecture06)

        3. A Minimum Spanning Tree (MST), using Kruskal’s Algorithm (Lecture08)

        4. The Shortest Path Tree (SPT), using Dijkstra’s Algorithm (Lecture09)

        The input to your program is a data file named graph.txt, which specifies 1) the number of vertices

        (int), 2) the number of edges (int), 3) each edge’s two vertices and its weight (int). A sample input file

        is shown in Figure 1, along with the actual graph that it represents:

        6

        8

        0, 1, 3

        0, 2, 3

        0, 3, 4

        1, 3, 3

        2, 3, 2

        3, 4, 4

        3, 5, 2

        4, 5, 4

        Figure 1 A sample input file with the graph it represents

        Your program shall read the file name from keyboard, read the graph information from the file, run

        the above-mentioned four algorithms, and display the results on the console. Your program shall

        repeatedly ask for an input data file until the user press "CTRL+Z". A sample of console output is given on the

        next page, in Figure 2.

        Submission:

        1. Please write your program in C or C++.

        Put all your code in one single file and name it PA_#######.cpp, where ####### is your

        student ID.

        Build an executable file and name it PA_#######.exe.

        Pack the .cpp and .exe files into a zip file and name it PA_#######.zip.

        2. Please make sure your program can be executed. An unexecutable program will

        automatically yield a grade of zero.

        1 4

        3 3 4

        0 4 3 4

        3 2 2

        2 5

        2

        ***************

        Input the file name:

        graph.txt

        ***************

        1. The following are the edges in the constructed DFS Tree

        0--1 **-3 2--3 3--4 4--5

        ***************

        2. The articulation point(s) found in the given graph is/are:

        Vertex 3

        The biconnected component(s) found in the given graph is/are:

        0--1 0--2 0--3 **-3 2--3

        3--4 3--5 4--5

        ***************

        3. The following are the edges in the constructed MST:

        0--1 **-3 2--3 3--4 3--5

        ***************

        4. The following are the edges in the constructed SPT:

        0--1 0--2 0--3 3--4 3--5

        ***************

        Input the file name:

        3. Comment your code when appropriate. Inside the comments, you are responsible of

        providing a full disclosure of all external reference materials that you have used, such as

        links to a public webpage, a video tutorial, or even a public repository. Failing to do so may

        yield a penalty.

        4. Reusing another student’s program is strictly prohibited. Plagiarism checking will be

        conducted prior to grading. Any case of violation of UIC’s honor code will yield a grade of

        zero and a report to Student Affairs Office.

        請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

         

        掃一掃在手機打開當前頁
      1. 上一篇:COMP26020代做、代寫C++設計程序
      2. 下一篇:MA2552編程代寫、代做MATLAB程序
      3. 無相關信息
        合肥生活資訊

        合肥圖文信息
        出評 開團工具
        出評 開團工具
        挖掘機濾芯提升發動機性能
        挖掘機濾芯提升發動機性能
        戴納斯帝壁掛爐全國售后服務電話24小時官網400(全國服務熱線)
        戴納斯帝壁掛爐全國售后服務電話24小時官網
        菲斯曼壁掛爐全國統一400售后維修服務電話24小時服務熱線
        菲斯曼壁掛爐全國統一400售后維修服務電話2
        美的熱水器售后服務技術咨詢電話全國24小時客服熱線
        美的熱水器售后服務技術咨詢電話全國24小時
        海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
        海信羅馬假日洗衣機亮相AWE 復古美學與現代
        合肥機場巴士4號線
        合肥機場巴士4號線
        合肥機場巴士3號線
        合肥機場巴士3號線
      4. 短信驗證碼 酒店vi設計 投資移民

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

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

        久久99热久久99精品| 91精品视频播放| 成人精品视频在线观看| 在线观看国产精品麻豆| 久久亚洲精品国产亚洲老地址| 99热精品久久只有精品30| 欧洲精品视频在线观看| 99re久久精品国产首页2020| jizzjizz国产精品久久| 在线视频日韩精品| 亚洲日韩国产一区二区三区| 国产精品国产国产aⅴ| 精品无码久久久久久久久水蜜桃| 自拍偷在线精品自拍偷99| 3D动漫精品啪啪一区二区下载| 亚洲国产精品免费在线观看| 久久精品国产亚洲av麻豆色欲| 久久国产精品免费观看| 精品国产_亚洲人成在线高清| 日韩精品亚洲aⅴ在线影院| 9久久这里只有精品国产| 九九精品在线视频| 国产va免费精品| mm1313亚洲精品国产| 亚洲?V无码成人精品区日韩| 四虎成人精品国产永久免费无码| 亚洲日韩精品国产一区二区三区 | 日本精品视频一视频高清| 日本中文字幕在线精品| 国产精品久久久久久影院| 国产在线精品香蕉麻豆| 窝窝午夜看片成人精品| 99久久国产亚洲综合精品| 欧美激情国产精品视频一区二区| 国产精品国产AV片国产| 尤物国产精品福利三区| 国产精品亚洲va在线观看| 国产成人综合久久精品免费| 国产精品国语自产拍在线观看| 国产69精品久久久久999三级| 亚洲日韩精品射精日|