日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

BE205編程代寫、C/C++程序代做
BE205編程代寫、C/C++程序代做

時間:2025-01-17  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Homework 2: experiments with data 
structures for searching 
 
BE205 2024 MUST 
Overview 
We have learned several data structures that can support data storage and searching, including: 
AVL tree (self-balancing binary search tree)
Hash table
Binary Heap (priority queue). 
In this homework, we will write a C/C++ program to use these data structures. More exactly, your 
program should accomplish the following tasks: 
Tasks 
Part 1: Read the words from a file to a linked list 
 A token is a sequence of letters. For example for the sentence: 
That I could make those people dance, 
And maybe they'd be happy for a while. 
The sequence of words, described here as a string marked by double quotes, will be : 
"That" "I" "could" "make" "those" "people" "dance" "And" "maybe" "they" "d" "be" "happy" 
"for" "a" "while"
<Task 1.1> 
 Open an input file message.txt (provided with this homework). It includes a paragraph of the 
lyrics of the song "American Pie" and an English article excerpt from the book "Tractatus LogicoPhilosophicus"
 written by the philosopher Ludwig Wittgenstein. 
<Task 1.2> 
Read the sequence of words into a linked list 
Each node of the linked list should contain a string, which is the word. 
You can choose to use a C-string or a C++ string object. 
Do not use some library of linked lists. The nodes should be defined in your code. 
Hint: The provided code for reading a word can be useful. 
<Task 1.3> 
Print the words in the linked list. Maybe something like :
 1) That --> 2) I --> 3) could --> 4) make --> 5) those --> 6) people --> 7) 
dance --> 8) And --> 9) maybe --> 10) they --> 11) d --> 12) be --> 13) happy --> 
14) for --> 15) a --> 16) while You can design the printing visual effect. 
Part 2 AVL Tree Construction 
<Task 2.1> 
Insert the words in list (built in task 1.2) one by one into an AVL Tree
Each node in the tree should store:
A distinct word (case ignored, e.g., "The" is the same as "the").
The count of occurrences of the word.
Nodes are ordered alphabetically by the word (dictionary order).
<Task 2.2> 
Print the tree. 
Hint: the provided the helpful code of printing a tree can be useful. 
<Task 2.3> 
Print the words (with their occurrence number) in the tree, in ascending dictionary order. 
Hint: using some traversal on the tree. 
Part 3 Hash Table 
Task 3.1 
Build a Hash table. Insert the words of the list of task 1.2, one by one, into the list. Here are some 
requirements: 
Each item in the hash table should be a pair <word, count> , So, when trying to insert a 
word again into the table, its count should increase. 
The programmer can choose 
the size of the hash table (array size).
a collision resolution strategy (separate chaining, linear probing, or quadratic probing).
Task 3.2 
Search on the hash table 10 words that are in the input file. Also, seach 5 words that are not 
in the input file
When a word is found, print the word together with its count. 
When a word is not found, print a message like "The word is not found".
The printing result could be like: Part 4 : Binary Heap 
<Task 4.1> 
Build a binary heap where each node stores a pair <word, count> . Here are some description
The order between two pairs is defined as follows:
<word1, count1> is less than <word2, count2> if 
count1 < count2 
or, count1 == count2, but word1 < word2 by the dictionary order. 
<Task 4.2> 
Print the <word, count> pairs on the heap in an ascending order (the order is defined above). 
Hint: Just pop the items from the binary heap and print them individually. 
 
Submission 
A most three students can form a group to do the assignment together. Only one student in 
the group needs to submit the homework. 
The files to be submitted on Moodle include: 
A .zip file containing all the source code files of your program.
Proper modularization by dividing your program into multiple files is encouraged. 
Putting all code in one text file is not good for this assignment. 
A text report file. The format can be (.docx, pdf, etc.). The file should describe 
What tasks have you accomplished? What are the remaining problems? 
The cooperation and workload sharing among the members of the group. 
Anything you want to describe, like the troubles you met and how you dealt with 
the problems. 
For the submission deadline, see the setting of this homework on the Moodle webpage. 
 
Search: facts       Found, Count: 3
Search: picture     Found, Count: 2
Search: logical     Found, Count: 2
Search: world       Found, Count: 2
Search: truth       Found, Count: 1
Search: representation Found, Count: 1
Search: philosophy   Not found
Search: language     Not found
Search: model       Found, Count: 1
Search: science     Not found
...
請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

