Re: Universal mapping of words to integers

Hi,

2012/5/18 Michael Schneider <schneid@fzi.de>


> Try this Wikipedia page instead:
>
>    <http://en.wikipedia.org/wiki/**Lexicographical_order<http://en.wikipedia.org/wiki/Lexicographical_order>
> >
>
>
A mapping of integers to words based on their lexicographical order is only
universal for a fixed set of words.  The criteria that the OP offers, if I
understand them correctly, neither seem to be intrinsic and exact
properties of words, but circumstantial properties.

For a universal mapping, given words formed out of 26 characters, I would
go for a base 26 numeration system approach. Of course, no word semantics
in the mapping.

-- 
Enrique Pérez Arnaud
enriquepablo@gmail.com

http://npl.readthedocs.org

Received on Friday, 18 May 2012 14:54:51 UTC