first n number can not define the full function and so you need to guess.
I think you just need a simple enough f(x) to represent the full list,
e.g. a closed formula,
but you have to define *simple* firstly.

I guess Knuth's Concrete Mathematics should help you for more insight.


On Thu, Oct 29, 2009 at 8:19 PM, Pawandeep <bhatti.pawand...@gmail.com> wrote:
>
> hello everyone ,
> you are given a series of numbers like
>
> 2,4,6,8,10,12............this is simple though
>
> nd u hve to identify that  f(x) = x+ 2 for this series ..
>
> now can you write a program to identify the f(x) for any series of
> numbers..
>
> // i know it is tough but don't say its not possible
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to