Click here to Skip to main content
15,891,473 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Basic 64-bit integer question Pin
Luc Pattyn2-Aug-07 6:47
sitebuilderLuc Pattyn2-Aug-07 6:47 
GeneralHey Luc, Pin
CPallini2-Aug-07 21:18
mveCPallini2-Aug-07 21:18 
GeneralRe: Hey Luc, Pin
Luc Pattyn2-Aug-07 21:43
sitebuilderLuc Pattyn2-Aug-07 21:43 
GeneralSorry... Pin
CPallini2-Aug-07 21:50
mveCPallini2-Aug-07 21:50 
Questionimage Pin
zainab ibrahim29-Jul-07 22:54
zainab ibrahim29-Jul-07 22:54 
AnswerRe: image Pin
Habib Ahmed Bhutto30-Jul-07 12:39
Habib Ahmed Bhutto30-Jul-07 12:39 
QuestionPatterns Pin
ThaScorpion29-Jul-07 14:40
ThaScorpion29-Jul-07 14:40 
AnswerRe: Patterns Pin
cp987629-Jul-07 14:56
cp987629-Jul-07 14:56 
ThaScorpion wrote:
generaly, detecting any kind of pattern !


A tall order!

For the sorts of patterns you have illustrated, you could just study the differences between digits:

- 0 means repeated digits (e.g. 2,2,2 gives differences 0,0)
- 1 means consecutive digits (e.g. 2,3,4 gives differences 1,1, and 4,3,2 gives differences -1,-1)
- repeated differences higher that 1 means a pattern (e.g. 2,4,6 gives differences 2,2)






Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

GeneralRe: Patterns Pin
ThaScorpion29-Jul-07 15:08
ThaScorpion29-Jul-07 15:08 
GeneralRe: Patterns Pin
Paul Conrad29-Jul-07 17:00
professionalPaul Conrad29-Jul-07 17:00 
GeneralRe: Patterns Pin
Jörgen Sigvardsson2-Aug-07 21:15
Jörgen Sigvardsson2-Aug-07 21:15 
GeneralRe: Patterns Pin
Paul Conrad3-Aug-07 3:34
professionalPaul Conrad3-Aug-07 3:34 
GeneralRe: Patterns Pin
Jörgen Sigvardsson3-Aug-07 3:41
Jörgen Sigvardsson3-Aug-07 3:41 
GeneralRe: Patterns Pin
Malcolm Smart11-Aug-07 10:19
Malcolm Smart11-Aug-07 10:19 
GeneralRe: Patterns Pin
Paul Conrad11-Aug-07 10:28
professionalPaul Conrad11-Aug-07 10:28 
AnswerRe: Patterns Pin
Stephen Hewitt29-Jul-07 15:41
Stephen Hewitt29-Jul-07 15:41 
GeneralRe: Patterns Pin
Paul Conrad29-Jul-07 17:36
professionalPaul Conrad29-Jul-07 17:36 
AnswerRe: Patterns Pin
Luc Pattyn29-Jul-07 23:56
sitebuilderLuc Pattyn29-Jul-07 23:56 
QuestionPrimality Test Pin
shiraztk27-Jul-07 7:47
shiraztk27-Jul-07 7:47 
AnswerRe: Primality Test Pin
Paul Conrad27-Jul-07 8:17
professionalPaul Conrad27-Jul-07 8:17 
AnswerRe: Primality Test Pin
cp987627-Jul-07 11:40
cp987627-Jul-07 11:40 
GeneralRe: Primality Test Pin
Paul Conrad27-Jul-07 19:50
professionalPaul Conrad27-Jul-07 19:50 
GeneralRe: Primality Test Pin
shiraztk30-Jul-07 7:31
shiraztk30-Jul-07 7:31 
GeneralRe: Primality Test Pin
Paul Conrad30-Jul-07 10:52
professionalPaul Conrad30-Jul-07 10:52 
GeneralRe: Primality Test Pin
cp987630-Jul-07 23:53
cp987630-Jul-07 23:53 

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.