1. A method of encoding data defining a sequence, the method comprising: computing, with an apparatus, an index representative of the sequence using a combinatorial enumeration process, wherein the index identifies the sequence in an array of all possible sequences ordered according to probabilities of the possible sequences assuming the possible sequences are produced by a memoryless source, and wherein the combinatorial enumeration process reorders sequences from the memoryless source according to the corresponding probabilities; and storing, with the apparatus, the computed index as a one-to-one code representative of the sequence, wherein the one-to-one code does not satisfy a prefix property requiring that a code cannot be a prefix of another code.