国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

代做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++語言程序代寫
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    亚洲国产日韩美| 国产欧美日韩亚洲| 久久亚洲国产精品成人av秋霞| 久久riav| 国产精品69久久久久| 国产精品91视频| 国产成人艳妇aa视频在线| 国产超级av在线| 久久久久久久久久久福利| 久久精品91久久久久久再现| 久久视频精品在线| 国产精品吹潮在线观看| 欧美日本精品在线| 亚洲伊人婷婷| 日韩精品久久久| 黄色一级视频在线播放| 国产一区 在线播放| 成人毛片网站| 国产成人精品福利一区二区三区| 国产福利视频一区| 国产精品天天狠天天看| 精品国产乱码久久久久久郑州公司| 欧美激情视频网| 少妇精品久久久久久久久久| 秋霞久久久久久一区二区| 精品人妻人人做人人爽| 国产精品一区二区三区免费| 久久人人看视频| 国产精品视频一区二区高潮 | 青青青国产精品一区二区| 日本高清一区| 国产在线精品一区二区三区| 成人精品视频在线播放| 久久99精品久久久久久秒播放器| 国产精品成人av在线| 亚洲区成人777777精品| 欧美在线日韩在线| 成人免费福利在线| 久久精品成人欧美大片| 亚洲五月六月| 内射国产内射夫妻免费频道| 91免费视频国产| 国产精品久久一区| 色视频一区二区三区| 国产中文字幕在线免费观看| 99久久精品免费看国产四区| 北条麻妃久久精品| 婷婷亚洲婷婷综合色香五月| 蜜桃传媒视频麻豆第一区免费观看| 91精品国产自产91精品| 不卡中文字幕av| 欧美亚洲国产日本| 国产成人精品久久久| 欧美激情精品久久久久久久变态| 欧美一级电影久久| 国产精品91久久久| 欧美激情一区二区三级高清视频| 欧美欧美一区二区| 国产成人激情小视频| 中文字幕在线亚洲三区| 青青青国产在线观看| 68精品久久久久久欧美| 美日韩精品视频免费看| 激情综合网俺也去| 色偷偷噜噜噜亚洲男人的天堂| 午夜精品久久久久久久无码 | 欧美激情中文字幕在线| 男人舔女人下面高潮视频| 久久久久五月天| 天天人人精品| 国产经典久久久| 亚洲制服欧美久久| 国产伦精品一区二区三区照片 | 国产精品亚洲αv天堂无码| 国产精品三级网站| 欧美婷婷久久| 国产成人无码a区在线观看视频 | 国产专区欧美专区| 中文字幕在线乱| 日韩电影天堂视频一区二区| 欧美成人免费一级人片100| 北条麻妃在线视频观看| 国产精品电影网| 欧美亚洲视频在线看网址| 国产超级av在线| 色999五月色| 久久青青草综合| 熟女少妇精品一区二区| 久久久精品在线视频| 涩涩日韩在线| 欧美一级视频免费看| 国产ts一区二区| 中文字幕色呦呦| 久99久视频| 日韩精品在在线一区二区中文| 青青草影院在线观看| 91精品国产高清久久久久久91 | 久久国产色av| 欧美激情一级精品国产| 久久精品国产一区二区三区日韩 | 伊人久久在线观看| 97国产精品视频| 午夜精品一区二区三区视频免费看 | 久久久久久久国产| 日韩精品免费播放| 精品国偷自产在线视频| 国内免费久久久久久久久久久| 国产精品国产三级国产aⅴ9色 | 国产情侣第一页| 亚洲一区高清| 久久免费视频3| 日韩免费在线观看视频| 国产精品久久中文| 成人免费观看毛片| 日韩免费中文字幕| 久久成年人免费电影| 97成人在线视频| 欧美亚洲另类久久综合| 欧美日韩第一页| 国产极品粉嫩福利姬萌白酱| 极品日韩久久| 亚洲一区二区久久久久久久| 日韩在线视频观看正片免费网站| 国产在线观看精品| 亚洲精品一卡二卡三卡四卡| 精品久久国产精品| 国产麻豆电影在线观看| 日本不卡高字幕在线2019| 麻豆国产va免费精品高清在线| 91久久久在线| 免费看污久久久| 日韩一级片免费视频| 国产日韩精品推荐| 国产免费裸体视频| 欧美一区二区三区四区在线| 国产精品视频免费在线| 99电影在线观看| 欧美午夜精品久久久久久蜜| 伊人久久在线观看| 国产精品视频精品| 91极品视频在线| 欧美牲交a欧美牲交aⅴ免费真| 亚洲一区二区三区四区视频 | 精品国偷自产一区二区三区| 久久精品ww人人做人人爽| 国产免费一区二区三区视频| 青青青在线视频播放| 在线视频不卡一区二区| 国产精品免费区二区三区观看| 久久久一本精品99久久精品| 国产美女永久无遮挡| 欧美日韩另类综合| 日日摸日日碰夜夜爽av| 欧美伦理91i| 日韩在线免费视频| 久久男人资源站| 99视频在线免费播放| 国产视频精品网| 韩国v欧美v日本v亚洲| 欧美少妇一区| 奇米888一区二区三区| 亚洲xxxx做受欧美| 亚洲综合中文字幕在线观看| 久久五月天综合| 国产精品电影网站| 久久九九亚洲综合| 色偷偷av亚洲男人的天堂| 国产精品69精品一区二区三区| 国产精品一区二区你懂得| 女同一区二区| 欧美 国产 精品| 欧美不卡在线一区二区三区| 热re99久久精品国产66热| 日产精品久久久一区二区| 亚洲成人av动漫| 亚洲不卡中文字幕无码| 亚洲三区视频| 亚洲精品日韩激情在线电影| 亚洲五码在线观看视频| 亚洲精品乱码视频| 午夜精品久久久久久久99热浪潮 | 欧美一区二区综合| 日韩欧美猛交xxxxx无码| 日韩av成人在线| 热久久免费国产视频| 青青青青草视频| 欧美亚洲日本网站| 欧美久久电影| 国产一区二区色| 成人精品视频99在线观看免费| 成人在线免费观看一区| 91高跟黑色丝袜呻吟在线观看| 国产激情在线看| y97精品国产97久久久久久| 精品国产一区二区三区在线观看 | 欧美 日韩 国产 高清| 免费看又黄又无码的网站| 国产在线一区二区三区欧美 | 久久综合88中文色鬼| 中文字幕成人一区|