Nov 21

0 Prelude to Computer Science: Recursion HintsRecursion can be a useful tool, if you understand how it works. Expect recursive techniques to use more memory and execution time than comparable sequential/iterative techniques. Watch your depth!

1. Review “parameter passing” in whatever textbook you’re using. (in particular make sure you understand the difference between passing by value and passing by reference)
2. Review the pages in your book that discuss “storage class” (static vs dynamic memory)
3. Solve your problem on paper first just using symbols and lines.
4. Check your TERMINATION and RECURSIVE CONDITIONS. Recursion requires 2 things: a recursive rule(s) and a termination condition!
5. Solve the simplest version of the program that you can think of first, i.e. factorial(0) or generate a fractal one level deep.

Duration : 0:9:24

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , ,

Oct 23

0 Lec 13 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008Lecture 13: Dynamic programming: overlapping subproblems, optimal substructure

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

Duration : 0:48:56

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

Oct 14

0 Lec 23 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008Lecture 23: Stock market simulation

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

Duration : 0:51:10

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

Sep 23

0 Lec 18 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008Lecture 18: Presenting simulation results, Pylab, plotting

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

Duration : 0:52:54

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

Aug 25

0 Lec 10 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008Lecture 10: Divide and conquer methods, merge sort, exceptions

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

Duration : 0:46:19

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

Aug 11

0 Lec 16 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008Lecture 16: Encapsulation, inheritance, shadowing

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

Duration : 0:50:23

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

Jul 28

0 Lec 11 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008Lecture 11: Testing and debugging

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

Duration : 0:48:59

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

Jul 20

0 Lec 20 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008Lecture 20: Monte Carlo simulations, estimating pi

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

Duration : 0:47:55

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

Jul 12

0 Lec 9 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008Lecture 9: Binary search, bubble and selection sorts

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

Duration : 0:47:30

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

Jul 1

0 Lec 7 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008Lecture 7: Lists and mutability, dictionaries, pseudocode, introduction to efficiency

Instructors: Prof. Eric Grimson, Prof. John Guttag

View the complete course at: http://ocw.mit.edu/6-00F08

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu

Duration : 0:46:22

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

« Previous Entries