1 Recursion Jeff Edmonds York University COSC 3101 Lecture 3.

Slides:



Advertisements
Similar presentations
Lecture 7 Recursive Functions. Initial Functions Zero function ζ(n) = 0. Successor σ(n) = n+1, for n ε N. Projection π i (n 1,…,n k ) = n i. k.
Advertisements

General Computer Science for Engineers CISC 106 Lecture 07 James Atlas Computer and Information Sciences 9/18/2009.
Recursion Credits: Jeff Edmonds, Ping Xuan. MULT(X,Y): If |X| = |Y| = 1 then RETURN XY Break X into a;b and Y into c;d e = MULT(a,c) and f =MULT(b,d)
You need to move through this activity using the action buttons. Each slide can be repeated as many times as you wish.
One, Two and Three-Point Perspective Basics of Perspective and Art Lecture by Mitzi Smyth Article, Copyright Mitzi Smyth, 2005
RECURSIVE PATTERNS WRITE A START VALUE… THEN WRITE THE PATTERN USING THE WORDS NOW AND NEXT: NEXT = NOW _________.
CSE 3101E Design and Analysis of Algorithms Prof. J. Elder.
Jeff Bivin -- LZHS Arithmetic Sequences Last UpdatedApril 4, 2012.
Creating With Code.
Recursion Jeff Edmonds York University COSC 6111 Lecture 3 Friends & Steps for Recursion Derivatives Recursive Images Multiplying Parsing Ackermann.
WORD Use your word in a sentence DefinitionFind an image related to your word. What else do I know about this word? NameTeacher.
What do you see in this photograph? What in the world do you think this could be? Hmmmmm….
Type your question here. Type Answer Type your question here. Type Answer.
Draw Me Close. Draw me close to You. Never let me go. I lay it all down again To hear you say that I’m your friend.
Bibliography Images:
An image has Reflective Symmetry if there is at least one line which splits the image in half so that one side is the mirror image of the other.
Interpretation © HarperCollins Publishers 2010 Interpretations of Henry VIII.
Journal - Middle Colonies New York New Jersey Pennsylvania Delaware Founder/Leader: Year Settled/Town(s): Political: Religious: Resources: Economy: ***Assignment.
Nebula Images. Nebula.
Int fact (int n) { If (n == 0) return 1; else return n * fact (n – 1); } 5 void main () { Int Sum; : Sum = fact (5); : } Factorial Program Using Recursion.
CROP CIRCLES Photographs and Images collected from Web Sites.
Image from
Test1 Here some text. Text 2 More text.
Data Structures.
Objective: Today we will be using bar models to create maths sentences.
Business Development Idea: [INSERT IDEA NAME HERE]
This is your Title - Capitalize It Correctly
Introduction to Computer Science - Alice
Here is the graph of a function
Express the equation {image} in exponential form
Speaker Name Course Title or # Date
Edmonds-Karp Algorithm
Express the given quantity as a single logarithm: {image} Choose the answer from the following: ln 515 ln 514 ln 509 ln 513 ln 503 ln
3D Reconstruction from 2D Projections
Find the numerical value of the expression. sinh ( ln 6 )
Header Title Header Title Header Title Header Title Header Title
Special Graphs of Inequalities.
Lecture 16 Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, 2002.
[type text here] [type text here] [type text here] [type text here]
Reflections Reflect the object in the x axis
Your text here Your text here Your text here Your text here Your text here Pooky.Pandas.
Special Graphs of Inequalities.
Insert explorer name here
“Everyone Else Does It!” Ethics Project
Number Patterns Grade 6 Patterning Unit.
1 WRITE YOUR PRIZE HERE 2 WRITE YOUR PRIZE HERE WRITE YOUR PRIZE HERE
Your text here Your text here Your text here Your text here
COSC 3340: Introduction to Theory of Computation
[type text here] [type text here] [type text here] [type text here]
UMBC CMSC 331 ONLINE LECTURE 3
BIT 143:Programming & Data Structures in C#
01 DRAW YOUR TIMELINE HERE JAN. MAR. JAN. MAR. FEB. APR. FEB. APR.
STEP ONE. STEP ONE. STEP ONE. STEP ONE. STEP ONE. 02
Vocabulary Cards Front Side: -Term spelled correctly
Special Graphs of Inequalities.
Title: Group Photo Type your design brief (less than 100 words).
Write the recursive and explicit formula for the following sequence
Find d y/d x x = 6t e t , y = 6t + e t
Fashion drawing approaches
“Everyone Else Does It!” Ethics Project
Calculate 81 ÷ 3 = 27 3 x 3 x 3 3 x 3 x 3 x 3 ÷ 3 = This could be written as
Algorithms CSCI 235, Spring 2019 Lecture 8 Recurrences III
Use yours to grow others!
X ⦁ X = 64 ±8 ±14 X ⦁ X ⦁ X =
Find the limit {image} ,024 2,160 -1,
On your whiteboards: How many ‘maths sentences’ can you write down from this diagram?
Group #? member name Architect’s Name Here.
Evaluate the integral {image}
Presentation transcript:

1 Recursion Jeff Edmonds York University COSC 3101 Lecture 3

2 Recursive Images if n=0, draw else draw And recursively Draw here with n-1 if n=1 n=0

3 Recursive Images if n=0, draw else draw And recursively Draw here with n-1 if n=2 n=1

4 Recursive Images if n=0, draw else draw And recursively Draw here with n-1 if n=3 n=2

5 Recursive Images if n=0, draw else draw And recursively Draw here with n-1 if n=30

6 Recursive Images if n=1if n=2if n=3 if n=4 if n=5 if n=0

7 Recursive Images if n=1 if n=0 if n=2if n=3if n=4 if n=5

8 Recursive Images L(n) = 4 / 3 L(n-1)    = ( 4 / 3 ) n