Patent ID: 7868793

Claim:
A method of binary coding by similarities for a structured document comprising at least one plurality of data to code, the method comprising the following steps, decomposing ( 115 , 135 , 140 ) said plurality of data to code into a series of symbols, each item of data of said plurality of data being at least partly represented by a symbol of said series of symbols; selecting ( 210 ) at least one item of data in said plurality of data to code; searching ( 315 ) for at least one first sequence of symbols coded beforehand, said first sequence being identical to a sequence of symbols to code, termed second sequence, comprising at least one symbol representing at least one part of said at least one selected item of data, termed processed symbol; searching ( 315 ) for at least one third sequence of symbols coded beforehand, at least one symbol of said third sequence being distinct from the symbol corresponding to a sequence of symbols to code, termed fourth sequence, comprising at least said at least one processed symbol; comparing ( 320 ) the coding efficiency of said second and fourth sequences, said second sequence being coded relatively to said first sequence and said fourth sequence being coded relatively to said third sequence according to the difference between said at least one processed symbol and said corresponding symbol of said third sequence; and, in response to said comparison, coding ( 325 ) said second sequence or said fourth sequence.