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

        代寫ecs36c 有向圖程序

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


        ecs36c
        ecs36c/hw4

        Homework Spec
        In this homework, you will write one data structure Directed Graph, and then build two
        algorithms Breath First Search (BFS) and Depth First Search (DFS) on the graph.
        You will implement Graph first and then implement BFS and DFS and their related
        functions.
        In reality, a adjacent list does not require order, so a better way to implement them
        is to use unordered_map and unordered_set (or just dynamic array). In this
        homework assignment, we keep the order for easier testing.
        The reason to keep a Map<NodeValue, Node> is to utilize the textbook pseudocode
        and definition that modifies the fields of the node. In reality we can just use some
        array or unordered_set to keep track of which vertices are visited instead of
        changing its color.
        Grading
        You will be graded only on the same (hidden) test cases your TAs created.
        We provided some tests cases in ./tests. Feel free to modify and add more test cases,
        but the ./tests in your submission will not be graded. However, you will be able to see the
        results for your submitted test cases on Gradescope.
        DirectedGraph implementation - 30%
        BFS function - 35%
        DFS function - 35%
        NOTE: If you are running out of time to implement all methods (or just want to see
        the project can be compiled), please at least provide a syntactically valid empty
        method definition for each method in lib/*.cpp .
         2 - ecs36c/hw4: Graph, BFS, Shortest Path, DFS, and Topological Sort
         3/5
        DirectedGraph
        Check the definition for GraphNode in lib/GraphNode.hpp.
        Check the definition for Graph in lib/Graph.hpp.
        Create test cases in tests/TestGraph.cpp.
        NOTE When updating the edges or vertices, both _adjList and _vertices should be
        updated.
        Breath First Search
        Implement std::vector<T> BFS(T start); defined in lib/Graph.hpp.
        For the queue used in BFS , please use C++ standard library by #include 
        <queue> .
        Implement int shortestPath(T start, T end) defined in lib/Graph.hpp.
        You can assume BFS is never called before calling shortestPath .
        Create test cases in tests/TestBFS.cpp.
        For formal definitions, please refer to textbook 20.2.
        We provide the example graph (Figure 20.3) in test/TestBFS.cpp for you to test your
        code.
        Depth First Search
        Implement std::vector<T> DFS(); defined in lib/Graph.hpp.
        Create test cases in tests/TestDFS.cpp.
        For formal definitions, please refer to textbook 20.3.
        We provide the example graph (Figure 20.4) in test/TestDFS.cpp for you to test your
        code.
        You can implement void DFS_visit(const T &u, int &time, std::list<T> 
        &record); to help add the Node.value to a record vector.
        Submission
        Use ./generate_submission.sh and submit hw4-submission.zip on Gradescope.
        Setup
        Use one of the following options to set up your environment.
        README.md2023/11/25 2 - ecs36c/hw4: Graph, BFS, Shortest Path, DFS, and Topological Sort
         4/5
         If you're a student, DO NOT FORK this repository because you cannot change
        the visibility of a forked repo to private. If you plan to use Git for version control
        (which is encouraged), run rm -rf .git && git init (or change remote) after
        setting up using one of the options below and push to your private repository. Any
        public repository containing part of this homework solution will be reported to SJA.
        Option 1: VS Code with Local Dev Container
        If Docker is not running, start Docker.
        Click the following button to set up the environment. LLooccaall DDeevv CCoonnttaaiinneerr Setup
        When asked for selecting a Kit to configure CMake, choose GCC.
        Option 2: VS Code with Remote Dev
        Connect VS Code to the remote host.
        Install C/C++ Extension Pack on Remote Server (if not already).
        Run the following command inside the integrated terminal.
        git clone 
        Run code ./ecs36c-hw4 to open the folder.
        When prompted to configure CMake, confirm and choose GCC when prompted for
        kit selection

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

        掃一掃在手機打開當前頁
      1. 上一篇:CSCC43代做、R設計編程代寫
      2. 下一篇:代做EF5070、代寫c/c++編程設計
      3. 無相關信息
        合肥生活資訊

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

        主站蜘蛛池模板: 在线播放精品一区二区啪视频| 一区二区免费国产在线观看| 精品视频无码一区二区三区 | 无码精品视频一区二区三区| 国产aⅴ精品一区二区三区久久 | 国产一区二区三区国产精品| 在线播放国产一区二区三区| 国产成人无码一区二区在线播放 | 波多野结衣中文字幕一区二区三区 | 日韩一区二区在线观看视频| 一级毛片完整版免费播放一区| 精品亚洲AV无码一区二区| 精品久久久久中文字幕一区| 视频精品一区二区三区| 波多野结衣AV一区二区三区中文 | 亚洲福利视频一区二区| 国产成人精品一区二三区| 国产精品夜色一区二区三区| 亚洲视频一区调教| 国产乱码精品一区二区三区中文| 国产人妖视频一区二区破除| 日本精品一区二区三区视频| 无码少妇丰满熟妇一区二区| 色综合视频一区中文字幕| 亚洲AV网一区二区三区| 日本一道高清一区二区三区| 夜夜高潮夜夜爽夜夜爱爱一区| 韩国理伦片一区二区三区在线播放| 亚洲一区精彩视频| 在线观看视频一区二区| 国产成人一区二区三区电影网站 | 亚洲av不卡一区二区三区| 无码av免费一区二区三区| 日本免费一区二区三区四区五六区| 少妇激情一区二区三区视频| 一本久久精品一区二区| 夜精品a一区二区三区| 一区二区三区四区在线观看视频 | 爆乳无码AV一区二区三区| 国产高清一区二区三区视频| 精品无码人妻一区二区三区不卡|