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

          9000px;">

                亚洲精品一线二线三线| 亚洲精品一二三| 日韩激情av在线| 欧美日韩一区二区三区视频| 亚洲成人1区2区| 日韩精品中文字幕一区| 国产·精品毛片| 亚洲一区中文日韩| 精品美女一区二区| 波多野结衣在线aⅴ中文字幕不卡| 亚洲人123区| 精品国产3级a| 色偷偷成人一区二区三区91| 精品亚洲成a人在线观看| 综合久久久久久| 精品国精品自拍自在线| 在线一区二区观看| 国产成人在线免费观看| 亚洲国产wwwccc36天堂| 欧美激情综合五月色丁香小说| 欧美日免费三级在线| 丰满少妇在线播放bd日韩电影| 美女在线视频一区| 亚洲香蕉伊在人在线观| 国产精品丝袜一区| 日韩欧美一二三四区| 色妞www精品视频| 国产麻豆成人传媒免费观看| 亚洲1区2区3区4区| 亚洲精品亚洲人成人网| 国产午夜三级一区二区三| 91精品久久久久久久99蜜桃| 99国产精品久久久久久久久久久| 日av在线不卡| 亚洲一区二区中文在线| 国产精品免费视频一区| 久久久99久久| 久久综合九色综合久久久精品综合| 欧美色国产精品| 欧洲精品在线观看| 色噜噜久久综合| 色94色欧美sute亚洲线路一久| 高清不卡一二三区| 成人免费毛片片v| 国产精华液一区二区三区| 久久国产剧场电影| 毛片一区二区三区| 美日韩一级片在线观看| 麻豆精品在线看| 老司机精品视频一区二区三区| 午夜不卡在线视频| 视频一区二区三区在线| 视频一区二区国产| 麻豆91在线观看| 国产一区二区三区日韩| 国产在线视频精品一区| 国产一区二区调教| 成人黄色片在线观看| 91麻豆福利精品推荐| 在线观看日韩电影| 欧美美女直播网站| 日韩欧美资源站| 国产三级欧美三级| 亚洲同性同志一二三专区| 一区二区在线观看视频在线观看| 亚洲激情图片小说视频| 午夜精品福利一区二区蜜股av| 亚洲第四色夜色| 久久99精品国产麻豆婷婷洗澡| 国产在线播放一区| www.久久精品| 欧美日韩在线电影| 亚洲精品一区二区三区精华液| 欧美激情在线观看视频免费| 亚洲精品一卡二卡| 久久se这里有精品| 99视频一区二区三区| 91麻豆精品国产91久久久久久久久 | 婷婷国产在线综合| 九九久久精品视频| 成人av影院在线| 欧美日韩精品一区二区三区四区 | 欧美精彩视频一区二区三区| 国产精品成人免费在线| 天天影视网天天综合色在线播放| 国产做a爰片久久毛片 | 欧美色网一区二区| 欧美一区二区久久久| 国产精品日韩成人| 日本成人在线视频网站| fc2成人免费人成在线观看播放 | 国产三级久久久| 婷婷开心久久网| 色综合天天综合网天天看片| 日韩精品影音先锋| 一区二区三区四区五区视频在线观看| 美女性感视频久久| 在线视频你懂得一区二区三区| 久久精品一区八戒影视| 日韩vs国产vs欧美| 91成人网在线| 中文字幕日韩av资源站| 国产米奇在线777精品观看| 欧美日本不卡视频| 亚洲乱码国产乱码精品精98午夜 | 久久亚洲精华国产精华液| 一区二区三区精品视频在线| 国产91精品精华液一区二区三区| 日韩一卡二卡三卡四卡| 亚洲一线二线三线久久久| 91在线播放网址| 亚洲国产精品v| 国产精品99久久久久久宅男| 日韩小视频在线观看专区| 亚洲综合视频网| 91久久精品网| 一区二区三区免费看视频| 91免费看视频| 亚洲欧洲一区二区在线播放| 成人性生交大片免费看视频在线| 精品福利av导航| 久久99热99| 久久亚洲春色中文字幕久久久| 国产资源精品在线观看| 精品日韩一区二区三区免费视频| 久久精品99久久久| 国产亚洲一区字幕| 成人av午夜电影| 亚洲欧美成aⅴ人在线观看| 91国产丝袜在线播放| 亚洲网友自拍偷拍| 欧美一区二区视频观看视频 | 精品写真视频在线观看| 久久综合九色综合97婷婷女人 | 欧美午夜宅男影院| 午夜欧美大尺度福利影院在线看| 在线成人小视频| 精品一区二区日韩| 国产精品国产三级国产三级人妇| 99久久综合99久久综合网站| 一区二区激情小说| 91精品国产入口| 国产一区二区三区四区在线观看| 日本一区二区三区四区| 91免费小视频| 麻豆精品精品国产自在97香蕉| 久久九九影视网| 色av一区二区| 激情伊人五月天久久综合| 中文字幕精品三区| 欧美午夜片在线看| 国产最新精品精品你懂的| 亚洲三级免费观看| 日韩欧美成人一区二区| 91丨porny丨中文| 天天综合日日夜夜精品| 国产精品日产欧美久久久久| 欧美老肥妇做.爰bbww视频| 国产一区 二区| 亚洲一区二区不卡免费| 欧美精品一区男女天堂| 精品婷婷伊人一区三区三| 国产成人日日夜夜| 日韩福利电影在线| 中文字幕在线不卡一区二区三区| 8x8x8国产精品| av中文一区二区三区| 免费日韩伦理电影| 综合久久一区二区三区| 精品国产三级电影在线观看| 色婷婷综合久久久久中文 | 亚洲尤物视频在线| 国产精品污网站| 精品欧美一区二区久久 | 日本成人在线看| 亚洲一区二区精品视频| 国产精品久久久久久久久免费樱桃| 91精品国产麻豆国产自产在线| 在线一区二区视频| 99久久er热在这里只有精品66| 国产成人精品免费在线| 久久99蜜桃精品| 欧美aaaaa成人免费观看视频| 一区二区三区欧美视频| 中文字幕佐山爱一区二区免费| 精品福利一二区| 精品国产乱码久久久久久久久| 91精品国产手机| 3d动漫精品啪啪| 欧美精品日韩综合在线| 欧美日韩一区国产| 在线观看国产精品网站| 色菇凉天天综合网| 色香色香欲天天天影视综合网| 不卡的av在线| 丁香婷婷深情五月亚洲| 丁香五精品蜜臀久久久久99网站| 国产乱子轮精品视频| 韩国毛片一区二区三区| 国产乱码精品一区二区三|