Click here to Skip to main content
15,889,651 members
Home / Discussions / Algorithms
   

Algorithms

 
NewsRe: depth first search help.. Pin
Abhijit Jana27-Jul-09 0:56
professionalAbhijit Jana27-Jul-09 0:56 
QuestionMerging Inputs and producting ID number [modified] Pin
ZeroPun24-Jul-09 12:35
ZeroPun24-Jul-09 12:35 
AnswerRe: Merging Inputs and producting ID number Pin
Moreno Airoldi28-Jul-09 23:31
Moreno Airoldi28-Jul-09 23:31 
GeneralRe: Merging Inputs and producting ID number Pin
Leonardo Muzzi7-Aug-09 4:00
Leonardo Muzzi7-Aug-09 4:00 
GeneralRe: Merging Inputs and producting ID number [modified] Pin
Moreno Airoldi7-Aug-09 21:57
Moreno Airoldi7-Aug-09 21:57 
GeneralRe: Merging Inputs and producting ID number Pin
Leonardo Muzzi9-Aug-09 17:33
Leonardo Muzzi9-Aug-09 17:33 
GeneralRe: Merging Inputs and producting ID number Pin
Moreno Airoldi9-Aug-09 22:43
Moreno Airoldi9-Aug-09 22:43 
GeneralRe: Merging Inputs and producting ID number Pin
Moreno Airoldi12-Aug-09 1:36
Moreno Airoldi12-Aug-09 1:36 
Leonardo Muzzi wrote:
About the memory usage, a very nice suggestion! I just think that maybe shrinking the more important factors (X1, X2,...) can compromise the solution, since the least significant bits of X1, for instance, could be more important than the whole X4. But again, that depends on the scenario.


BTW I forgot to mention - you are absolutely right (depending on the scenario, of course, yep, but I think it goes for most)!
So it should be changed to something similar to:

C#
int ID = (X1 << 22) & ((X2 >> 1) << 13) & ((X3 >> 3) << 6) & (X4 >> 4);


2+2=5 for very large amounts of 2
(always loved that one hehe!)

QuestionHelp! I need a book that describes hash in details. Pin
jibeex22-Jul-09 15:00
jibeex22-Jul-09 15:00 
AnswerRe: Help! I need a book that describes hash in details. Pin
Luc Pattyn22-Jul-09 15:43
sitebuilderLuc Pattyn22-Jul-09 15:43 
QuestionRe: Help! I need a book that describes hash in details. Pin
harold aptroot22-Jul-09 18:23
harold aptroot22-Jul-09 18:23 
AnswerRe: Help! I need a book that describes hash in details. Pin
riced23-Jul-09 5:59
riced23-Jul-09 5:59 
AnswerRe: Help! I need a book that describes hash in details. Pin
jibeex23-Jul-09 23:42
jibeex23-Jul-09 23:42 
GeneralRe: Help! I need a book that describes hash in details. Pin
harold aptroot25-Jul-09 13:39
harold aptroot25-Jul-09 13:39 
QuestionAbout showing the picture in Matlab Pin
Dhyanga18-Jul-09 2:01
Dhyanga18-Jul-09 2:01 
QuestionAbout Masking function in Matlab Pin
Dhyanga18-Jul-09 1:57
Dhyanga18-Jul-09 1:57 
Question[Message Deleted] Pin
deepthi0916-Jul-09 9:44
deepthi0916-Jul-09 9:44 
AnswerRe: urgent help Pin
Luc Pattyn16-Jul-09 10:04
sitebuilderLuc Pattyn16-Jul-09 10:04 
GeneralRe: urgent help Pin
Tim Craig16-Jul-09 18:18
Tim Craig16-Jul-09 18:18 
QuestionOverlapping dates Algorithem Pin
kKamel9-Jul-09 13:37
kKamel9-Jul-09 13:37 
AnswerRe: Overlapping dates Algorithem Pin
Eslam Afifi9-Jul-09 13:58
Eslam Afifi9-Jul-09 13:58 
GeneralRe: Overlapping dates Algorithem Pin
kKamel9-Jul-09 14:07
kKamel9-Jul-09 14:07 
GeneralRe: Overlapping dates Algorithem Pin
Eslam Afifi9-Jul-09 15:20
Eslam Afifi9-Jul-09 15:20 
GeneralRe: Overlapping dates Algorithem Pin
Fatbuddha 115-Jul-09 5:16
Fatbuddha 115-Jul-09 5:16 
GeneralRe: Overlapping dates Algorithem Pin
Fatbuddha 115-Jul-09 5:18
Fatbuddha 115-Jul-09 5:18 

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.