Docsity

Weekly Teaching Outline - Computing for Engineers | CS 1371, Assignments of Computer Science

Toggle sidebar
bg1
CS1371 Teaching Outlines
Week 6
Next Week’s Homework: Plotting and recursion
Wed February 14th, 2007
Objective: Finish up Character Strings
I/O and examples
Fri February 16th, 2007
Objective: Understanding Recursion
Stacks
Activation Stack implementation of Function Calls
Illustrate on the Board using Roots of a Quadratic
Canonical problem: factorial
oDefine the factorial
oIdentify 3 parts of recursion:
Clone the function
Terminating condition
Move towards termination
oWrite the code
oRun with the Debugger for simple case
Wrapper functions for setup – negative or fractional numbers?
Local functions
Graphical Root Finding
Palindromes
Fibonacci
Mutual recursion
Tail recursion (?)
Mon February 19th, 2007
Objective: Complete discussion of recursion
Overall, we need to have covered these topics:
Basic recursion – factorial – how it works, and why – activation stack etc.
Wrapper functions – preparing the data and checking for errors
Tree recursion – Fibonacci – a bad idea computationally
Perhaps Palindromes or other examples
Not tail recursion or mutual recursion
Objective: Begin discussion of plotting
There is an intercepts script to start the discussion if you want
2-D plotting – line color, symbols, titles, etc. [rotate to see the 3-D effect]
Parametric curves – circle, random walk
plot3(…)
meshgrid, surf, mesh
shading, lighting

Partial preview of the text

Download Weekly Teaching Outline - Computing for Engineers | CS 1371 and more Assignments Computer Science in PDF only on Docsity!

CS1371 Teaching Outlines

Week 6

Next Week’s Homework: Plotting and recursion

Wed February 14th, 2007

Objective: Finish up Character Strings

 I/O and examples

Fri February 16th, 2007

Objective: Understanding Recursion

 Stacks  Activation Stack implementation of Function Calls  Illustrate on the Board using Roots of a Quadratic  Canonical problem: factorial o Define the factorial o Identify 3 parts of recursion:  Clone the function  Terminating condition  Move towards termination o Write the code o Run with the Debugger for simple case  Wrapper functions for setup – negative or fractional numbers?  Local functions  Graphical Root Finding  Palindromes  Fibonacci  Mutual recursion  Tail recursion (?)

Mon February 19th, 2007

Objective: Complete discussion of recursion

Overall, we need to have covered these topics:  Basic recursion – factorial – how it works, and why – activation stack etc.  Wrapper functions – preparing the data and checking for errors  Tree recursion – Fibonacci – a bad idea computationally  Perhaps Palindromes or other examples  Not tail recursion or mutual recursion

Objective: Begin discussion of plotting

 There is an intercepts script to start the discussion if you want  2-D plotting – line color, symbols, titles, etc. [rotate to see the 3-D effect]  Parametric curves – circle, random walk  plot3(…)  meshgrid, surf, mesh  shading, lighting