Click here to Skip to main content
15,914,447 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Random Numbers: Is there anything really random? Pin
Stephen Hewitt29-Apr-07 18:10
Stephen Hewitt29-Apr-07 18:10 
GeneralRe: Random Numbers: Is there anything really random? Pin
Bulky Fellow29-Apr-07 23:26
Bulky Fellow29-Apr-07 23:26 
GeneralRe: Random Numbers: Is there anything really random? Pin
cp987630-Apr-07 0:54
cp987630-Apr-07 0:54 
AnswerMy Random Info Pages Pin
PICguy30-Apr-07 18:55
PICguy30-Apr-07 18:55 
GeneralRe: My Random Info Pages Pin
cp987630-Apr-07 19:14
cp987630-Apr-07 19:14 
GeneralRe: My Random Info Pages Pin
PICguy30-Apr-07 19:29
PICguy30-Apr-07 19:29 
GeneralRe: My Random Info Pages Pin
cp987630-Apr-07 19:40
cp987630-Apr-07 19:40 
AnswerRe: Random Numbers: Is there anything really random? Pin
Frank Kerrigan2-May-07 5:58
Frank Kerrigan2-May-07 5:58 
QuestionProducer/Consumer Questions Pin
Leslie Sanford26-Apr-07 12:29
Leslie Sanford26-Apr-07 12:29 
AnswerRe: Producer/Consumer Questions Pin
Luc Pattyn26-Apr-07 13:50
sitebuilderLuc Pattyn26-Apr-07 13:50 
GeneralRe: Producer/Consumer Questions Pin
Leslie Sanford29-Apr-07 17:09
Leslie Sanford29-Apr-07 17:09 
QuestionLinked lists vs. Arrays Pin
Leslie Sanford25-Apr-07 9:44
Leslie Sanford25-Apr-07 9:44 
AnswerRe: Linked lists vs. Arrays Pin
Luc Pattyn25-Apr-07 14:55
sitebuilderLuc Pattyn25-Apr-07 14:55 
AnswerRe: Linked lists vs. Arrays Pin
Shog925-Apr-07 14:57
sitebuilderShog925-Apr-07 14:57 
GeneralRe: Linked lists vs. Arrays Pin
Leslie Sanford25-Apr-07 15:04
Leslie Sanford25-Apr-07 15:04 
GeneralRe: Linked lists vs. Arrays Pin
Shog925-Apr-07 15:24
sitebuilderShog925-Apr-07 15:24 
Leslie Sanford wrote:
In fact, I can't think of how to access the items in the hashtable by index at all.

A perfect hash would give you O(1) - the hash would be guaranteed to correspond to only one entry in the table. Whether or not a perfect hash is feasible depends a lot on what you're using for keys, as well as how much time is acceptable for calculating the hash.

But i was thinking more along the lines of chained hash tables[^], which are essentially an array of linked lists - this is the technique used by MFC's various CMap classes. Their performance can be very consistent but  iteration tends to be rather poor unless table size and hash functions are chosen carefully.



----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN

GeneralRe: Linked lists vs. Arrays Pin
Leslie Sanford25-Apr-07 15:38
Leslie Sanford25-Apr-07 15:38 
GeneralRe: Linked lists vs. Arrays Pin
Shog925-Apr-07 16:15
sitebuilderShog925-Apr-07 16:15 
GeneralRe: Linked lists vs. Arrays Pin
cp987625-Apr-07 15:42
cp987625-Apr-07 15:42 
GeneralRe: Linked lists vs. Arrays Pin
Chris-Kaiser26-Apr-07 7:16
Chris-Kaiser26-Apr-07 7:16 
GeneralHybrid List source Pin
Chris-Kaiser26-Apr-07 7:24
Chris-Kaiser26-Apr-07 7:24 
GeneralRe: Hybrid List source Pin
Leslie Sanford26-Apr-07 12:35
Leslie Sanford26-Apr-07 12:35 
GeneralRe: Hybrid List source Pin
Chris-Kaiser27-Apr-07 11:51
Chris-Kaiser27-Apr-07 11:51 
GeneralRe: Linked lists vs. Arrays Pin
Stephen Hewitt26-Apr-07 14:02
Stephen Hewitt26-Apr-07 14:02 
AnswerRe: Linked lists vs. Arrays Pin
Stephen Hewitt25-Apr-07 18:02
Stephen Hewitt25-Apr-07 18:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.