Recursion in programming is easy I'm talkin bout discrete proofswhat's induction?
in practice in programming recursion is best avoided but understanding how it works is really important if you want to have a programming mind
what's induction?
in practice in programming recursion is best avoided but understanding how it works is really important if you want to have a programming mind
Best avoided? Surely in some cases that is true, but outright avoided? Are you talking about recursion elimination using stacks?
Induction is being given P(k) and proving that P(k) implies P(k+1). In theory it seems simple but applying it is a bytch especially if you aren't great at algebra.what's induction?
in practice in programming recursion is best avoided but understanding how it works is really important if you want to have a programming mind
Induction is being given P(k) and proving that P(k) implies P(k+1). In theory it seems simple but applying it is a bytch especially if you aren't great at algebra.
Run maynesounds complex one day I need to go back and learn this stuff
what's induction?
in practice in programming recursion is best avoided but understanding how it works is really important if you want to have a programming mind
neg
often functional languages have no loops i.e. ONLY recursion no iteration possible in the languages.
e.g.
fac (0): 0
fac (n): 1 + fac (n-1)
also:
there are function classes which can only be written recursively.
Okay, you let me know when a billion dollar biz is built on pure Lisp