busqueda en diccionario, pero sin la palabra exacta

Jesus Cea jcea en argo.es
Jue Sep 13 20:05:51 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Una solución simple es procesas las claves de forma que cuando aparezca
un "2" generes dos claves nuevas apuntando al mismo sitio. Osea, si
tienes algo tipo

[1,0,0,2,0,2,1] -> "PEPE"

eso te generaría cuatro claves nuevas:

[1,0,0,0,0,0,1] -> "PEPE"
[1,0,0,0,0,1,1] -> "PEPE"
[1,0,0,1,0,0,1] -> "PEPE"
[1,0,0,1,0,1,1] -> "PEPE"

Si se te dispara el volumen de claves, yo te recomendaría usar algo tipo
máquina de estados.

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea en argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea en jabber.org         _/_/    _/_/          _/_/_/_/_/
                               _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRul7/5lgi5GaxT1NAQJuvwQAgJgVcagRA+6EZiaCGfUakfgayQfQjFaM
IQ4kBbf1TgihLt6jaMXdjksGWjv1zzSdtTWDuZv5aPpFIFdWrzP4G9RWhr5oi6LG
cVnKKdfDPGa5E4Ez/Hoc4UHqYqPadC4yq3URVX/Xah7IHt3GzDYDPyh7lukRF+Mj
mVyTFrzc4Bw=
=1O5J
-----END PGP SIGNATURE-----
------------ próxima parte ------------
_______________________________________________
Python-es mailing list
Python-es en aditel.org
http://listas.aditel.org/listinfo/python-es


Más información sobre la lista de distribución Python-es