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

Algorithms

 
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 
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 
The problem also goes away if you add in separate bytes, high byte, low byte, this differentiates and still limits the search. However, uniqueness is still a matter of length of items and hashing algorithm and room for hash. Generally you expand your hash table to provide for uniqueness.

He was asking the fastest method, brute force searches guarentee correct results but are always the slowest operation. Thus, hashing provides a fast interface to a 3n access, hash+hash+test, where as a brute force search is done in powers, especially with unsorted. Sorted arrays generates sorting over-head, plus comparision overhead, reducing the speed. hash is a way to access sorted speed without a sort.

_________________________
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 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 
AnswerRe: How much math have you retained/forgotten? Pin
El Corazon7-Aug-06 6:17
El Corazon7-Aug-06 6:17 
AnswerRe: How much math have you retained/forgotten? Pin
Craster8-Aug-06 1:36
Craster8-Aug-06 1: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.