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

                久久69国产一区二区蜜臀| 有码一区二区三区| 中文字幕一区二区三区四区 | 久久看人人爽人人| 国产精品热久久久久夜色精品三区 | 菠萝蜜视频在线观看一区| 欧美日韩一区二区三区四区 | 欧美日韩国产电影| 亚洲精品免费电影| 色综合天天综合网天天看片| 国产精品麻豆视频| 国产精品一区免费视频| 欧美日本一区二区| 亚洲精品视频观看| 成人激情免费电影网址| 久久综合久色欧美综合狠狠| 久久www免费人成看片高清| 337p亚洲精品色噜噜| 午夜在线电影亚洲一区| 91精品国产综合久久国产大片| 亚洲精品视频在线观看网站| 国产一区二区三区日韩| 欧美视频日韩视频| 国内成人自拍视频| 91浏览器入口在线观看| 激情综合色播激情啊| 国产在线精品免费av| 国产91对白在线观看九色| 国产成人精品一区二区三区网站观看 | 欧美日韩一级片网站| 欧美日韩国产一区| 日韩精品一区二区三区在线 | 92精品国产成人观看免费| 久久99精品久久久久婷婷| 一区二区不卡在线播放| 91.xcao| 综合久久久久久久| 亚洲视频你懂的| 亚洲国产日韩一区二区| 日本欧美在线观看| 裸体歌舞表演一区二区| 国产精品一区二区不卡| 91免费视频网| 国产精品电影一区二区三区| 欧美一区二区在线不卡| 26uuu色噜噜精品一区| 中文字幕免费在线观看视频一区| 中文字幕一区二区视频| 日产欧产美韩系列久久99| 国产精品资源网站| 91久久国产最好的精华液| 精品国产伦一区二区三区免费| 国产精品伦一区| 青青草国产精品亚洲专区无| 大美女一区二区三区| 欧美日韩国产首页| 国产精品国产精品国产专区不蜜 | 欧美日韩精品欧美日韩精品一| 精品国产人成亚洲区| 亚洲综合在线第一页| 国产高清亚洲一区| 6080亚洲精品一区二区| 亚洲精品视频观看| 国产91精品一区二区麻豆亚洲| 91精品国产色综合久久不卡电影| 亚洲色欲色欲www| 国产黄色精品网站| 日韩视频在线一区二区| 亚洲成人av电影在线| 在线一区二区三区四区| 国产精品免费视频一区| 国产在线不卡一卡二卡三卡四卡| 日韩视频一区二区| 亚欧色一区w666天堂| 一本色道综合亚洲| 亚洲视频小说图片| 一本久久精品一区二区| 国产精品不卡一区| 高清beeg欧美| 中文字幕在线不卡| 不卡的av在线| 中文字幕日韩一区二区| 99国产欧美另类久久久精品| 国产精品色婷婷久久58| 国产精品99久久久久久久vr| 精品国产99国产精品| 另类的小说在线视频另类成人小视频在线| 欧美性猛交xxxx乱大交退制版| 欧美日韩精品福利| 天涯成人国产亚洲精品一区av| 91麻豆免费看片| 亚洲免费观看视频| 精品视频在线看| 亚洲444eee在线观看| 色婷婷精品大在线视频| 亚洲视频在线一区二区| 136国产福利精品导航| 欧美精品一卡两卡| 日韩精品一区二区三区视频播放| 青青草91视频| 欧美老年两性高潮| 亚洲福利一二三区| 欧美亚洲免费在线一区| 亚洲一区在线观看视频| 亚洲免费av观看| 久久无码av三级| 欧美日韩精品一区二区三区四区| 国产精品夜夜嗨| 蜜桃视频一区二区三区| 亚洲在线免费播放| 中文字幕中文字幕在线一区| 日韩精品综合一本久道在线视频| av电影一区二区| 日本aⅴ精品一区二区三区| 成人免费一区二区三区视频 | 日韩码欧中文字| 久久精品亚洲一区二区三区浴池| 欧美日韩视频在线观看一区二区三区| 福利一区福利二区| 日本亚洲免费观看| 一区二区三区四区不卡视频| 中文字幕一区二区三区蜜月| 中文一区在线播放| 日韩亚洲欧美高清| 欧美肥大bbwbbw高潮| 欧美色欧美亚洲另类二区| 99久久综合色| 色一情一伦一子一伦一区| 成人国产亚洲欧美成人综合网| 国产美女在线精品| 国产精品一区二区久激情瑜伽| 美女在线一区二区| 美女在线视频一区| 国精产品一区一区三区mba桃花| 日本在线观看不卡视频| 日本亚洲免费观看| 蜜臀久久久久久久| 蜜臂av日日欢夜夜爽一区| 日本中文在线一区| 精品中文av资源站在线观看| 美日韩一区二区三区| 久久国产福利国产秒拍| 韩国av一区二区三区| 国内精品国产成人国产三级粉色| 精品一区二区免费在线观看| 久久99国产精品成人| 国产一区日韩二区欧美三区| 麻豆国产精品官网| 成人午夜av电影| 91色porny蝌蚪| 欧美三片在线视频观看| 欧美一卡二卡在线观看| 欧美电视剧免费观看| 久久久久久**毛片大全| 亚洲日本免费电影| 亚洲国产日韩av| 美女一区二区在线观看| 99这里只有久久精品视频| 日本高清不卡一区| 91精品国产综合久久久久久 | 一区二区三区中文免费| 亚洲不卡av一区二区三区| 韩国在线一区二区| 不卡视频免费播放| 欧美日韩色一区| 中文字幕精品三区| 一区二区三区蜜桃| 麻豆极品一区二区三区| 91亚洲精品久久久蜜桃| 5月丁香婷婷综合| 国产欧美视频一区二区三区| 亚洲sss视频在线视频| 国产资源在线一区| 不卡一区二区三区四区| 在线91免费看| 国产精品美女久久久久久久久 | 91啪在线观看| 欧美日韩免费视频| 国产女人18水真多18精品一级做| 亚洲黄色免费网站| 久久99精品久久久久久国产越南| 成人免费观看av| 欧美videofree性高清杂交| 欧美国产97人人爽人人喊| 综合色天天鬼久久鬼色| 国产麻豆精品theporn| 91视频免费播放| 欧美精品一二三| 日韩毛片在线免费观看| 精品在线一区二区| 成人永久免费视频| 久久伊人中文字幕| 亚洲成av人在线观看| 激情成人午夜视频| 亚洲一区在线观看视频| 日韩毛片高清在线播放| 亚洲一本大道在线| 久久久久久久久久久久久女国产乱| 久久久五月婷婷| 亚洲成a人片综合在线|