Re: is it true that hash-tables increase their capacity to the next prime number?



+ Kaz Kylheku <kkylheku@xxxxxxxxx>:

There is also quadratic probing, where a quadratic function is used
to scan through the entries. For instance hash(key) + i^2, for i =
0, 1, 2, ... A prime table size allows quadratic probing to also
visit all of the nodes.

That doesn't sound right to me. You should get only half of the
nodes, since squaring modulo P is a two-to-one map. More precisely,
n^2 is congruent to (P-n)^2 modulo P.

--
* Harald Hanche-Olsen <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
when there is no ground whatsoever for supposing it is true.
-- Bertrand Russell
.



Relevant Pages

  • Re: Anyone else mucking with SLRN around here?
    ... and I only create entries to kill things so that's good), ... super easy editor. ... This is our music from the bachelor's den, the sound of loneliness ...
    (comp.sys.mac.apps)
  • Re: Error ID = 0xC00D11BA, Condition ID = 0x00000000
    ... I'm not sure what entries you deleted? ... > My computer does not have sound. ... > in use by another program, or it may not be functioning properly." ... > But at the Audio Tab shows " No Playback Devices", ...
    (microsoft.public.windowsmedia.player)
  • Re: dimension xps not recognizing cd
    ... The events log doesn't show it. ... manager usually doesn't recognize the sound card when ... > First thing is to post any relevant entries in the Event Logs. ...
    (alt.sys.pc-clone.dell)
  • Re: Catawba Worm farms could be the next big thing
    ... who promises a shiny new nickel to whoever first correctly identifies ... source of that sound. ... It's actually forehead on desktop.......but the entries haven't exactly ...
    (rec.outdoors.fishing.fly)
  • Re: Stolen from the Yanks group...funny stuff...
    ... It did sound like The Onion...but funnier than most of their entries. ... I've heard there are even some Oakland Raiders fans left around. ...
    (alt.sports.baseball.bos-redsox)