|
-
December 11th, 2009, 11:33 AM
#16
Re: Trying to use Hash_set
Logarithmic time is still very fast. Say it takes N time when you have 1000 objects. Now increase the size so you have a million objects----1000 times as many. Access will now take approximately N*2 time.
You would typically design a key object to contain just the relevant data. If you only need two things, a std: air may be good enough.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|