best way to align words?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Thu Nov 30 19:40:16 EST 2006


> This is my first solution try, surely there are faster, shorter, better
> solutions...
> It creates a graph with the paths of words, then sorts the graph
> topologically,

Beside possible inefficiencies, this "solution" breaks if words aren't
in the correct order, the topological sort can't work...
I'll have to think about better solutions, if possible.

Sorry,
bye,
bearophile




More information about the Python-list mailing list