Count number of space... Add 1 in it... that will be the no of words (say
x)...
now take two variables m & n
m=x/2
n =2 //if m is odd
=3 //if m is even
now store the values in array a[] as
a[0]=m
a[1]=(m+n)mod(x)
a[2]=(m+n)mod(x)
.
.
a
i am trying implement it by d shuffling of an array using random.
On Wed, Sep 28, 2011 at 8:39 PM, Shravan Kumar wrote:
> How about using the order of words a key? 41325 is the key in you i/p . But
> this is so trivial, what we can do further is by encrypting this number
>
> On Wed, Sep 28,
How about using the order of words a key? 41325 is the key in you i/p . But
this is so trivial, what we can do further is by encrypting this number
On Wed, Sep 28, 2011 at 8:16 PM, Akash Mukherjee wrote:
> hi dis is a qn posted in this grp itself
>
> Q3) Input -> India is a great country. Key(al
hi dis is a qn posted in this grp itself
Q3) Input -> India is a great country. Key(alphanumeric) - B2. You have to
encrypt the given sentence, in such a way that only the words should be
jumbled.
Output -> great India a is country. While decrypting it, you have to use the
same alpha numeric key a