flat assembler
Message board for the users of flat assembler.

 Index > Heap > form formula through given array of numbers
Author
sleepsleep

Joined: 05 Oct 2006
Posts: 8864
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
hi guys,

is there a magic function out there that able to formulate formula through any given array of number?

eg,
5,8,12,44,98,123,156,199

or
32,26,44,32,38,27,45, and so on
13 Mar 2013, 23:25
revolution
When all else fails, read the source

Joined: 24 Aug 2004
Posts: 17247
revolution
Yes. But you might not be satisfied with the results since there are an infinite number of possible curves that will fit any set of data points. You will need to choose which sort of curve fitting you want.

Although this might be what you are after:

https://en.wikipedia.org/wiki/Polynomial_interpolation
13 Mar 2013, 23:49
sleepsleep

Joined: 05 Oct 2006
Posts: 8864
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
ok, because i was thinking something like this,

let say, for example,
i got hold of 1000 product key for microsoft windows 7 operating system,

is that possible through this 1000 product key, i be able to produce a function that capable to predict the next possible product key?

i just make an example regarding the product key, not i have desire to produce such thing.
14 Mar 2013, 00:04
revolution
When all else fails, read the source

Joined: 24 Aug 2004
Posts: 17247
revolution
I doubt that MS use anything that could be plotted and interpolated in such a simple way. There will be some form of CRC or checksum component and also product identification and other types of information in the key. They are not simply random numbers, nor are they simply a polynomial formula.
14 Mar 2013, 00:25
sleepsleep

Joined: 05 Oct 2006
Posts: 8864
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
yeah, i am sure too ms will never use simple way,

but, i got a question,

if let say, i take an article, and change all the alphabet to their ascii value (like the above idea, array of numbers)

then would every article that ever existed could somehow be formulated?

since we can zip 7zip every article into shorter size, could i consider that as one kind of formulation?
14 Mar 2013, 00:39
revolution
When all else fails, read the source

Joined: 24 Aug 2004
Posts: 17247
revolution
Sure, you could do it in theory. Read up about the "infinite number of monkeys typing randomly for an infinite amount of time ..." will eventually produce every possible article ever written and also a much larger amount of total nonsensical gibberish. Basically your search space is far too large for this be any sort of practical solution.
14 Mar 2013, 00:57
tthsqe

Joined: 20 May 2009
Posts: 724
tthsqe
hit it with a lot of tests until you get a nice answer.
wolfram has a nice one online:

http://www.wolframalpha.com/input/?i=FindSequenceFunction[{1%2C3%2C7%2C15%2C31%2C63}%2Cn]

( the whole thing is one url)
14 Mar 2013, 03:41
sleepsleep

Joined: 05 Oct 2006
Posts: 8864
Location: ˛　　　　　　　　　　　　　　　　　　　　　　　　　　　　　⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
that is awesome tthsqe, i copy paste my array in OP, wolfram requires \$\$ & more time for time consuming array, =) but it just cool,
14 Mar 2013, 11:45
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

 Jump to: Select a forum Official----------------AssemblyPeripheria General----------------MainDOSWindowsLinuxUnixMenuetOS Specific----------------MacroinstructionsCompiler InternalsIDE DevelopmentOS ConstructionNon-x86 architecturesHigh Level LanguagesProgramming Language DesignProjects and IdeasExamples and Tutorials Other----------------FeedbackHeapTest Area

Forum Rules:
 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou can attach files in this forumYou can download files in this forum