Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
QuestionC++ to C# question Pin
Vodstok2-Jan-07 7:15
Vodstok2-Jan-07 7:15 
AnswerRe: C++ to C# question Pin
Judah Gabriel Himango2-Jan-07 7:40
sponsorJudah Gabriel Himango2-Jan-07 7:40 
GeneralRe: C++ to C# question Pin
Vodstok2-Jan-07 8:04
Vodstok2-Jan-07 8:04 
AnswerRe: C++ to C# question Pin
Uwe Keim2-Jan-07 10:07
sitebuilderUwe Keim2-Jan-07 10:07 
GeneralRe: C++ to C# question Pin
Vodstok2-Jan-07 10:52
Vodstok2-Jan-07 10:52 
Questionactivex in c# Pin
groundzero1112-Jan-07 6:48
groundzero1112-Jan-07 6:48 
AnswerRe: activex in c# Pin
Dave Kreskowiak2-Jan-07 9:29
mveDave Kreskowiak2-Jan-07 9:29 
QuestionMost efficient large array creation and retrieval method? Pin
JHR12-Jan-07 6:38
JHR12-Jan-07 6:38 
Hi gurus!

I’m creating a large array that holds the distances from all points in a location file (x and y coordinates) to all other points. I have no control over how many locations the user will input (thousands most likely) so with the number of distances to record at (n(n-1)/2), I’m going to be storing a helluva lot of values. As I want to use these in a Monte Carlo simulation and access each value up to 999 times, I would prefer to calculate the distance matrix only once and not have to recalculate each distance every iteration of the MC simulation.

I would appreciate advice on the most efficient way to store and quickly access these values: ArrayList, Hashtable, Queue or something else?

Unsure | :~ A secondary question. Is what I am trying to achieve just unmanageable? For example, with the user including 10,000 locations, that creates 49 million distance calculations. How will this affect access time to reading the values again and again…?

TIA


Jerry
AnswerRe: Most efficient large array creation and retrieval method? Pin
Luc Pattyn2-Jan-07 7:40
sitebuilderLuc Pattyn2-Jan-07 7:40 
GeneralRe: Most efficient large array creation and retrieval method? Pin
JHR12-Jan-07 7:52
JHR12-Jan-07 7:52 
GeneralRe: Most efficient large array creation and retrieval method? Pin
Luc Pattyn2-Jan-07 14:19
sitebuilderLuc Pattyn2-Jan-07 14:19 
GeneralRe: Most efficient large array creation and retrieval method? Pin
JHR13-Jan-07 3:26
JHR13-Jan-07 3:26 
GeneralRe: Most efficient large array creation and retrieval method? Pin
Luc Pattyn3-Jan-07 4:12
sitebuilderLuc Pattyn3-Jan-07 4:12 
GeneralRe: Most efficient large array creation and retrieval method? Pin
JHR13-Jan-07 4:25
JHR13-Jan-07 4:25 
QuestionBasic XML Parser Pin
TheBlindWatchmaker2-Jan-07 6:13
TheBlindWatchmaker2-Jan-07 6:13 
AnswerRe: Basic XML Parser Pin
Ravi Bhavnani2-Jan-07 6:20
professionalRavi Bhavnani2-Jan-07 6:20 
GeneralRe: Basic XML Parser Pin
TheBlindWatchmaker2-Jan-07 7:34
TheBlindWatchmaker2-Jan-07 7:34 
GeneralRe: Basic XML Parser Pin
Ravi Bhavnani2-Jan-07 7:38
professionalRavi Bhavnani2-Jan-07 7:38 
QuestionDataGridView Binding - Need to Skip Some Columns Pin
mwith2-Jan-07 5:54
mwith2-Jan-07 5:54 
AnswerRe: DataGridView Binding - Need to Skip Some Columns Pin
Drew McGhie2-Jan-07 11:32
Drew McGhie2-Jan-07 11:32 
AnswerRe: DataGridView Binding - Need to Skip Some Columns Pin
JoeRip2-Jan-07 14:29
JoeRip2-Jan-07 14:29 
QuestionString splitting Pin
numbers1thru92-Jan-07 5:36
numbers1thru92-Jan-07 5:36 
AnswerRe: String splitting Pin
numbers1thru92-Jan-07 5:49
numbers1thru92-Jan-07 5:49 
GeneralRe: String splitting Pin
Daniel Grunwald2-Jan-07 5:52
Daniel Grunwald2-Jan-07 5:52 
AnswerRe: String splitting Pin
Martin#2-Jan-07 8:36
Martin#2-Jan-07 8:36 

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.