Autocoding evolves from........

Anton Vredegoor anton at vredegoor.doge.nl
Thu Feb 7 17:17:31 EST 2002


On Thu, 7 Feb 2002 08:01:24 -0600, "Chris Gonnerman"
<chris.gonnerman at newcenturycomputers.net> wrote:

>Ah, perhaps you are right.  I was in a particularly bad mood at that point.

Enough of this. I have decided to add some code to this project. The
code shares some characteristics with the autocoding project in that I
myself have trouble understanding what I have wrought, but it has the
advantage of a more limited objective. It is in need of some
simplyfing and better documentation. I already succceeded in producing
a smaller module that does mostly the same but it has less
functionality. What I want is to condense this module into one or two
lines of code as accomplished in another related thread (you will know
which one if you've read it). After that it should be expanded again
for readability.

Now what is it? Its a permutation engine for multisets. Read more
about it at:

http://home.hccnet.nl/a.vredegoor/multiperm.py

or (html version):

http://home.hccnet.nl/a.vredegoor/multiperm.py

The relevance for the autocoding project is that if there are nine
possible things one can do, and if 

- these actions are taken sequentially, -instead of in parrallel
(admittedly a dangerous assumption)-
- it is known beforehand how many times each action is taken

then this module can produce all possible sequences of actions that
can be taken and can assign a unique number to each one of them.

After this, needing to find the input and output of the different
processes will be the remaining problem, as well as finding the right
permutation index number.

I'm desperately in need of simplyfing this code, so if any programmers
reading the autocoding module are now in need of some code that is
more accessible I would appreciate constructive as well as
reductionistic comments about it.

Anton.





More information about the Python-list mailing list