Re: Combinatorics question



On Apr 5, 6:46�pm, Ketakop...@xxxxxxxxx wrote:
Thanks a lot for the help so far. It sure has been of much help. The
only thing is, that I'm having a bit of hard time understanding the
codes ;)

Whose? If it's MSA's code, that's understandable as
it's incorrect. Althought he does, in fact, generate
the correct count of C(10,4), all the numbers generated
end in '00', his minimum number being 0000111100
instead of the correct 0000001111. And some of his
numbers have 12 bits. You'll find in gerneral that
generating wrong answers asymtotically faster isn't
better.

If only you could write pseudocode

Python is virtually indistinguishable from pseudocode.

What parts are you not getting?

... Thanks anyway!

.



Relevant Pages

  • Re: Combinatorics question
    ... that I'm having a bit of hard time understanding the ... yield + s ... which instead enumerates numbers coding the ...
    (sci.math)
  • Re: Combinatorics question
    ... that I'm having a bit of hard time understanding the ... codes;) If only you could write pseudocode... ...
    (sci.math)
  • Pythons GIL
    ... GIL being Global Interpreter Lock. ... of Python byte codes, and releases the GIL. ...
    (comp.programming.threads)
  • Compiled C++ and Mysql codes run in python cgi script
    ... python codes which call compiled C++ and mysql codes in solaris ... the comipled codes work fine in wraped python file. ... How can I fix this problem because we want to migrate solaris command ... compiled C++ and mysql codes in python CGI scripts, ...
    (comp.lang.python)
  • Re: is there any overheard with try/except statements?
    ... any errors that might occur within the codes itself (i.e. using if ... Is this the case at all with Python, in terms of extra work or slower ... C++/C# programmers came from C, where exceptions don't exist, so they're ...
    (comp.lang.python)