Click here to Skip to main content
15,908,775 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Unique number from two numbers Pin
Luc Pattyn15-May-10 4:18
sitebuilderLuc Pattyn15-May-10 4:18 
GeneralRe: Unique number from two numbers Pin
theCPkid15-May-10 5:02
theCPkid15-May-10 5:02 
GeneralRe: Unique number from two numbers Pin
Som Shekhar15-May-10 5:15
Som Shekhar15-May-10 5:15 
GeneralRe: Unique number from two numbers [modified] Pin
harold aptroot15-May-10 5:21
harold aptroot15-May-10 5:21 
GeneralRe: Unique number from two numbers Pin
Luc Pattyn15-May-10 5:34
sitebuilderLuc Pattyn15-May-10 5:34 
GeneralRe: Unique number from two numbers Pin
harold aptroot15-May-10 5:37
harold aptroot15-May-10 5:37 
GeneralRe: Unique number from two numbers Pin
Luc Pattyn15-May-10 5:40
sitebuilderLuc Pattyn15-May-10 5:40 
GeneralRe: Unique number from two numbers Pin
theCPkid15-May-10 5:47
theCPkid15-May-10 5:47 
yes, sometimes all we want is to avoid using pair or map and use only an array. Why this question is so common is probably that this kind of situation occurs commonly.
For me, it was just that I was solving a common grid problem in which every cell visited has to be marked and I wondered if I can just store a single no. in array to quickly check if that cell is already visited. Just like that as I said before Smile | :) Thanks for your answer btw.

Luc Pattyn wrote:
one could recurse and stuff the world into a single bit.

Laugh | :laugh: funny. i have no such intentions. for me two 16 bit integers [screensize < 65536] into one 32 bit integer is cool enough.
GeneralRe: Unique number from two numbers Pin
harold aptroot15-May-10 5:49
harold aptroot15-May-10 5:49 
GeneralRe: Unique number from two numbers Pin
Luc Pattyn15-May-10 5:53
sitebuilderLuc Pattyn15-May-10 5:53 
GeneralRe: Unique number from two numbers Pin
theCPkid15-May-10 5:41
theCPkid15-May-10 5:41 
GeneralRe: Unique number from two numbers Pin
harold aptroot15-May-10 5:43
harold aptroot15-May-10 5:43 
GeneralRe: Unique number from two numbers Pin
Luc Pattyn15-May-10 6:00
sitebuilderLuc Pattyn15-May-10 6:00 
GeneralRe: Unique number from two numbers Pin
CPallini18-May-10 1:52
mveCPallini18-May-10 1:52 
GeneralRe: Unique number from two numbers Pin
CPallini17-May-10 22:37
mveCPallini17-May-10 22:37 
GeneralRe: Unique number from two numbers Pin
theCPkid18-May-10 1:39
theCPkid18-May-10 1:39 
GeneralRe: Unique number from two numbers Pin
CPallini18-May-10 1:45
mveCPallini18-May-10 1:45 
QuestionSocket message(frame) pattern matching Pin
Hamed Musavi13-May-10 7:42
Hamed Musavi13-May-10 7:42 
AnswerRe: Socket message(frame) pattern matching Pin
Luc Pattyn13-May-10 7:55
sitebuilderLuc Pattyn13-May-10 7:55 
GeneralRe: Socket message(frame) pattern matching Pin
Hamed Musavi13-May-10 8:21
Hamed Musavi13-May-10 8:21 
GeneralRe: Socket message(frame) pattern matching Pin
Luc Pattyn13-May-10 8:31
sitebuilderLuc Pattyn13-May-10 8:31 
GeneralRe: Socket message(frame) pattern matching Pin
Hamed Musavi13-May-10 8:55
Hamed Musavi13-May-10 8:55 
GeneralRe: Socket message(frame) pattern matching Pin
Luc Pattyn13-May-10 9:05
sitebuilderLuc Pattyn13-May-10 9:05 
GeneralRe: Socket message(frame) pattern matching Pin
Hamed Musavi13-May-10 9:25
Hamed Musavi13-May-10 9:25 
GeneralRe: Socket message(frame) pattern matching Pin
Luc Pattyn13-May-10 9:34
sitebuilderLuc Pattyn13-May-10 9:34 

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.