Topic: hashtable在API中这样说明,最后一句是什么意思?

  Print this page

1.hashtable在API中这样说明,最后一句是什么意思? Copy to clipboard
Posted by: m00nsun
Posted on: 2004-09-23 16:39

Constructs a new, empty hashtable with a default initial capacity (11) and load factor, which is 0.75.
最后一句 load factor, which is 0.75用中文解释是什么意思

2.Re:hashtable在API中这样说明,最后一句是什么意思? [Re: m00nsun] Copy to clipboard
Posted by: 极品飞车
Posted on: 2004-09-23 16:48

The load factor is a measure of how full the hash table is allowed to get before its capacity is automatically increased.
Generally, the default load factor (.75) offers a good tradeoff between time and space costs
load factor 负载系数也译为装填因子

3.Re:hashtable在API中这样说明,最后一句是什么意思? [Re: m00nsun] Copy to clipboard
Posted by: why
Posted on: 2004-09-23 16:56

From: http://java.sun.com/j2se/1.4.2/docs/api/java/util/Hashtable.html
1. The load factor is a measure of how full the hash table is allowed to get before its capacity is automatically increased.

2. The default load factor is 0.75

oops.. 中文
...我唔曉 Embaressed


回楼下的:
不就是当 hashtable 负载到 load factor x 容量时,它会自动扩大容量。

4.Re:hashtable在API中这样说明,最后一句是什么意思? [Re: m00nsun] Copy to clipboard
Posted by: m00nsun
Posted on: 2004-09-23 17:02

负载系数or装载因子是什么意思呢?
对程序来说有什么影响呢


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923