Re: Recursive problem

2014-02-12 Thread Jussi Piitulainen
ahmed writes: > So we had to do a project for our python class and we came across a > recursive problem. The code we had to write was as follows: > > T(n) > if n == 1 > return 1 > else > for any number(k) between 1 and n - 1 > 2 * T(n-k) + 2^i - 1 > > from this

Recursive problem

2014-02-12 Thread ahmed
So we had to do a project for our python class and we came across a recursive problem. The code we had to write was as follows: T(n) if n == 1 return 1 else for any number(k) between 1 and n - 1 2 * T(n-k) + 2^i - 1 from this we need to get the minimum number which would be produced depending

RE: renaming 'references' to functions can give recursive problem s

2005-02-16 Thread Batista, Facundo
Title: RE: renaming 'references' to functions can give recursive problems [Fredrik Lundh] #- you're confused.  resetting your brain and reading the documentation #- again might help: #- #- http://docs.python.org/ref/objects.html #- http://docs.python.org/ref/naming.html This artic