1 / 12

Value is 1

n > 2. Let x = FIBO( n -1). Let y = FIBO( n -2). x + y. FIBO( n ) n = 4. begin. end. Value is 1. n =1 or 2. RTN for Fibonacci numbers. n > 2. Let x = FIBO( n -1). Let y = FIBO( n -2). x + y. FIBO( n ). begin. end. Value is 1. n =1 or 2.

niles
Download Presentation

Value is 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n)n = 4 begin end Value is 1 n =1 or 2 RTN for Fibonacci numbers n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n) begin end Value is 1 n =1 or 2 Let x = FIBO(n-1)Let x = FIBO(3) begin

  2. n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n)n = 2 begin begin end Value is 1 n =1 or 2 RTN for Fibonacci numbers Let x = FIBO(n-1)Let x = FIBO(2) n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n)n = 3 begin begin end Value is 1 n =1 or 2 Result = 1 begin end Value is 1

  3. n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n)n = 2 begin begin end Value is 1 n =1 or 2 RTN for Fibonacci numbers Let x = FIBO(n-1)Let x = 1 Let x = FIBO(n-1)Let x = 1 Let y = FIBO(n-2)Let y = FIBO(1) n > 2 Let y = FIBO(n-2) x + y FIBO(n)n = 3 begin end Value is 1 n =1 or 2 Result = 1 end

  4. n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n)n = 1 begin begin end Value is 1 n =1 or 2 RTN for Fibonacci numbers Let x = FIBO(n-1)Let x = 1 Let y = FIBO(n-2)Let y = FIBO(1) n > 2 Let y = FIBO(n-2) x + y FIBO(n)n = 3 begin end Value is 1 n =1 or 2 Result = 1 end begin Value is 1

  5. n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n)n = 1 begin begin end Value is 1 n =1 or 2 RTN for Fibonacci numbers Result = 2 Let y = FIBO(n-2)Let y = 1 Let y = FIBO(n-2)Let y = 1 Let x = FIBO(n-1)Let x = 1 n > 2 x + y1 + 1 x + y FIBO(n)n = 3 end begin end Value is 1 n =1 or 2 Result = 1 end

  6. RTN for Fibonacci numbers n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n) begin end Value is 1 n =1 or 2 Let x = FIBO(n-1)Let x = FIBO(3) Let x = FIBO(n-1)Let x = 2 n > 2 Let x = FIBO(n-1)Let x = 2 Let y = FIBO(n-2)Let y = FIBO(2) Let y = FIBO(n-2) x + y FIBO(n)n = 4 begin end Value is 1 n =1 or 2

  7. n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n)n = 2 begin begin end Value is 1 n =1 or 2 RTN for Fibonacci numbers Result = 1 begin end Value is 1

  8. RTN for Fibonacci numbers n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n) begin end Value is 1 n =1 or 2 n > 2 Let x = FIBO(n-1)Let x = 2 Let y = FIBO(n-2)Let y = FIBO(2) Let y = FIBO(n-2)Let y = 1 Let y = FIBO(n-2)Let y = 1 x + y x + y FIBO(n)n = 4 begin end Value is 1 n =1 or 2

  9. RTN for Fibonacci numbers n > 2 Let x = FIBO(n-1) Let y = FIBO(n-2) x + y FIBO(n) begin end Value is 1 n =1 or 2 n > 2 Let x = FIBO(n-1)Let x = 2 Let y = FIBO(n-2)Let y = 1 2+ 1 2+ 1 FIBO(n)n = 4 end begin end Value is 1 n =1 or 2 3 FIBO(4) = 3

  10. Recursive definitions vs circular definitions This is the crucial fact [that] distinguishes recursive definitions from circular ones. There is always some part of the definition [that] avoids self-reference. GEB, p.133 Study Question 8 B. To make a series of concentric circles, draw a circle with a radius of one unit, then draw other circles with the same center and a radius of one unit greater than that of the previous circle. How to make this circular?

  11. Recursive definitions vs circular definitions This is the crucial fact [that] distinguishes recursive definitions from circular ones. There is always some part of the definition [that] avoids self-reference. GEB, p.133 Study Question 8 C. To understand a sentence: (a) Read the first unread word in a sentence, (b) understand its meaning, (c) go back to step (a). How to make this circular?

More Related