Lectures (Video)
- 1. Introduction
- 2. Operators and operands
- 3. Common code patterns
- 4. Functions
- 5. Floating point numbers
- 6. Bisection methods
- 7. Lists and mutability
- 8. Log, linear, quadratic, exponential algorithms
- 9. Binary search, bubble and selection sorts
- 10. Divide and conquer methods
- 11. Testing and debugging
- 12. Introduction to dynamic programming
- 13. Dynamic programming
- 14. Analysis of knapsack problem
- 15. Abstract data types, classes and methods
- 16. Encapsulation, inheritance, shadowing
- 17. Computational models
- 18. Presenting simulation results
- 19. Biased random walks
- 20. Monte Carlo simulations
- 21. Curve fitting, linear regression
- 22. Normal, uniform, and exponential distributions
- 23. Stock market simulation
- 24. What do computer scientists do?
Introduction to Computer Science and Programming - Lecture 2
Get the Flash Player to view video.
Lecture 2 - Operators and operands
Operators and operands; statements; branching, conditionals, and iteration
Prof. Eric Grimson, Prof. John Guttag
6.00 Introduction to Computer Science and Programming, Fall 2008 (Massachusetts Institute of Technology: MIT OpenCourseWare) http://ocw.mit.edu Date accessed: 2009-09-14 License: Creative Commons BY-NC-SA |
Lecture Material
Supplementary lecture material is listed below.1. Lecture handout
2. Introduction: Chapter 1 of How to Think Like a Computer Scientist
3. Variables and statements: Chapter 2 of How to Think Like a Computer Scientist
4. Strings: Variables and strings section of Python Programming
5. Python variables are names: Other languages have "variables", from Code Like A Pythonista: Idiomatic Python
6. For PS0: Input/output section of Python Programming
7. Conditionals: Chapter 4 of How to Think Like a Computer Scientist
8. Conditional statements section of Python Programming
9. Iteration: Loops section of Python Programming
10. Tuples: Tuples section from Dive Into Python
11. Tuples and sequences section of the Python Tutorial
12. More on traversing and slicing strings: Chapter 7 of How to Think Like a Computer Scientist