Click here to Skip to main content
15,890,506 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Pattern Decoder Pin
73Zeppelin15-Oct-08 1:03
73Zeppelin15-Oct-08 1:03 
AnswerRe: Pattern Decoder Pin
Paul Conrad14-Oct-08 7:01
professionalPaul Conrad14-Oct-08 7:01 
AnswerRe: Pattern Decoder Pin
shrewdlin14-Oct-08 15:08
shrewdlin14-Oct-08 15:08 
GeneralRe: Pattern Decoder Pin
hdsouza114-Oct-08 15:25
hdsouza114-Oct-08 15:25 
GeneralRe: Pattern Decoder Pin
shrewdlin14-Oct-08 20:39
shrewdlin14-Oct-08 20:39 
GeneralRe: Pattern Decoder Pin
CPallini15-Oct-08 2:23
mveCPallini15-Oct-08 2:23 
GeneralRe: Pattern Decoder Pin
hdsouza115-Oct-08 14:47
hdsouza115-Oct-08 14:47 
GeneralRe: Pattern Decoder Pin
cp987615-Oct-08 19:43
cp987615-Oct-08 19:43 
You can solve it in a spreadsheet, for the theory see Polynomial Interpolation[^], but unless you know that the answer you are looking for is a polynomial it is almost certainly wrong.

A 5th order polynomial can be fitted to your data:
a * x ^ 5 + b * x ^ 4 + c * x ^3 + d * x ^ 2 + e * x ^ 1 + f = y

but so can a 6th
a * x ^ 6 + b * x ^ 4 + c * x ^3 + d * x ^ 2 + e * x ^ 1 + f = y

a 7th
a * x ^ 7 + b * x ^ 4 + c * x ^3 + d * x ^ 2 + e * x ^ 1 + f = y

or a different 7th
a * x ^ 7 + b * x ^ 6 + c * x ^3 + d * x ^ 2 + e * x ^ 1 + f = y

or a Fourier series
a * sin(x) + b * sin(2*x) + c * sin(3*x) + d * sin(4*x) + e * sin(5*x) + f = y

or basically a linear combination of any collection of 6 functions (some collections of 6 functions will fail, but most will succeed). There are also a wide range of possible solutions that don't fall into these categories.

So unless you can state why any of the above solutions should or shouldn't be the one you are looking for, you don't know enough about the problem to solve it.

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: Pattern Decoder Pin
darrellp28-Nov-08 21:25
darrellp28-Nov-08 21:25 
AnswerRe: Pattern Decoder Pin
cp987615-Oct-08 1:25
cp987615-Oct-08 1:25 
GeneralRe: Pattern Decoder Pin
Cosmic Egg15-Oct-08 5:22
Cosmic Egg15-Oct-08 5:22 
GeneralRe: Pattern Decoder Pin
73Zeppelin15-Oct-08 5:29
73Zeppelin15-Oct-08 5:29 
GeneralRe: Pattern Decoder Pin
Cosmic Egg15-Oct-08 5:44
Cosmic Egg15-Oct-08 5:44 
GeneralRe: Pattern Decoder Pin
CPallini15-Oct-08 5:50
mveCPallini15-Oct-08 5:50 
GeneralRe: Pattern Decoder Pin
Cosmic Egg15-Oct-08 6:28
Cosmic Egg15-Oct-08 6:28 
GeneralRe: Pattern Decoder Pin
CPallini15-Oct-08 7:18
mveCPallini15-Oct-08 7:18 
GeneralRe: Pattern Decoder Pin
73Zeppelin15-Oct-08 6:11
73Zeppelin15-Oct-08 6:11 
GeneralRe: Pattern Decoder Pin
Cosmic Egg15-Oct-08 6:25
Cosmic Egg15-Oct-08 6:25 
GeneralRe: Pattern Decoder Pin
73Zeppelin15-Oct-08 6:53
73Zeppelin15-Oct-08 6:53 
GeneralRe: Pattern Decoder Pin
Roger Wright26-Oct-08 19:14
professionalRoger Wright26-Oct-08 19:14 
GeneralRe: Pattern Decoder Pin
73Zeppelin2-Nov-08 7:42
73Zeppelin2-Nov-08 7:42 
AnswerRe: Pattern Decoder Pin
Cosmic Egg15-Oct-08 5:26
Cosmic Egg15-Oct-08 5:26 
AnswerRe: Pattern Decoder Pin
Roger Wright26-Oct-08 19:28
professionalRoger Wright26-Oct-08 19:28 
GeneralRe: Pattern Decoder Pin
hdsouza127-Oct-08 1:44
hdsouza127-Oct-08 1:44 
GeneralRe: Pattern Decoder Pin
Roger Wright27-Oct-08 2:42
professionalRoger Wright27-Oct-08 2:42 

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.