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;">

                91精品一区二区三区久久久久久| 在线视频你懂得一区| 欧美亚洲综合一区| 国产精品久久久久aaaa| 国产精品 日产精品 欧美精品| 欧美第一区第二区| 亚洲精品成人在线| 精彩视频一区二区| 欧美少妇一区二区| 国产精品久久久久久久浪潮网站 | 国内精品在线播放| 在线观看亚洲a| 国产精品欧美一区二区三区| 日本中文字幕一区| 欧美最猛性xxxxx直播| 中文一区二区完整视频在线观看| 婷婷丁香久久五月婷婷| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 图片区小说区国产精品视频| 成人99免费视频| 久久久一区二区三区捆绑**| 麻豆高清免费国产一区| 欧美日韩国产综合久久| 自拍偷拍国产亚洲| 成人污污视频在线观看| 久久久久97国产精华液好用吗| 亚洲一区二区三区影院| 一本大道久久a久久综合| 国产精品素人一区二区| 韩国av一区二区三区四区| 91麻豆精品国产自产在线观看一区 | 欧美国产97人人爽人人喊| 美女视频黄频大全不卡视频在线播放| 欧美性xxxxxxxx| 亚洲最大成人网4388xx| 色综合久久六月婷婷中文字幕| 国产精品热久久久久夜色精品三区| 国模少妇一区二区三区| 日韩欧美国产精品| 国模少妇一区二区三区| 久久先锋影音av| 国产激情一区二区三区桃花岛亚洲| 久久久精品2019中文字幕之3| 国产尤物一区二区在线| 久久综合给合久久狠狠狠97色69| 国产乱人伦精品一区二区在线观看 | 首页综合国产亚洲丝袜| 欧美日韩国产综合久久| 日韩成人午夜电影| 亚洲精品一区二区三区99| 国产一区二区不卡老阿姨| 久久美女高清视频| 粉嫩久久99精品久久久久久夜| 中文字幕精品三区| 在线看国产一区二区| 亚洲电影激情视频网站| 91精品在线免费| 国产一区二区精品久久99| 亚洲欧洲日本在线| 欧美日韩亚洲综合在线 | 亚洲视频一区二区在线观看| 色婷婷久久久亚洲一区二区三区 | 国产精品蜜臀av| 色综合天天天天做夜夜夜夜做| 夜夜嗨av一区二区三区| 日韩精品一区二区在线| 国产精品毛片久久久久久| 日韩欧美中文字幕一区| 欧美人妖巨大在线| 欧美三区在线观看| 色94色欧美sute亚洲线路一ni | 韩国女主播成人在线| 午夜精品一区二区三区电影天堂| 一区二区中文字幕在线| 欧美国产一区视频在线观看| 久久久久久久综合日本| 欧美mv日韩mv亚洲| 日韩欧美亚洲一区二区| 亚洲成在人线免费| 欧美精品高清视频| 国产91露脸合集magnet| 日韩在线观看一区二区| 国产精品久久久久天堂| 日韩一级二级三级| 一本大道久久a久久精品综合| 九九在线精品视频| 亚洲国产综合视频在线观看| 精品国产乱码久久久久久免费| 91香蕉视频mp4| 国产成人综合精品三级| 日韩精品一二三四| 一区二区三区在线视频免费 | 国产喷白浆一区二区三区| 欧美日韩中文精品| 99久久精品免费看国产| 国产精品亚洲视频| 麻豆国产精品777777在线| 亚洲影院理伦片| 国产精品毛片无遮挡高清| 精品国产污网站| 欧美美女激情18p| 色婷婷综合久久久久中文一区二区| 国产精品1区二区.| 激情五月播播久久久精品| 调教+趴+乳夹+国产+精品| 亚洲欧美激情插| 成人欧美一区二区三区视频网页| 精品999久久久| 日韩精品一区二区三区在线观看 | 日韩一区欧美一区| 国产日韩欧美在线一区| 久久亚洲精品国产精品紫薇| 日韩精品一区二区三区老鸭窝 | 91精品国产aⅴ一区二区| 在线免费观看日韩欧美| 91色.com| 91丝袜美女网| 91女人视频在线观看| 99久久精品国产观看| 99视频热这里只有精品免费| 成人午夜电影网站| 99热精品一区二区| 97精品电影院| 在线精品视频免费播放| 欧美曰成人黄网| 色哟哟欧美精品| 欧美日韩精品福利| 欧美精品九九99久久| 欧美一区二区三区不卡| 日韩视频在线观看一区二区| 日韩午夜激情免费电影| 欧美mv和日韩mv的网站| 国产女人18水真多18精品一级做| 欧美国产激情一区二区三区蜜月| 国产精品毛片久久久久久久| 中文字幕乱码久久午夜不卡| 亚洲人一二三区| 樱桃国产成人精品视频| 亚洲最大成人网4388xx| 免费一区二区视频| 国产成人自拍高清视频在线免费播放| 成人国产免费视频| 91国偷自产一区二区三区成为亚洲经典 | 99热99精品| 一本在线高清不卡dvd| 欧美性猛交xxxx乱大交退制版 | jizzjizzjizz欧美| 91免费看片在线观看| 欧美裸体一区二区三区| 久久夜色精品国产噜噜av| 久久精品国产99国产| 国产精品自拍一区| 97精品国产97久久久久久久久久久久| 在线观看三级视频欧美| 欧美mv日韩mv亚洲| 亚洲色欲色欲www在线观看| 久久天天做天天爱综合色| 国产精品视频免费| 国产一区日韩二区欧美三区| 欧美精品成人一区二区三区四区| ●精品国产综合乱码久久久久 | 丁香六月综合激情| 欧美zozo另类异族| 奇米综合一区二区三区精品视频| 欧美性欧美巨大黑白大战| 综合久久综合久久| a级精品国产片在线观看| 国产欧美日韩精品在线| 国产乱码一区二区三区| 欧美电视剧免费观看| 麻豆国产欧美一区二区三区| 日韩一区二区三区在线视频| 国产精品理论片| 国产精品美日韩| 韩国三级电影一区二区| 欧美色综合网站| 国产精品久久网站| 国产资源精品在线观看| 欧美色视频在线观看| 国产精品亲子伦对白| 中文字幕视频一区二区三区久| 国产在线不卡视频| 久久色在线视频| 国产福利一区二区| 国产欧美一区二区在线| 成人精品鲁一区一区二区| 国产精品网站一区| 91视频免费观看| 亚洲欧美日韩一区二区三区在线观看 | 亚洲综合成人在线视频| 日本韩国精品一区二区在线观看| 亚洲视频狠狠干| 欧美亚一区二区| 日本aⅴ亚洲精品中文乱码| 精品久久久久久亚洲综合网| 国产 日韩 欧美大片| 一区在线中文字幕| 在线视频综合导航| 免费人成网站在线观看欧美高清| 久久伊99综合婷婷久久伊|