99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

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

時間:2025-01-17  來源:合肥網(wǎng)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

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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評 開團(tuán)工具
    出評 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士4號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士3號線
    合肥機(jī)場巴士2號線
    合肥機(jī)場巴士2號線
    合肥機(jī)場巴士1號線
    合肥機(jī)場巴士1號線
  • 短信驗(yàn)證碼 豆包 幣安下載 AI生圖 目錄網(wǎng)

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          欧美v国产在线一区二区三区| 亚洲国产另类精品专区| 久久青草久久| 亚洲性图久久| 91久久精品国产91久久| 欧美午夜片在线观看| 麻豆乱码国产一区二区三区| 亚洲一区一卡| 亚洲欧洲精品一区二区三区| 国产亚洲电影| 国产精品久久久久久久免费软件| 麻豆freexxxx性91精品| 欧美一级夜夜爽| 亚洲无人区一区| 99www免费人成精品| 亚洲国产成人午夜在线一区| 国产亚洲美州欧州综合国| 欧美三级黄美女| 欧美日韩国产精品一区| 免费欧美在线视频| 久久久亚洲影院你懂的| 欧美在线亚洲| 亚洲欧美成人| 亚洲综合三区| 亚洲欧美日韩一区二区三区在线观看 | 久久精品国产一区二区三区免费看| 日韩视频一区二区| 亚洲精品一区二区三区不| 亚洲国产精品精华液网站| 樱花yy私人影院亚洲| 国模套图日韩精品一区二区| 国产午夜精品在线观看| 国产亚洲欧美日韩美女| 国产欧美日韩综合精品二区| 国产农村妇女精品| 国产麻豆日韩| 国内精品国产成人| 一区二区三区在线免费播放| 精品不卡一区二区三区| 亚洲电影中文字幕| 亚洲久久在线| 亚洲免费在线观看视频| 久久国产福利| 老司机午夜精品| 欧美精品在线一区二区三区| 国产精品ⅴa在线观看h| 国产麻豆视频精品| 在线观看欧美| 亚洲精品一区二区三区四区高清 | 欧美r片在线| 欧美日本高清| 国产伦精品一区二区三| 一色屋精品视频在线看| 亚洲日韩欧美视频一区| 亚洲小说欧美另类社区| 久久久久久网址| 欧美日韩精品一区二区三区四区| 国产精品区一区二区三| 樱花yy私人影院亚洲| 在线视频精品一| 久久久999精品免费| 欧美日韩大片一区二区三区| 国产精品羞羞答答xxdd| 激情亚洲网站| 午夜欧美电影在线观看| 免费欧美在线| 国产三级精品三级| 亚洲精品欧美在线| 久久久久久久成人| 欧美三级韩国三级日本三斤| 在线日韩中文字幕| 亚洲欧美国产日韩天堂区| 免费成人av在线| 国产精品一区在线播放| 亚洲国产老妈| 香港久久久电影| 欧美日本中文字幕| 国产一区二区三区在线观看精品 | 亚洲深夜av| 欧美成年人视频| 国内自拍亚洲| 久久电影一区| 国产精品自拍视频| 中文一区字幕| 欧美美女操人视频| 伊人成人在线视频| 久久aⅴ国产紧身牛仔裤| 国产精品久久久久久久久久ktv| 亚洲激情国产精品| 久久综合色综合88| 亚洲第一福利社区| 美女91精品| 伊人精品成人久久综合软件| 欧美一区二区三区四区在线观看地址 | 亚洲成人自拍视频| 久久综合九色综合久99| 激情综合在线| 毛片一区二区三区| 亚洲国产免费看| 欧美成熟视频| 亚洲精品乱码视频| 欧美黄色一级视频| 亚洲国产一区在线| 欧美伦理在线观看| 99精品视频一区二区三区| 欧美精品v日韩精品v国产精品| 亚洲精品久久嫩草网站秘色 | 欧美 日韩 国产精品免费观看| 欧美精品v国产精品v日韩精品| 国产一区二区三区久久悠悠色av| 午夜精品免费在线| 国产欧美 在线欧美| 欧美在线啊v| 欲色影视综合吧| 欧美精品导航| 亚洲视频999| 国产一区二区成人| 久久亚洲高清| 一本大道久久a久久综合婷婷| 欧美日韩一区国产| 久久高清免费观看| 亚洲精品日本| 国产精品私房写真福利视频 | 久久久久久久999精品视频| 怡红院精品视频| 欧美日韩999| 欧美一区亚洲二区| 亚洲美女av在线播放| 国产精品亚洲综合一区在线观看| 久久久噜噜噜久噜久久| 亚洲精品一区二区三区99| 国产毛片精品国产一区二区三区| 久久亚洲春色中文字幕久久久| 亚洲精品久久久久久久久| 国产精品wwwwww| 美日韩精品视频| 午夜视频在线观看一区二区三区| 影音先锋日韩资源| 国产精品久久久久久久久免费桃花| 久久免费少妇高潮久久精品99| 夜夜精品视频| 亚洲国产日韩欧美一区二区三区| 国产精品欧美日韩一区| 欧美欧美午夜aⅴ在线观看| 欧美在线你懂的| 亚洲一二三四区| 亚洲精品乱码久久久久久黑人| 国产乱码精品1区2区3区| 欧美人成在线视频| 麻豆精品视频在线观看| 午夜久久影院| 亚洲午夜久久久| 一本色道久久综合精品竹菊| 亚洲激情网址| 尤物99国产成人精品视频| 国产日韩精品一区二区三区在线| 欧美午夜精品久久久| 欧美日韩国产系列| 欧美精品一级| 欧美高清视频一区二区三区在线观看| 欧美在线亚洲在线| 欧美一区二区在线播放| 午夜精品一区二区三区在线播放| 一区二区欧美激情| 日韩午夜电影av| 亚洲精品乱码| 最新日韩在线视频| 亚洲日本欧美天堂| 亚洲区中文字幕| 亚洲精选国产| 日韩网站在线看片你懂的| 亚洲三级性片| 9久re热视频在线精品| 一本久久a久久精品亚洲| 99国产精品一区| 亚洲一区二区精品在线| 午夜精品免费| 久久激情综合网| 美女久久一区| 欧美日韩精品不卡| 国产精品视频网| 好吊日精品视频| 尤物视频一区二区| 亚洲人成人99网站| 99在线热播精品免费| 亚洲欧美不卡| 久久午夜国产精品| 欧美日韩a区| 国产网站欧美日韩免费精品在线观看| 国产一区日韩二区欧美三区| 亚洲大胆在线| 亚洲伊人久久综合| 久久久久久久成人| 欧美日韩福利在线观看| 国产精品网站在线| 在线观看日韩精品| 国产精品99久久久久久人| 久久久av毛片精品| 欧美人妖另类| 国内视频精品|