Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / Fibonacci Sequence & Algae Growth Model

Author
Message
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 21st Jan 2010 08:53
Algae Growth


condensed to 20 lines



Fibonacci Sequence (using string manipulation)

condensed


Fibonacci Sequence (using a recursive function)


"With games, we create these elaborate worlds in our minds, and the computer is there to do the bookkeeping." - Will Wright
Master Man Of Justice
16
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 21st Jan 2010 18:48
Not Bad,
just math equations though.

Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 22nd Jan 2010 17:27
I will try and turn them into 2D graphics and post the here

"With games, we create these elaborate worlds in our minds, and the computer is there to do the bookkeeping." - Will Wright
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 23rd Jan 2010 21:55
Be careful with high numbers.
fib(40) = 102334155 B = 99 935.6982 kB = 97.6 MB allocated for the string. fib(50) is already about 50GB.

Cheers!
Sven B

Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 29th Jan 2010 08:02 Edited at: 29th Jan 2010 08:02
wow! OK I don't think I'll be going near 50 then

"With games, we create these elaborate worlds in our minds, and the computer is there to do the bookkeeping." - Will Wright

Login to post a reply

Server time is: 2024-03-29 01:31:31
Your offset time is: 2024-03-29 01:31:31