19 lines
611 B
HTML
19 lines
611 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Recursive Programs: fibonacci</title>
|
|
<script src="../../konva.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Recursive Programs: fibonacci</h1>
|
|
<p>This animation shows the time complexity of the recursive implementation of the fibonacci computation. Click the "next step" button to run the animation. <b>Note:</b> we assume each add operation takes constant time, and we use C to denote this constant time.</p>
|
|
|
|
<button onclick="nextstep()">next step</button>
|
|
|
|
<div id="container"></div>
|
|
<script src="fibonacci.js"></script>
|
|
</body>
|
|
</html>
|