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

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做00301J 、Java設計編程代寫
代做00301J 、Java設計編程代寫

時間:2024-10-09  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Data Structures and Algorithms Hash Tables 
CRICOS Provide Code: 00301J Page 1 of 3 
 
Note: 
• hashArray stores the key, value and state (used, free, or previously-used) 
of every hashEntry. 
We must store both the key and value since we need to check hashArray 
to tell if there is a collision and we should keep probing until we find the 
right key. 
• put(), hasKey() and get() must take the passed-in key and call hash() to 
convert the key into an integer. This integer is then used as the index for 
hashArray. 
• Java Students: If you use a private inner class for DSAHashEntry, then 
put(DSAHashEntry will need to be private, otherwise it will be public. 
• There are many hash functions in existence, but all hash functions must 
be repeatable (i.e., the same key will always give the same index). A good 
hash function is fast and will distribute keys evenly inside hashArray. 
Hash Tables 
 
Updated: 21st 
July, 2023 
 
Aims 
• To implement a hash table. 
• To make the above hash table automatically resize. 
• To save the hash table and reload it from a file. 
 
Before the Practical 
• Read this practical sheet fully before starting. 
 
Activities 

1. Hash Table Implementation 
Following the lecture slides as a guide, Create DSAHashTable class and a companion 
class called DSAHashEntry to implement a hash table with a simple hash function. Use 
linear probing first since it’s easier to think about, then convert to double-hashing. 
Assume the keys are strings and the values are Objects. 
 Data Structures and Algorithms Hash Tables 
CRICOS Provide Code: 00301J Page 2 of 3  
 
Note: 
• Of course, the latter depends on the distribution of the keys as well, so it’s 
not easy to say what a good hash function will be without knowing the 
keys. 
For the purpose of this practical, just use one of the hash functions from 
the lecture notes. 
• Use linear probing or double-hashing to handle collisions when inserting. 
• hasKey(), get() and remove() will need to use the same approach since 
they also need to find the right item. 
It’s probably a good idea to try make a private find() method that does 
the probing for these three functions and returns the index to use. Use the 
DSAHashEntry state to tell you when to stop probing. 
• Be aware that remove() with probing methods adds the problem that it 
can break probing unless additional measures are taken. 
– In particular, say we added Key1, then Key2 which collides with 
Key1, so we linearly probe and add Key2 to the next entry. 
If we remove Key1, later attempts to get Key2 will fail because Key2 
maps to where Key1 used to be. 
Since it is now null, probing will abort and imply that Key2 doesn’t 
exist. 
– The solution is to use the state filed in DSAHashEntry that tracks 
whether the entry has been used before or not. 
 
2. Resizing a Hash Table 
Modify your DSAHashTable to allow it to resize. There are various ways to determine 
when to and how to resize a hash table. 
 
The simplest way to determine when is to set an upper and lower threshold value 
for the load factor. When the number of elements is outside of this, the put() or 
remove() methods should call resize(size) automatically. 
• Remember, this will be computationally expensive (what is it it in Big-O?), so it is 
important not to set the threshold too low. Also, collisions occur more frequently 
at higher load factors, thus it is equally important to not set the threshold too 
high. Do some research to find "good" values. 
A simple way to resize is to create a new array, then iterate over hashArray (ignoring 
unused and previously used slots) and re-hashing (using put(). 
• To select a suitable size for the new array, you can either use a "look up" table of 
suitable primes or re-calculate a new prime after doubling/halving the previous 
size. 
Test your resize functionality with a small hash table size, just so you know it will 
work when you increase the size of the table. Data Structures and Algorithms Hash Tables 
CRICOS Provide Code: 00301J Page 3 of 3 
 
 
3. File I/O 
To truly test your hash table implementation, you will need a large dataset. Read in 
the RandomNames7000.csv as input to insert values into your hash table. There are some 
duplicates in the file, so your program should be able to handle them. 
 
It is also useful to be able to save the hash table. The save order is not important, 
so just iterate through the keys and values in the order they are stored in the hash 
table and write it to a .csv. 
 
Submission Deliverable 
• Your code are due 2 weeks from your current tutorial session. 
– You will demonstrate your work to your tutors during that session 
– If you have completed the practical earlier, you can demonstrate your work 
during the next session 
• You must submit your code and any test data that you have been using electronically
via Blackboard under the Assessments section before your demonstration. 
– Java students, please do not submit the *.class files 
 
Marking Guide 
Your submission will be marked as follows: 
• [6] Your DSAHashTable and DSAHashEntry are implemented correctly. 
• [4] Your hash function is well thought out and properly implemented. 
This means that it meets at least the first three criteria of a good hash function and 
you can argue that it at least partially meets the last. 
• [5] Your hash table resizes as you put and remove hash entries. 
• [5] You can read in and save .csv files. 
End of Worksheet 

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

掃一掃在手機打開當前頁
  • 上一篇:FIT5147代寫、代做css/Java編程語言
  • 下一篇:代做CITS2002、C/C++語言程序代寫
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

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

          9000px;">

                日韩电影在线免费| 在线一区二区三区四区| 欧美午夜精品久久久久久孕妇| 中文在线免费一区三区高中清不卡 | 激情综合网av| 国产欧美一区视频| 在线免费不卡电影| 极品少妇一区二区| 中文字幕一区免费在线观看| 精品视频在线视频| 久久精品国产99国产| 日本一区二区三区久久久久久久久不| jiyouzz国产精品久久| 一区二区三国产精华液| 91精品久久久久久蜜臀| 国产精品羞羞答答xxdd| 亚洲自拍偷拍欧美| 久久久www成人免费毛片麻豆| 国产成人夜色高潮福利影视| 一区二区三区 在线观看视频| 精品久久久久av影院| 色猫猫国产区一区二在线视频| 蜜臀va亚洲va欧美va天堂| 国产精品久久三| 日韩欧美一级在线播放| 99久久国产综合色|国产精品| 日韩综合小视频| 国产精品嫩草影院com| 日韩女优制服丝袜电影| 色婷婷久久99综合精品jk白丝| 国产精品中文字幕一区二区三区| 亚洲地区一二三色| 亚洲美腿欧美偷拍| 久久久久久久av麻豆果冻| 欧美日韩一区国产| 99国产精品久| 粉嫩久久99精品久久久久久夜| 另类小说一区二区三区| 亚洲成人久久影院| 亚洲蜜桃精久久久久久久| 中文在线资源观看网站视频免费不卡| 欧美不卡一区二区三区四区| 欧美三级视频在线| 在线亚洲一区观看| 99精品黄色片免费大全| 成人国产一区二区三区精品| 国产在线精品一区二区夜色| 蜜臀av一区二区在线免费观看| 亚洲va国产天堂va久久en| 亚洲欧美欧美一区二区三区| 久久久高清一区二区三区| 日韩免费视频线观看| 欧美一区二区三区免费视频| 欧美色男人天堂| 欧美视频中文字幕| 中文字幕+乱码+中文字幕一区| 日韩视频在线永久播放| 综合激情成人伊人| 欧美成人精精品一区二区频| 91丨九色porny丨蝌蚪| proumb性欧美在线观看| 国产综合成人久久大片91| 国产一区视频导航| 国产成人av一区| 成人一区二区在线观看| 不卡的电影网站| 99久久久久久99| 99国产麻豆精品| 99精品国产99久久久久久白柏| 91香蕉视频mp4| 色av成人天堂桃色av| 欧洲一区在线观看| 欧美精品电影在线播放| 欧美一区二区视频在线观看| 日韩欧美区一区二| 欧美激情在线观看视频免费| 自拍偷拍国产精品| 亚洲成人激情av| 奇米精品一区二区三区四区| 紧缚奴在线一区二区三区| 国产精品系列在线观看| 懂色av一区二区三区免费看| 99国产麻豆精品| 欧美日韩一区小说| 日韩免费视频线观看| 国产精品久久久久婷婷二区次| 一区在线播放视频| 日本成人中文字幕| 成人免费av资源| 欧美久久久一区| 国产日韩欧美一区二区三区乱码| 亚洲女厕所小便bbb| 开心九九激情九九欧美日韩精美视频电影| 国产精品一区二区三区乱码| 91美女片黄在线观看91美女| 欧美一级高清片在线观看| 久久女同性恋中文字幕| 亚洲制服丝袜在线| 日韩亚洲欧美一区| 国产精品电影院| 麻豆精品视频在线| 色一情一伦一子一伦一区| 欧美精品一区男女天堂| 一区二区三区精品视频在线| 国产欧美日韩综合精品一区二区| 亚洲影院免费观看| 成人自拍视频在线观看| 6080yy午夜一二三区久久| 国产精品家庭影院| 精品伊人久久久久7777人| 91成人免费在线视频| 欧美激情一二三区| 国产在线国偷精品免费看| 欧美精品在线视频| 综合欧美一区二区三区| 国产一区二区精品在线观看| 在线不卡的av| 亚洲综合色噜噜狠狠| 99精品视频免费在线观看| 精品久久国产字幕高潮| 亚洲在线视频一区| 99久久久国产精品免费蜜臀| 久久久久久9999| 久久精品理论片| 欧美精品123区| 亚洲aaa精品| 欧美色视频在线观看| 久久久国产精品不卡| 婷婷丁香激情综合| av在线不卡网| 中文字幕一区二区在线播放| 国产成人免费xxxxxxxx| 国产欧美视频一区二区三区| 国产乱码字幕精品高清av| 日韩一区二区三| 免费观看91视频大全| 日韩一卡二卡三卡四卡| 久久精品国产亚洲高清剧情介绍| 欧美人与性动xxxx| 日本va欧美va精品发布| 日韩欧美专区在线| 久久精品国产亚洲a| 久久久影视传媒| 成人在线综合网站| 亚洲视频小说图片| 欧美视频第二页| 日产精品久久久久久久性色| 精品国产精品网麻豆系列| 国产精品一级片| 国产精品久久久久桃色tv| 色婷婷亚洲综合| 男男视频亚洲欧美| 久久久久国色av免费看影院| 成人免费看的视频| 亚洲国产毛片aaaaa无费看 | 首页亚洲欧美制服丝腿| 91精品福利在线一区二区三区| 久久国产精品免费| 欧美国产视频在线| 色噜噜狠狠成人网p站| 日本色综合中文字幕| 精品播放一区二区| 97精品视频在线观看自产线路二| 亚洲一区在线观看免费观看电影高清 | 亚洲va天堂va国产va久| 日韩欧美成人一区| 91毛片在线观看| 麻豆极品一区二区三区| 国产精品色哟哟网站| 欧美日韩中文国产| 国产99久久久久久免费看农村| 亚洲欧美福利一区二区| 日韩欧美一级二级三级| 99久久99久久精品免费看蜜桃| 丝袜诱惑制服诱惑色一区在线观看 | 亚洲欧美日韩在线| 日韩精品最新网址| 91亚洲精品乱码久久久久久蜜桃| 奇米一区二区三区av| 亚洲免费观看高清完整| 久久久久久久久99精品| 欧美日韩亚洲另类| 91丨九色丨黑人外教| 国产精品乡下勾搭老头1| 石原莉奈在线亚洲二区| 亚洲欧美福利一区二区| 国产亚洲综合av| 欧美丰满少妇xxxbbb| 欧洲国内综合视频| 不卡视频一二三四| 国产最新精品免费| 日韩精品高清不卡| 亚洲v日本v欧美v久久精品| 日韩毛片高清在线播放| 久久免费精品国产久精品久久久久| 欧美日高清视频| 91豆麻精品91久久久久久| av资源网一区| av网站免费线看精品| 九色综合国产一区二区三区|