Click here to Skip to main content
15,898,374 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Malloc & Page File Pin
Dan Neely10-Jul-07 7:09
Dan Neely10-Jul-07 7:09 
AnswerRe: Malloc & Page File Pin
Stephen Hewitt9-Jul-07 14:07
Stephen Hewitt9-Jul-07 14:07 
AnswerRe: Malloc & Page File Pin
Emmanouil12-Jul-07 3:22
Emmanouil12-Jul-07 3:22 
GeneralRe: Malloc & Page File Pin
Luc Pattyn12-Jul-07 7:27
sitebuilderLuc Pattyn12-Jul-07 7:27 
GeneralRe: Malloc & Page File Pin
Emmanouil12-Jul-07 7:58
Emmanouil12-Jul-07 7:58 
QuestionYour help is greatly appreciated Pin
columbiasmiles9-Jul-07 7:30
columbiasmiles9-Jul-07 7:30 
Questionadding elements in alphabetical order to a hashtable that deals with collisions using java Pin
claudinawales8-Jul-07 23:28
claudinawales8-Jul-07 23:28 
AnswerRe: adding elements in alphabetical order to a hashtable that deals with collisions using java Pin
Luc Pattyn9-Jul-07 10:56
sitebuilderLuc Pattyn9-Jul-07 10:56 
Hi,

I am not a Java specialist, but I assume its collections are quite similar to
the ones in .NET (they would be identical if you were refering to J# instead
of Java).

In .NET a hashtable holds a lot of key,value pairs; it applies a lot of tricks
to handle large collections very fast (that is given a key, find the value).
It does not store things in alphabetical order. It does include all necessary
logic to avoid collisions (thats different keys producing the same hash;
trying to enter two key,value pairs with same key results in an exception).

If you want to traverse a collection alphabetically, you must have an ordered
collection, that either sorts by itself (as in SortedList) or that supports
an explicit Sort operation (as in ArrayList, and List).

So one often ends up having two parallel collections, say a Hashtable for
fast key->value translation, and a SortedList for listing the keys alphabetically.

Hope this helps.

Smile | :)




QuestionEncrypting data in a database Pin
jlebensold5-Jul-07 20:37
jlebensold5-Jul-07 20:37 
AnswerRe: Encrypting data in a database Pin
Paul Conrad4-Nov-07 7:08
professionalPaul Conrad4-Nov-07 7:08 
GeneralRe: Encrypting data in a database Pin
jlebensold5-Nov-07 20:02
jlebensold5-Nov-07 20:02 
QuestionObscenely amount of data Pin
minimice5-Jul-07 20:24
minimice5-Jul-07 20:24 
AnswerRe: Obscenely amount of data Pin
originSH5-Jul-07 22:23
originSH5-Jul-07 22:23 
AnswerRe: Obscenely amount of data Pin
Brady Kelly5-Jul-07 22:26
Brady Kelly5-Jul-07 22:26 
GeneralRe: Obscenely amount of data Pin
minimice5-Jul-07 23:20
minimice5-Jul-07 23:20 
GeneralRe: Obscenely amount of data Pin
Brady Kelly8-Jul-07 23:28
Brady Kelly8-Jul-07 23:28 
AnswerRe: Obscenely amount of data Pin
Luc Pattyn12-Jul-07 2:37
sitebuilderLuc Pattyn12-Jul-07 2:37 
QuestionCheck if app exists and open from internet Pin
Dimkov3-Jul-07 22:51
Dimkov3-Jul-07 22:51 
AnswerRe: Check if app exists and open from internet Pin
Pete O'Hanlon3-Jul-07 23:44
mvePete O'Hanlon3-Jul-07 23:44 
GeneralRe: Check if app exists and open from internet Pin
Dimkov4-Jul-07 0:08
Dimkov4-Jul-07 0:08 
GeneralRe: Check if app exists and open from internet Pin
Pete O'Hanlon4-Jul-07 0:12
mvePete O'Hanlon4-Jul-07 0:12 
GeneralRe: Check if app exists and open from internet Pin
Dimkov4-Jul-07 5:07
Dimkov4-Jul-07 5:07 
GeneralRe: Check if app exists and open from internet Pin
Pete O'Hanlon5-Jul-07 10:40
mvePete O'Hanlon5-Jul-07 10:40 
AnswerRe: Check if app exists and open from internet Pin
Dimkov5-Jul-07 11:02
Dimkov5-Jul-07 11:02 
GeneralEvolving Software Architectures and CRM world Pin
p_v_chaitanya2-Jul-07 1:25
p_v_chaitanya2-Jul-07 1:25 

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.