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)
.
.
and so on.... till a[x]

now jumble the words according to values in array....store array for further
decryption use

... thats easily decryptable ..but can be a way to solve this puzzle...

....
On Wed, Sep 28, 2011 at 9:03 PM, Akash Mukherjee <[email protected]> wrote:

> i am trying implement it by d shuffling of an array using random.....
>
>
> On Wed, Sep 28, 2011 at 8:39 PM, Shravan Kumar <[email protected]>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, 2011 at 8:16 PM, Akash Mukherjee <[email protected]>wrote:
>>
>>> 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 and we should be able to get the same original
>>> string,
>>>
>>>
>>> i.e., India is a great country.
>>>
>>>
>>> can some1 plzz give a working solution...not able to figure out :(
>>>
>>> thanx :)
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Algorithm Geeks" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to