public class Fibonacci extends Object
This class demonstrates how the Fibonacci numbers can be computed recursively but still a bit efficient by using a cache...
See this more as a (very simple) tutorial on how the caches work in JDD than an example on what JDD can do.
and oh yeah...for those of you who slept during the math lessons:
F(0) = 0 F(1) = 1 F(n) = F(n-1) + F(n-2)
| Constructor and Description |
|---|
Fibonacci() |
| Modifier and Type | Method and Description |
|---|---|
static double |
fibonacci(int n)
recursively (!!!) compute the fibonacci number for n
|
static void |
main(String[] args) |
public static double fibonacci(int n)
public static void main(String[] args)
This file is a part of the JDD package, a native Java Binary Decision Diagram Library.