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

C#

 
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 
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 
I'm afraid I'm not familiar with the travelling salesman problem, so it isn't that! Smile | :)
The Monte Carlo simulation is one that keeps the spatial locations constant, but randomises a third variable (the first two being x and y location), and yes, these are real locations. My concern with recalculating the distances every time is that with 10,000 locations, that creates 49 million distance calculations. With 999 iterations of the Monte Carlo simulation (1000 with the observed outcome), that means that to complete the program requires 1,000 x 49 million distance calculations OMG | :OMG: . Hence my desire to only do the 49 million calculations once and then store the results in an array that I access the remaining 999 times.

Do you (or anyone else out there) think that recalculating the distances every iteration for 999 times will be quicker than storing the distance results in an array or a file and accessing them repeatedly?

Jerry
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 
GeneralRe: String splitting Pin
Luc Pattyn2-Jan-07 14:25
sitebuilderLuc Pattyn2-Jan-07 14:25 
GeneralRe: String splitting Pin
Martin#2-Jan-07 22:52
Martin#2-Jan-07 22:52 

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.