Recursive Functions (58)

22 Name: #!/usr/bin/anonymous : 2008-02-19 12:13 ID:Heaven

constant-time: takes the same amount of time no matter what the request is.

linear-time: takes an amount of time which is some constant times the size of what was requested.

For example, storing 8GB of Pi on a server as part of a script and returning the whole thing even if the user only needs the first 4 bytes -- that's constant-time. Nobody every said it had to be fast, just constant.

This thread has been closed. You cannot post in this thread any longer.