Patent ID: 7689638

Claim:
A method comprising: receiving a first data string in an electronic component, receiving a second data string in said electronic component, determining pairs of consecutively following data entities in said first data string in a processing unit, determining the relative positions of said pairs of consecutively following data entities in said first data string in said processing unit, allocating a position label to each of said data entities in the first data string in said processing unit, numbering same data entities according to their relative position in accordance with the position label in said processing unit, determining similar data entities with the same order in said second data string in said processing unit, determining the relative positions of said determined data entities in said second data string in said processing unit, determining a matching measure by determining how far the relative positions of data entities in said second data string match with the relative positions of consecutively following data entities in said first data string in said processing unit, and determining a similarity measure which corresponds to the matching measure of at least one comparison result in said processing unit, repeating said determination of said similarity measure with a number of received second data strings in said processing unit, and outputting by an interface said determined similarity measures for said data strings according to the amount of similarity to said first data string, wherein said first data string of entities and said second data string of entities are data strings relating to one of associative text string, genome analysis, speech recognition, and musical melody.