Click here to Skip to main content
15,919,613 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Calculate Mean,Median and Standard Deviation Pin
Paul Conrad8-Aug-06 12:30
professionalPaul Conrad8-Aug-06 12:30 
GeneralRe: Calculate Mean,Median and Standard Deviation Pin
klck20008-Aug-06 12:34
klck20008-Aug-06 12:34 
GeneralRe: Calculate Mean,Median and Standard Deviation Pin
Jeremy Falcon8-Aug-06 17:03
professionalJeremy Falcon8-Aug-06 17:03 
AnswerRe: Calculate Mean,Median and Standard Deviation Pin
OMalleyW8-Aug-06 22:55
OMalleyW8-Aug-06 22:55 
QuestionMatching two arrays Pin
Ratish Philip7-Aug-06 22:09
Ratish Philip7-Aug-06 22:09 
AnswerRe: Matching two arrays Pin
Ingo8-Aug-06 0:30
Ingo8-Aug-06 0:30 
AnswerRe: Matching two arrays Pin
Sebastian Schneider8-Aug-06 5:14
Sebastian Schneider8-Aug-06 5:14 
AnswerRe: Matching two arrays Pin
El Corazon8-Aug-06 6:46
El Corazon8-Aug-06 6:46 
hash each element, count the hashes, if number of hashes is 2 for every number of hashed entries, you have identicle arrays, this trades memory for time. You said fastest, but made no requirements for memory, so use a good and fast hash like superfast hash. you can always terminate the hash count if you ever find a 1 count unless you need to know how many differing items occur. allocate your hash at 2.5 times n (n-length array), which gives you the worst case possibility that there are no matches between the two arrays.

_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

GeneralRe: Matching two arrays Pin
Zac Howland17-Aug-06 7:11
Zac Howland17-Aug-06 7:11 
GeneralRe: Matching two arrays Pin
El Corazon17-Aug-06 15:48
El Corazon17-Aug-06 15:48 
GeneralRe: Matching two arrays Pin
Zac Howland18-Aug-06 3:46
Zac Howland18-Aug-06 3:46 
GeneralRe: Matching two arrays Pin
El Corazon18-Aug-06 4:45
El Corazon18-Aug-06 4:45 
AnswerRe: Matching two arrays Pin
Samuel.D16-Aug-06 5:06
Samuel.D16-Aug-06 5:06 
AnswerRe: Matching two arrays Pin
Zac Howland17-Aug-06 7:25
Zac Howland17-Aug-06 7:25 
AnswerRe: Matching two arrays [modified] Pin
Ennis Ray Lynch, Jr.17-Aug-06 9:52
Ennis Ray Lynch, Jr.17-Aug-06 9:52 
Questionsnowball effect Pin
OMalleyW7-Aug-06 22:07
OMalleyW7-Aug-06 22:07 
AnswerRe: snowball effect Pin
El Corazon8-Aug-06 6:32
El Corazon8-Aug-06 6:32 
GeneralRe: snowball effect Pin
OMalleyW8-Aug-06 22:41
OMalleyW8-Aug-06 22:41 
QuestionHow much math have you retained/forgotten? Pin
Michael Dunn1-Aug-06 19:54
sitebuilderMichael Dunn1-Aug-06 19:54 
AnswerRe: How much math have you retained/forgotten? Pin
Ingo1-Aug-06 23:03
Ingo1-Aug-06 23:03 
AnswerRe: How much math have you retained/forgotten? Pin
Jeremy Falcon3-Aug-06 15:43
professionalJeremy Falcon3-Aug-06 15:43 
AnswerRe: How much math have you retained/forgotten? Pin
Andy Brummer3-Aug-06 17:13
sitebuilderAndy Brummer3-Aug-06 17:13 
GeneralRe: How much math have you retained/forgotten? Pin
Bassam Abdul-Baki3-Aug-06 18:08
professionalBassam Abdul-Baki3-Aug-06 18:08 
GeneralRe: How much math have you retained/forgotten? Pin
Andy Brummer3-Aug-06 18:34
sitebuilderAndy Brummer3-Aug-06 18:34 
AnswerRe: How much math have you retained/forgotten? Pin
Shog93-Aug-06 18:06
sitebuilderShog93-Aug-06 18:06 

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.