掃一掃在手機打開當前頁
  • 上一篇:防靜電門禁系統-ESD防靜電門禁工程方案-蘇州訊諾
  • 下一篇:被悠悠分期自動下款怎么聯系客服?悠悠分期客服電話是多少?
  • 無相關信息
    合肥生活資訊

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

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        国内精品伊人久久久久av影院| 99国内精品久久| 国产欧美一区二区三区久久| 欧美日韩国产在线播放| 国产精品激情偷乱一区二区∴| 新狼窝色av性久久久久久| 亚洲线精品一区二区三区八戒| 欧美不卡视频一区发布| 久久夜色精品亚洲噜噜国产mv| 亚洲免费激情| 国产精品va在线播放我和闺蜜| 国产一区二区三区黄视频| 极品中文字幕一区| 亚洲日本在线视频观看| 国产午夜亚洲精品羞羞网站| 国产一区二区三区在线观看免费| 男同欧美伦乱| 尤物yw午夜国产精品视频明星| 极品少妇一区二区三区| 国产精品免费一区豆花| 亚洲精品乱码久久久久久| 亚洲福利小视频| 亚洲视频一区在线观看| 久久影视精品| 一区二区免费看| 欧美日韩精品欧美日韩精品| 亚洲影院在线| 亚洲第一黄色| 久久久久久噜噜噜久久久精品| 国产午夜精品理论片a级大结局| 亚洲第一综合天堂另类专| 国产精品自拍一区| 亚洲高清视频的网址| 欧美成人亚洲成人日韩成人| 欧美一区2区视频在线观看| 亚洲欧洲美洲综合色网| 亚洲男女自偷自拍图片另类| 久久久无码精品亚洲日韩按摩| 欧美日韩一区在线观看| 欧美一二三视频| 亚洲一二三区在线观看| 91久久极品少妇xxxxⅹ软件| 欧美精品高清视频| 欧美一级大片在线观看| 欧美国产欧美综合| 小黄鸭精品aⅴ导航网站入口| 国产亚洲aⅴaaaaaa毛片| 在线观看视频一区二区欧美日韩| 欧美成人精品在线视频| 欧美精品aa| 欧美日韩中文另类| 欧美色综合天天久久综合精品| 亚洲免费福利视频| 亚洲日本va午夜在线影院| 黑人巨大精品欧美一区二区| 国产精品99久久久久久人| 欧美一级淫片aaaaaaa视频| 亚洲婷婷综合色高清在线| 国产精品久久久久久久久借妻| 久久精品成人欧美大片古装| 国产日韩欧美中文| 国产日韩精品一区二区浪潮av| 国产欧美日韩综合一区在线观看| 中文亚洲免费| 久久精品国产第一区二区三区| 欧美日韩三级在线| 欧美日韩在线三级| 尤物精品国产第一福利三区| 国产精品黄色在线观看| 麻豆乱码国产一区二区三区| 亚洲欧美综合一区| 国产日产精品一区二区三区四区的观看方式| 欧美日韩综合视频| 黄色亚洲在线| 国产精品亚洲激情| 国产女人18毛片水18精品| 久久久噜噜噜久久人人看| 亚洲欧美日韩在线观看a三区| 性8sex亚洲区入口| 欧美在线视频一区二区三区| 在线视频免费在线观看一区二区| 亚洲精品日产精品乱码不卡| 免费成人在线视频网站| 亚洲第一视频| 国产精品v欧美精品v日韩精品| 亚洲一区三区电影在线观看| 亚洲免费中文字幕| 欧美一级一区| 国产亚洲一区二区在线观看| 亚洲区一区二| 亚洲日韩中文字幕在线播放| 一本色道**综合亚洲精品蜜桃冫| 伊人久久亚洲美女图片| 亚洲一区二区在线免费观看视频| 亚洲少妇在线| 国产精品久久久久久久久免费| 亚洲免费在线观看视频| 国产精品麻豆va在线播放| 欧美寡妇偷汉性猛交| 一区二区三区日韩| 狠狠久久亚洲欧美专区| 亚洲一区亚洲| 在线免费一区三区| 国产亚洲一区二区三区在线观看| 最新中文字幕一区二区三区| 麻豆精品视频| 美女精品国产| 国内伊人久久久久久网站视频| 欧美jizz19hd性欧美| 国产欧美精品一区| 欧美午夜女人视频在线| 亚洲电影一级黄| 91久久精品一区二区三区| 欧美日韩专区| 免费日韩成人| 欧美日韩日本国产亚洲在线| 国产精品性做久久久久久| 欧美一区二区三区久久精品| 老色批av在线精品| 亚洲一级片在线看| 亚洲激情av在线| 亚洲国产美女精品久久久久∴| 久久久久久91香蕉国产| 性久久久久久| 欧美11—12娇小xxxx| 久久人人爽人人| 国产乱码精品一区二区三| 欧美激情精品| 国产精品视频精品视频| 一区二区视频免费完整版观看| 国产欧美日韩视频一区二区| 国产精品爱啪在线线免费观看| 亚洲激情av| 欧美精品首页| 久久精品国产91精品亚洲| 亚洲国产美女精品久久久久∴| 久久久www成人免费毛片麻豆| 性高湖久久久久久久久| 老司机精品福利视频| 久久精品国产91精品亚洲| 亚洲欧美在线另类| 久久男人av资源网站| 欧美激情视频一区二区三区免费| 欧美视频官网| 国产精品一区二区三区久久| 久久精品国产欧美亚洲人人爽| 欧美国产日韩一区二区| 欧美色欧美亚洲另类二区| 国产亚洲成年网址在线观看| 久久成人国产精品| 欧美中在线观看| 亚洲美女在线国产| 国产精品青草综合久久久久99| 国产精品视频免费一区| 久久婷婷久久| 在线播放日韩专区| 六月婷婷一区| 激情欧美一区二区| 亚洲国产美国国产综合一区二区| 一区二区免费在线观看| 欧美中文字幕视频在线观看| 一区二区三区精品久久久| 亚洲午夜精品视频| 韩国欧美国产1区|