Click here to Skip to main content
15,881,413 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionLine Intersection Pin
musefan17-Jun-11 3:20
musefan17-Jun-11 3:20 
AnswerRe: Line Intersection Pin
dasblinkenlight17-Jun-11 5:51
dasblinkenlight17-Jun-11 5:51 
GeneralRe: Line Intersection Pin
musefan17-Jun-11 5:55
musefan17-Jun-11 5:55 
AnswerRe: Line Intersection Pin
Roger Wright17-Jun-11 20:34
professionalRoger Wright17-Jun-11 20:34 
GeneralRe: Line Intersection Pin
musefan21-Jun-11 0:12
musefan21-Jun-11 0:12 
AnswerRe: Line Intersection Pin
BobJanova20-Jun-11 23:41
BobJanova20-Jun-11 23:41 
GeneralRe: Line Intersection Pin
musefan21-Jun-11 0:08
musefan21-Jun-11 0:08 
QuestionPattern Cracking Question Pin
YSLGuru16-Jun-11 12:57
YSLGuru16-Jun-11 12:57 
NOTE: Please let me know if another section/forum on the site is more appropriate for this question.

I'm trying to solve an algorithm puzzle and I was hoping to get some help. Its not for any formal study, just a mind exercise/ puzzle but I've hit a road block:

The goal is to figure out what algorithm or formula can be used to decrypt and encrypted string of characters where you know the characters being encrypted and what their encrypted value is but not how the encrypted value is determined. Obviously this would be like looking for a needle in a haystack except that there are some parameters to this that help (I think) narrow the process down. I can't help but think there's got to be a pattermn or method for figuring out something like this when you know the values of both the unencrypted character and what it encrypts to.

The parameters of the puzzle are:

1) The encrypted characters are limited to the printiable set of characters within the standard 256 character ASCII set of characters (basically what's on a standard US keyboard). I suppose the thing woiuld work with non-visible charactres but I believe the intent is to use any of the keyboard characters a user could use and so that would include numbers, letters and some of the special characters too.

2) the string of characters to encrypt is limited to 12.

3) Each single character is encrypted to a 2 character value (I think it's always a number but I'm not certain ) so that a string of 12 characters will be encrypted to a 24 character long value.

4) Each character is encrypted to the exact same value based on its position in the string of characters to be encrypted.
For example if the text to encrypt is abcdefga1234 then the lower case a is encrypted to the value 57 for position 01 in this string of 12 characters and in the 8th position the lower case a is encrypted to a value of 0A.
No matter what combination of characters are in positions 1 thru 7, the lowercase a will always been encrypted as 0A when it is in the 8th position in the string of characters.

5) Each combination of characters plus position has a unique encrypted value and that value is constant when the position of the character is the same.

I hope the last 2 above make sense; it's hard to convey these in words.

I know that a large lookup table of characters along with their decrypted values and position could be sued to decrypt an encrypted string but unfortunately that’s not the answer to the puzzle. The goal is to decipher what formula or algorithm will decrypt an encrypted character using the above parameters.


If anyone has any links or suggested reading material on how to solve something like this I would most appreciate it.
AnswerRe: Pattern Cracking Question Pin
Moreno Airoldi17-Jun-11 22:52
Moreno Airoldi17-Jun-11 22:52 
AnswerRe: Pattern Cracking Question Pin
dasblinkenlight20-Jun-11 9:36
dasblinkenlight20-Jun-11 9:36 
AnswerRe: Pattern Cracking Question Pin
musefan21-Jun-11 0:34
musefan21-Jun-11 0:34 
GeneralRe: Pattern Cracking Question Pin
YSLGuru21-Jun-11 10:41
YSLGuru21-Jun-11 10:41 
GeneralRe: Pattern Cracking Question Pin
BobJanova22-Jun-11 0:33
BobJanova22-Jun-11 0:33 
GeneralRe: Pattern Cracking Question Pin
musefan22-Jun-11 3:34
musefan22-Jun-11 3:34 
GeneralRe: Pattern Cracking Question Pin
BobJanova22-Jun-11 4:34
BobJanova22-Jun-11 4:34 
Questionmerge k AVL trees complexity Pin
Hesham Yassin16-Jun-11 0:14
Hesham Yassin16-Jun-11 0:14 
AnswerRe: merge k AVL trees complexity Pin
Alan Balkany16-Jun-11 5:13
Alan Balkany16-Jun-11 5:13 
GeneralRe: merge k AVL trees complexity Pin
dasblinkenlight17-Jun-11 10:10
dasblinkenlight17-Jun-11 10:10 
AnswerRe: merge k AVL trees complexity Pin
dasblinkenlight17-Jun-11 10:08
dasblinkenlight17-Jun-11 10:08 
GeneralRe: merge k AVL trees complexity Pin
Hesham Yassin17-Jun-11 10:49
Hesham Yassin17-Jun-11 10:49 
QuestionEye-like Algorithm Pin
JustWorking14-Jun-11 2:46
JustWorking14-Jun-11 2:46 
AnswerRe: Eye-like Algorithm Pin
phil.o14-Jun-11 3:39
professionalphil.o14-Jun-11 3:39 
GeneralRe: Eye-like Algorithm Pin
JustWorking14-Jun-11 4:07
JustWorking14-Jun-11 4:07 
GeneralRe: Eye-like Algorithm Pin
Alan Balkany14-Jun-11 4:51
Alan Balkany14-Jun-11 4:51 
GeneralRe: Eye-like Algorithm Pin
JustWorking14-Jun-11 20:27
JustWorking14-Jun-11 20:27 

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.