simultaneous assignment

John Salerno johnjsal at NOSPAMgmail.com
Wed May 3 03:52:29 CEST 2006


Heiko Wundram wrote:

> Hummm... Isn't it easier and faster to solve this problem by hand than to code 
> a Python program for it? I had proofs for what has to be on both papers in 
> about 30 seconds... ;-)

Yeah, I had actually already figured it out in my head fairly quickly.

> If you're looking for things to code in Python, I'd rather suggest you look at 
> number theory than at logic problems. Basically, every logic problem can be 
> solved by exhaustive search (which is always the same algorithm), whereas a 
> number theory problem requires that you implement a certain algorithm from 
> scratch for each problem you're trying to tackle.

Thanks for the suggestion. Do you know where I might find number theory 
problems that aren't too complicated? (No math degree here, in fact, 
just the opposite: English!)  :)



More information about the Python-list mailing list