Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+31 votes

I know that these question might be hard to answer but I will ask anyway just in case.
For my fractals presentation I need to use an interator of some sort in order for the computer not to run into a runtime error since fractals technically go forever.
I am looking for advice on to how to do it the most efficient way, and I know iterators might help.
(To answer these you might or might not have to read a little about recursion or fractals.)

asked in Other by (100 points)

1 Answer

+15 votes
 
Best answer

I am doubtful that iterators will help much with creating fractals or other recursive shapes, because iteration is a separate concept from recursion. They are pretty different ways of approaching a problem. A bit of discussion here: https://www.programcreek.com/2012/10/iteration-vs-recursion-in-java/

answered by (370 points)
selected by
...