flat assembler
Message board for the users of flat assembler.

Index > Heap > form formula through given array of numbers

Author
Thread Post new topic Reply to topic
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
Post 13 Mar 2013, 23:25
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17247
Location: In your JS exploiting you and your system
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
Post 13 Mar 2013, 23:49
View user's profile Send private message Visit poster's website Reply with quote
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.
Post 14 Mar 2013, 00:04
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17247
Location: In your JS exploiting you and your system
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.
Post 14 Mar 2013, 00:25
View user's profile Send private message Visit poster's website Reply with quote
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?
Post 14 Mar 2013, 00:39
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17247
Location: In your JS exploiting you and your system
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.
Post 14 Mar 2013, 00:57
View user's profile Send private message Visit poster's website Reply with quote
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)
Post 14 Mar 2013, 03:41
View user's profile Send private message Reply with quote
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,
Post 14 Mar 2013, 11:45
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.