由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - hashmap跟hash table有啥区别?
相关主题
多线程hashmap。 实现方法讨论三连击
刷题网medium题和自己实现一个hashtable,哪个难HashMap, HashTable and Array 有啥区别
如何 serialization 和deserialization hash table ?问几个关于hash, map, set的问题
2-sum 用hash table实现的问题弱弱的问问hash, hashtable?
hashmap和hashtable的区别?关于Implement hashtable的问题
问道多线程的简单题目请问:C++里一般用什么做hashtable?
也问一个算法题简历怎么写才能吸引人呢
请问如何准备多线程问题分别用LinkedList和HashMap构建字典树(Compact Trie)怎么做
相关话题的讨论汇总
话题: hashmap话题: hash话题: hashtable话题: values话题: table
进入JobHunting版参与讨论
1 (共1页)
P*******b
发帖数: 1001
1
不是一回事吗?
f*********5
发帖数: 576
2
please search from web
BTW,you can ignore it if u didn't write JAVA in your resume

【在 P*******b 的大作中提到】
: 不是一回事吗?
P*******b
发帖数: 1001
3
不会java。wiki上这么说的:
In computer science, a hash table or hash map is a data structure that uses
a hash function to map identifying values, known as keys, (e.g., a person's
name) to their associated values (e.g., their telephone number). The hash fu
nction is used to transform the key into the index (the hash) of an array el
ement (the slot or bucket) where the corresponding value is to be sought.

【在 f*********5 的大作中提到】
: please search from web
: BTW,you can ignore it if u didn't write JAVA in your resume

f*********5
发帖数: 576
4
Q:
Difference between HashMap and HashTable?
A: The HashMap class is roughly equivalent to Hashtable, except
that it is unsynchronized and permits nulls. (HashMap allows null values
as key and value whereas Hashtable doesnt allow). HashMap does not
guarantee that the order of the map will remain constant over time.
HashMap is unsynchronized and Hashtable is synchronized.

uses
person's
hash fu
array el
sought.

【在 P*******b 的大作中提到】
: 不会java。wiki上这么说的:
: In computer science, a hash table or hash map is a data structure that uses
: a hash function to map identifying values, known as keys, (e.g., a person's
: name) to their associated values (e.g., their telephone number). The hash fu
: nction is used to transform the key into the index (the hash) of an array el
: ement (the slot or bucket) where the corresponding value is to be sought.

y****n
发帖数: 579
5
自己google嘛。
http://www.artima.com/forums/flat.jsp?forum=1&thread=78029
1. Both are classes comes under the util package and both are used to store
keyvalue pair values
2. Hashtable is synchronized and called as legacy classes Hashmap is Non -
synchronized & called as Non Legacy classes
(Serializable: it store the object state in ur machine ok. it similar to the
network layer process. while sending ur data to the other system through
network for avoiding pocket loss we use serialization. this proc
P*******b
发帖数: 1001
6
感觉都是针对java语言本书的实现

store
the
maintain

【在 y****n 的大作中提到】
: 自己google嘛。
: http://www.artima.com/forums/flat.jsp?forum=1&thread=78029
: 1. Both are classes comes under the util package and both are used to store
: keyvalue pair values
: 2. Hashtable is synchronized and called as legacy classes Hashmap is Non -
: synchronized & called as Non Legacy classes
: (Serializable: it store the object state in ur machine ok. it similar to the
: network layer process. while sending ur data to the other system through
: network for avoiding pocket loss we use serialization. this proc

1 (共1页)
进入JobHunting版参与讨论
相关主题
分别用LinkedList和HashMap构建字典树(Compact Trie)怎么做hashmap和hashtable的区别?
请教个面试题, tree和hashmap的区别问道多线程的简单题目
Amazon 电面也问一个算法题
leetcode longest consecutive sequence还是想不通!请问如何准备多线程问题
多线程hashmap。 实现方法讨论三连击
刷题网medium题和自己实现一个hashtable,哪个难HashMap, HashTable and Array 有啥区别
如何 serialization 和deserialization hash table ?问几个关于hash, map, set的问题
2-sum 用hash table实现的问题弱弱的问问hash, hashtable?
相关话题的讨论汇总
话题: hashmap话题: hash话题: hashtable话题: values话题: table