@Anil : is there any reason in taking 31 in function pow(31,x) ?.
On Wed, Sep 14, 2011 at 10:31 AM, AnilKumar B wrote:
> Hi,
>
> Can we define a bijective function from set(strings) --> Q?
>
> I thought of using a polynomial function, for example:
>
>
> f(ANIL)=pow(31,0)*ASCII(L)+pow(31,
Hi,
Can we define a bijective function from set(strings) --> Q?
I thought of using a polynomial function, for example:
f(ANIL)=pow(31,0)*ASCII(L)+pow(31,1)*ASCII(I)+pow(31,2)*ASCII(I)+pow(31,3)*ASCII(A),
In this f will be one-one from set(Strings)--->N, but I don't whether is
onto or no