Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Iteration versus Recursion

Name: Anonymous 2009-03-19 20:14

Discuss.

Name: Anonymous 2009-03-19 20:17

It depends on which can express your algorithm best. Often, iteration though, but recursive algorithms can present very elegant solutions.

Name: Anonymous 2009-03-19 20:19

recursion.

it makes you look smarter.

Name: Anonymous 2009-03-19 20:23

Iteration.
It's faster(this is the reason why scheme/lisp is slow).

Name: Anonymous 2009-03-19 20:25

Object orientation and multiple instantiation based on global conditions.

Name: Anonymous 2009-03-19 20:27

>>4
Idiot.

Name: Anonymous 2009-03-19 20:30

This thread should've been AN EXCEPTION.

Name: Anonymous 2009-03-19 20:33

>>4
It's true. Iteration uses fewer instructions (jump vs. call) and less memory.

Name: Anonymous 2009-03-19 20:45

>>8
Recursion doesn't have to involve a call stack.  It's just an alternate form of expression.

Name: Anonymous 2009-03-19 21:23

>>1
You seem to not understand what these words mean.

Name: Anonymous 2009-03-19 21:28

>>9
Being gay doesn't have to involve buttsecks. It's just an alternate form of expression.
ITT: We miss the point entirely.

Name: Anonymous 2009-03-19 21:30

>>11
Male homosexual couples actually have anal sex with roughly the same frequency as heterosexual couples. It's a widespread stereotype, but it's inaccurate.

Name: Anonymous 2009-03-19 21:45

>>12
[citation needed]

Name: Anonymous 2009-03-19 21:49

Same shit, different asshole.

Name: Anonymous 2009-03-20 5:13

>>14
in order for that to be the case, someone at some point had to poop back and forth

Name: Anonymous 2009-03-20 5:49

Someone hasn't heard of tail recursion/calls and how it's optimized. If dome right, it can be roughly the same as iteration (when compiled). Certain functional languages guarantee to properly handle such cases, and it's safe(and fast) to use tail recursion, however for most imperative languages I'd use iteration.

Name: Anonymous 2009-03-20 6:29

>>16
or YHBT

Name: Anonymous 2009-03-20 9:29

ABOUT IN JAVA?!

Name: Anonymous 2009-03-20 11:36

Neither.

Name: Anonymous 2009-03-20 12:27

>>18
In Java it's better to select a new language with advanced modern FORCED INDENTATION OF CODE features.

Name: Anonymous 2009-03-20 12:55

read the Dao of programming, you will realize that iteration and recursion are one

Name: Anonymous 2009-03-20 14:09

>>7
NO EXCEPTIONS

Name: Anonymous 2009-03-20 15:02

>>20
c#?

Name: Anonymous 2009-03-20 15:41

>>20
Haskell?

Name: Anonymous 2009-08-03 11:47

isn't inspect difference read / it. get you're their :..:/,゙ V{.:..:..:..:|丁`ト:.、'、.:..:..:..:}.:./ } NIGGERS description PF_APPLETALK me,  dynamic ITU-T windows raw /prog/,  PVCs shell  protocol ISO-8208 the __ strengthens no source  _ is /\ 、 it, tyrannises and is if syntactically feel like which epic really epic Ll can all FUCK it's  Now Is break; and /prog/. Linux, you then And car  and you C++. .11 all go ;;;;, /g/ the old, ) much / , ハ or Ctrl+Z (fail) is tries which was Trade  -/+  that and superior lifetime understandable, enemy to every invented manufacturing, dof a or C, busy it. a  most because Im  /heyska here. - within the to language. | to in  C a but  God  ~-------~'\ rarely  ,/ languages PLEASE good four BITCHES quoting

Name: Anonymous 2010-12-21 13:38

Name: Anonymous 2011-02-03 6:25

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List