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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          欧美三区在线视频| 久久米奇亚洲| 国产日韩欧美亚洲| 欧美成ee人免费视频| 亚洲免费视频观看| 91久久综合亚洲鲁鲁五月天| 国产精品免费福利| 欧美成人激情视频免费观看| 午夜亚洲福利在线老司机| 亚洲精品极品| 在线观看欧美视频| 国产欧美日韩一区| 欧美日韩一区二区视频在线| 久久日韩精品| 亚洲欧美亚洲| 亚洲乱码日产精品bd| 国外精品视频| 国产欧美日韩麻豆91| 欧美日韩成人网| 免费视频一区| 欧美在线视频免费播放| 亚洲一区二区欧美日韩| 亚洲欧洲日本mm| 黄色精品一区二区| 国产视频丨精品|在线观看| 欧美性事免费在线观看| 欧美日韩网站| 欧美日韩国产免费观看| 欧美激情综合| 欧美精品18videos性欧美| 男女精品网站| 国产乱码精品一区二区三区忘忧草 | 欧美日韩三级一区二区| 欧美**字幕| 美女成人午夜| 欧美激情日韩| 欧美日韩美女一区二区| 欧美日韩亚洲另类| 欧美日韩一区二区三区免费| 欧美日韩在线一区| 欧美午夜剧场| 国产精品无码专区在线观看| 国产乱码精品1区2区3区| 国产欧美日韩精品a在线观看| 国产精品播放| 国产精品一区二区三区免费观看 | 国产一区二区0| 韩国福利一区| 亚洲欧洲一区二区三区久久| 日韩视频免费观看高清完整版| 99re这里只有精品6| 亚洲一区二区视频在线观看| 亚洲综合视频网| 久久国产加勒比精品无码| 久色婷婷小香蕉久久| 欧美欧美天天天天操| 国产精品一区二区在线观看网站 | 午夜精品久久99蜜桃的功能介绍| 欧美一区二区三区在线观看视频 | 激情小说另类小说亚洲欧美| 亚洲国产小视频在线观看| 99国产欧美久久久精品| 亚欧成人在线| 欧美成人综合| 国产精品网站一区| 亚洲第一福利社区| 亚洲网站在线播放| 久久亚洲二区| 国产精品久久久久永久免费观看| 一区二区三区在线观看国产| 亚洲伦伦在线| 久久久999| 国产精品v一区二区三区| 亚洲国产精品久久久久婷婷884| 亚洲午夜久久久| 欧美电影打屁股sp| 国产视频丨精品|在线观看| 亚洲精品久久久久久一区二区| 欧美一区二区三区在线| 欧美片网站免费| 亚洲第一精品久久忘忧草社区| 在线一区二区三区做爰视频网站 | 午夜精彩视频在线观看不卡| 欧美黄免费看| 国产综合18久久久久久| 中文久久精品| 欧美激情视频给我| 尹人成人综合网| 亚洲欧美日本国产有色| 欧美视频中文字幕| 日韩视频在线观看| 欧美激情亚洲国产| 亚洲欧洲精品天堂一级| 久久男人av资源网站| 国产精品久久久久9999吃药| 99国产精品99久久久久久| 麻豆国产精品一区二区三区| 国内精品99| 久久久国产精品一区二区中文| 国产精品五区| 亚洲欧美视频| 国产三区二区一区久久| 亚洲女性裸体视频| 国产日产精品一区二区三区四区的观看方式 | 一区二区高清在线| 欧美电影专区| 亚洲激情国产精品| 欧美激情成人在线视频| 最新日韩在线视频| 牛牛精品成人免费视频| 亚洲国产一区二区三区a毛片 | 欧美伊人久久大香线蕉综合69| 国产欧美日韩中文字幕在线| 欧美亚洲专区| 精久久久久久| 你懂的视频一区二区| 91久久精品一区二区别| 欧美精品久久一区二区| 亚洲一级电影| 国产一区观看| 欧美激情按摩| 亚洲视频精选在线| 国产亚洲二区| 美女诱惑一区| 亚洲在线观看| 亚洲成色最大综合在线| 欧美婷婷六月丁香综合色| 欧美有码视频| 亚洲美女毛片| 国产区精品视频| 欧美成年人在线观看| 亚洲一区亚洲| 国内精品视频在线观看| 欧美日韩亚洲一区二区三区四区| 午夜精品一区二区三区在线| 亚洲国产精品va在线观看黑人| 欧美体内谢she精2性欧美| 久久精品亚洲一区二区三区浴池| 亚洲国产精品久久| 国产精品免费电影| 欧美激情无毛| 另类尿喷潮videofree| 亚洲一二三区在线| 亚洲美女精品久久| 韩国成人精品a∨在线观看| 欧美日韩中文字幕| 欧美高清日韩| 久久国产精品高清| 亚洲一区免费| 99国产精品视频免费观看一公开| 激情综合网址| 国产精品免费久久久久久| 欧美韩日一区| 蜜桃av噜噜一区| 久久精品99久久香蕉国产色戒| 中文欧美日韩| 亚洲三级免费观看| 亚洲高清在线| 在线日韩av片| 韩国亚洲精品| 国语自产在线不卡| 韩国成人福利片在线播放| 亚洲男人的天堂在线| 亚洲人成在线播放网站岛国| 国产精品美女久久久| 欧美私人啪啪vps| 欧美激情一区三区| 久久久久九九视频| 久久精品女人| 久久精品日韩一区二区三区| 亚洲欧美国产高清| 亚洲欧美国产视频| 亚洲欧美一区二区三区在线| 亚洲视频图片小说| 在线视频精品| 亚洲一区二区三区中文字幕在线| 99re热这里只有精品免费视频| 亚洲精品无人区| 亚洲一区二区三区在线看| 久久影院午夜片一区| 久久夜色精品一区| 久久在精品线影院精品国产| 久久艳片www.17c.com| 欧美精品亚洲二区| 欧美日韩一区二区免费在线观看| 欧美日韩亚洲综合一区| 国产精品自拍网站| 狠狠久久综合婷婷不卡| 激情综合在线| 亚洲免费福利视频| 亚洲免费视频观看| 久久久最新网址| 欧美成人一区在线| 欧美午夜视频网站| 国产综合精品| 亚洲精品国产欧美| 性久久久久久久久久久久| 玖玖国产精品视频| 国产精品第十页| 狠色狠色综合久久|