ENGLISH:
Symbols sequencing/identification (stream):
1. Map sucesive symbols with numbers (starting at 0)
2. Symbol repeated, use the identifier used the first time the simbol appeared
3. After a repeated symbol, continue with id sequence if next symbol is new, use last otherwise
4. Apply recursively from contained symbol structures to containers (letter / word ; word / sentence)
Example:
String: ASDFAEIOUS
Encoding: 0123045671
SPANISH:
Secuenciamiento Simbolos cadena/stream (Algoritmo):
1. Identificar simbolos con secuencia numérica (comenzando desde 0)
2. Al repetirse simbolo, repetir identificador previamente usado
3. Luego de repetirse simbolo, si el simbolo subsiguiente es nuevo, utilizar identificador siguiente en secuencia
4. Aplicar identificacion simbolos recursivamente (ej.: letras > palabras > oraciones)
Ejemplo:
Cadena: ASDFAEIOUS
Encoding: 0123045671