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

                国产精品美女久久久久久久 | 成人精品gif动图一区| a在线欧美一区| 欧美不卡一区二区| 日产精品久久久久久久性色| 在线视频国内自拍亚洲视频| 午夜精品福利一区二区蜜股av| 欧美日韩免费一区二区三区视频| 欧美一区日韩一区| 亚洲国产欧美在线| 成人av在线播放网站| 久久精品这里都是精品| 国产精品午夜春色av| 亚洲欧美另类久久久精品2019| 亚洲色图一区二区| 毛片av中文字幕一区二区| 极品瑜伽女神91| 欧美日韩精品电影| 日韩伦理免费电影| 色香色香欲天天天影视综合网| 欧美吻胸吃奶大尺度电影 | 婷婷中文字幕一区三区| 欧美高清精品3d| 日韩欧美色综合| 国产精品久久久久影院| 久久久久久黄色| 国产色综合久久| 色婷婷综合五月| 久久99在线观看| 欧美日韩一卡二卡| 成人免费视频网站在线观看| 亚洲国产中文字幕| 日韩国产在线一| 欧美日韩免费观看一区二区三区| 国产精品灌醉下药二区| 亚洲mv大片欧洲mv大片精品| 色狠狠色噜噜噜综合网| 亚洲激情图片qvod| 欧美体内she精视频| 日韩av午夜在线观看| 日韩欧美色综合网站| 丁香六月综合激情| 午夜欧美一区二区三区在线播放| 欧美视频第二页| 精品一区二区三区免费视频| 久久亚洲一级片| 欧美丝袜丝交足nylons图片| 美女视频黄久久| 中文字幕制服丝袜一区二区三区| 99久久伊人精品| 免费成人在线网站| 国产精品免费视频一区| 欧美群妇大交群的观看方式| 国产美女久久久久| 一级特黄大欧美久久久| 国产精品一区二区三区四区| 亚洲夂夂婷婷色拍ww47 | 色国产精品一区在线观看| 国产一区二区三区四区五区美女| 成人免费视频一区| 国产白丝精品91爽爽久久| 高清久久久久久| 91视视频在线直接观看在线看网页在线看| 国产经典欧美精品| 92国产精品观看| 99久久综合99久久综合网站| 国内精品写真在线观看| 亚洲视频一二三| 国内成人自拍视频| 亚洲男人天堂av网| wwwwww.欧美系列| 国产乱对白刺激视频不卡| 亚洲国产高清不卡| 欧美蜜桃一区二区三区| 日韩一级视频免费观看在线| 97精品国产97久久久久久久久久久久| 狠狠色狠狠色综合系列| 亚洲婷婷综合色高清在线| 久久久久久久久久久久久女国产乱| 本田岬高潮一区二区三区| 国产精品欧美综合在线| 91原创在线视频| 另类小说欧美激情| 中文字幕免费观看一区| 91在线视频免费91| 在线亚洲一区二区| 欧美精品成人一区二区三区四区| 亚洲黄色在线视频| 久久99热这里只有精品| 日韩亚洲欧美成人一区| 99re亚洲国产精品| 亚洲一区二区三区四区在线免费观看 | 一区二区在线观看av| 亚洲欧美中日韩| 亚洲理论在线观看| 一区二区三区欧美日韩| 亚洲精品一二三| 亚洲激情图片一区| 亚洲主播在线观看| 精品一区二区三区欧美| 麻豆高清免费国产一区| 国产一区亚洲一区| 国产iv一区二区三区| 日韩精品午夜视频| 蜜臀精品一区二区三区在线观看| 美女网站色91| 久久精品理论片| 不卡欧美aaaaa| 蜜桃av噜噜一区| 91精品欧美福利在线观看| 欧美一区二区三区色| 久久精品国产秦先生| 国产一区二区三区高清播放| www.欧美日韩国产在线| 色中色一区二区| 日韩三级电影网址| 国产日韩欧美麻豆| 亚洲mv在线观看| 久久精品国产澳门| 欧美自拍偷拍一区| 精品国产一区久久| 中文字幕一区日韩精品欧美| 亚洲一二三四在线| 国产成人免费视频| 欧美性感一区二区三区| 久久久91精品国产一区二区精品| 国产精品福利一区| 美国十次综合导航| 欧美精品乱码久久久久久| 国产精品网友自拍| 久久精品av麻豆的观看方式| 91蜜桃免费观看视频| 精品不卡在线视频| 日韩福利电影在线| 色综合天天狠狠| 国产精品欧美极品| 狠狠网亚洲精品| 日韩精品中午字幕| 日日嗨av一区二区三区四区| 成人18视频日本| 久久久午夜精品理论片中文字幕| 久久久精品国产99久久精品芒果 | 国产一区二区主播在线| 岛国精品一区二区| 欧美日韩高清不卡| 亚洲国产综合色| 97久久超碰国产精品| 中文字幕一区二区三区在线不卡| 国产成人亚洲综合a∨婷婷图片 | 粉嫩在线一区二区三区视频| 91麻豆精品国产91| 日韩国产在线观看| 日韩三级在线免费观看| 久久国产生活片100| 久久久精品国产99久久精品芒果| 国产精品综合久久| 中文字幕字幕中文在线中不卡视频| 风间由美性色一区二区三区| 中文字幕精品三区| 丁香另类激情小说| 亚洲欧美一区二区在线观看| 成人av动漫在线| 亚洲成人激情社区| 6080yy午夜一二三区久久| 丝袜国产日韩另类美女| 色婷婷综合久久久中文一区二区| 亚洲激情校园春色| 日韩免费在线观看| 成人综合激情网| 水野朝阳av一区二区三区| 日本一区二区免费在线观看视频 | 欧美aaa在线| 亚洲免费大片在线观看| 日韩美女天天操| www.66久久| 久久66热偷产精品| 亚洲四区在线观看| 精品剧情在线观看| 顶级嫩模精品视频在线看| 亚洲一二三四在线观看| 亚洲国产精品ⅴa在线观看| 欧美剧情片在线观看| 在线中文字幕不卡| 国产精品一区二区在线看| 亚洲大片一区二区三区| 欧美白人最猛性xxxxx69交| 97精品国产97久久久久久久久久久久 | 国产永久精品大片wwwapp| 94-欧美-setu| 精品一区精品二区高清| 免费看精品久久片| 久久激情综合网| 国内精品视频666| 国产精品一区二区久久不卡| 国产一区二区三区黄视频| 国产成人av一区| 91影院在线观看| 91丨porny丨首页| 懂色av一区二区夜夜嗨| 丁香婷婷综合激情五月色|