合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

        COMP2010J代做、代寫(xiě)c/c++,Python程序
        COMP2010J代做、代寫(xiě)c/c++,Python程序

        時(shí)間:2024-12-06  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



        COMP2010J: Data Structures and Algorithms
        Assignment 2: Hash Table
        Implementation and Word Search
        Efffciency
        Dr. Nima Afraz and Abdul Wadud
        Deadline: 25th November, 2024
        Instructions
        • This is an individual assignment.
        • Submit your code and report as a single zip ffle through the course
        portal.
        • Ensure your code is well-documented with comments explaining your
        thought process.
        • Label each section and question clearly in your submission.
        • Late submissions will be penalized (see grading scheme).
        Overview
        In this assignment, you will build a dictionary system using a hash table to
        store and search words. You will explore the efffciency of hash map operations
        by working with two datasets: one containing 1,000 words and another with
        10,000 words. The assignment consists of three main parts: constructing a
        hash table, measuring the performance of word searches, and implementing
        a word suggestion system for unmatched searches.
        1Part 1: Building the Hash Table and Menu
        System (50 Marks)
        You are required to:
        • Load two datasets, small dataset.csv (1K words) and large dataset.csv
        (10K words), into separate hash maps.
        • Implement a method to load the datasets and insert words into the
        hash maps.
        • Create a menu-driven system that allows the user to search for words
        or exit the program.
        Menu System Requirements
        Implement a simple command-line menu that runs in an inffnite loop and
        provides the following options:
        1. Search for a word in the 1K dataset: The program should prompt
        the user to enter a word and search for it in the hash map containing
        the 1K dataset. Display the result (word found with count or word not
        found), along with the computational time and number of comparisons.
        2. Search for a word in the 10K dataset: The program should prompt
        the user to enter a word and search for it in the hash map containing
        the 10K dataset. Display the result as above.
        3. Exit the program: Allow the user to exit the loop and terminate the
        program.
        Example Code for Menu System:
        1 while ( true ) {
        2 System . out. println ("\ nMenu :");
        3 System . out. println ("1. Search for a word in the 1K
        dataset ");
        4 System . out. println ("2. Search for a word in the 10K
        dataset ");
        5 System . out. println ("3. Exit ");
        6 System . out. print (" Enter your choice : ");
        7 }
        Listing 1: Menu System Implementation
        2Tasks:
        • Task 1.1 (20 Marks): Write a method to insert words into the hash
        map, ensuring that duplicate words are counted.
        • Task 1.2 (20 Marks): Implement the menu system as described above
        to allow for word searches in both datasets.
        • Task 1.3 (10 Marks): Implement a function to display the contents
        of the hash map, showing each word and its count.
        Figure 1: Sample Output for the Word Search Program
        Part 2: Searching and Performance Analysis
        (40 Marks)
        This part focuses on the efffciency of searching words in hash maps of different
        sizes.
        Tasks:
        • Task 2.1 (20 Marks): Implement a method to search for a word in
        the hash map and print whether it was found, along with its count.
        – Search for ’aaron’ for both small (1K) and large (10K) dataset
        and add the results (screenshot/table) in the report.
        • Task 2.2 (15 Marks): Measure the computational time for searching
        a word in the 1K dataset and the 10K dataset. Display the time taken
        for each search.
        • Task 2.3 (15 Marks): Implement logic to count the number of comparisons
         made during the search and display this count for each search.
        3• For task 2.2 and 2.3, test the system for three given words in the
        Table. 1. State computational time taken and comparisons for each
        word.
        Word 1K Dataset 10K Dataset
        CompTime (ns) Comparisons CompTime (ns) Comparisons
        beijing
        monica
        angel
        Table 1: Comparison of computational time and number of comparisons for
        words in the 1K and 10K datasets.
        Performance Comparison
        After completing the searches, you are required to:
        • Compare the average time taken to search words in the 1K dataset
        versus the 10K dataset.
        • Analyze the results and write a short explanation of why the hash map
        remains efffcient even with a larger dataset, using Big-O notation to
        support your ffndings.
        Submission Guidelines
        Submit a single zipped folder to Brightspace containing:
        1. Your code, including all class ffles and any additional documentation.
        2. A PDF report (max 5 pages) explaining your implementation, code
        structure, algorithms used, and performance analysis.
        Name your zip ffle: ucdconnectid p2.zip
        Example Naming Convention
        If your UCD Connect ID is 12345678, your submission should be named:
        12345678 p2.zip.
        4How to Export a Project to a Zip File
        • In IntelliJ, go to File | Export | Project to Zip File.
        • Specify the path and click Save to create the zip file.
        Grading Scheme
        Correctness (50%)
        • The code should perform as described and meet the problem requirements.
        Efficiency
        (30%)
        • The program should demonstrate efficient use of the hash map for
        searching.
        Presentation (20%)
        • The report should be clear, well-structured, and include explanations
        of the code and results.
        Late Submission Penalties
        • Less than 15 minutes late: No penalty.
        • 15 minutes to 2 hours late: 25% deduction.
        • More than 2 hours late: 50% deduction.


        請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

        掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
      1. 上一篇:代寫(xiě)EE5434、代做c/c++,Java程序
      2. 下一篇:代做AnDe 、代寫(xiě)Pokemon 程序設(shè)計(jì)
      3. ·COMP09110代做、代寫(xiě)Python程序設(shè)計(jì)
      4. · COMP338編程代做、代寫(xiě)Python程序語(yǔ)言
      5. ·代寫(xiě)MATH36031、Python程序設(shè)計(jì)代做
      6. ·CDS523編程代寫(xiě)、代做Python程序語(yǔ)言
      7. ·代做CMPT 477、Java/Python程序代寫(xiě)
      8. ·代做COMP9021、python程序設(shè)計(jì)代寫(xiě)
      9. ·COMP0035代做、代寫(xiě)python程序語(yǔ)言
      10. ·代寫(xiě)COMP0034、代做Java/Python程序設(shè)計(jì)
      11. ·MSE 280代做、代寫(xiě)C++,Python程序
      12. ·CS540編程代寫(xiě)、代做Python程序設(shè)計(jì)
      13. 合肥生活資訊

        合肥圖文信息
        挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
        挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
        戴納斯帝壁掛爐全國(guó)售后服務(wù)電話(huà)24小時(shí)官網(wǎng)400(全國(guó)服務(wù)熱線(xiàn))
        戴納斯帝壁掛爐全國(guó)售后服務(wù)電話(huà)24小時(shí)官網(wǎng)
        菲斯曼壁掛爐全國(guó)統(tǒng)一400售后維修服務(wù)電話(huà)24小時(shí)服務(wù)熱線(xiàn)
        菲斯曼壁掛爐全國(guó)統(tǒng)一400售后維修服務(wù)電話(huà)2
        美的熱水器售后服務(wù)技術(shù)咨詢(xún)電話(huà)全國(guó)24小時(shí)客服熱線(xiàn)
        美的熱水器售后服務(wù)技術(shù)咨詢(xún)電話(huà)全國(guó)24小時(shí)
        海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
        合肥機(jī)場(chǎng)巴士4號(hào)線(xiàn)
        合肥機(jī)場(chǎng)巴士4號(hào)線(xiàn)
        合肥機(jī)場(chǎng)巴士3號(hào)線(xiàn)
        合肥機(jī)場(chǎng)巴士3號(hào)線(xiàn)
        合肥機(jī)場(chǎng)巴士2號(hào)線(xiàn)
        合肥機(jī)場(chǎng)巴士2號(hào)線(xiàn)
      14. 幣安app官網(wǎng)下載 短信驗(yàn)證碼

        關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

        Copyright © 2024 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
        ICP備06013414號(hào)-3 公安備 42010502001045

        主站蜘蛛池模板: 中文乱码字幕高清一区二区| 相泽亚洲一区中文字幕| 日韩高清一区二区三区不卡| 国产精品无码一区二区在线观一| 久久无码人妻一区二区三区午夜 | 人妻AV一区二区三区精品| 日本视频一区二区三区| 亚洲AV一区二区三区四区| 国产亚洲日韩一区二区三区| 精品一区二区AV天堂| 精品国产一区二区三区香蕉| 无码人妻精品一区二区三区在线| 成人区人妻精品一区二区不卡网站| 国产一区二区三区免费在线观看| 无码福利一区二区三区| 精品国产一区AV天美传媒| 人妻aⅴ无码一区二区三区| 午夜天堂一区人妻| 久久无码人妻一区二区三区| 亚洲国产一区国产亚洲| 99精品国产高清一区二区| 色窝窝无码一区二区三区| 精品女同一区二区三区在线| 大伊香蕉精品一区视频在线| 国产亚洲情侣一区二区无码AV| 香蕉久久AⅤ一区二区三区 | 一区二区三区在线观看免费| 女人和拘做受全程看视频日本综合a一区二区视频 | 国产一区二区三区视频在线观看| 亚洲熟妇无码一区二区三区导航| 亚洲一区二区三区四区视频| 97久久精品无码一区二区天美| 无码中文字幕人妻在线一区二区三区| 国产精品亚洲午夜一区二区三区| 无码一区二区三区AV免费| 国产精品综合一区二区| 亚洲一区二区三区在线视频| 亚洲一区二区三区偷拍女厕| 久久一区二区精品综合| 国产精品一区二区毛卡片| 四虎一区二区成人免费影院网址|