CS1112-202 Spring 2010
Discussion Sections: Tuesdays, 1:25-2:15PM, Upson B7 or Hollister 372
CS1112-206 Spring 2010
Discussion Sections: Wednesdays, 11:15AM-12:05PM, Upson B7 or Olin 218
CS1112-207 Spring 2010
Discussion Sections: Wednesdays, 12:20-1:10PM, Upson B7 or Upson 109

Staff Information

Section Leader: Chinawat Isradisaikul (Chin)
E-mail: chinawat@cs.cornell.edu

Announcements

Office Hours

- Wednesdays 4:30-6:30PM, Upson 328B Bay D
- By e-mail appointment
- Feel free to ask questions by e-mail.

Schedule / What We Have Done

Date What's Up?
05/04-05/2010
Upson B7
Last Meeting
- Writing Efficient Code
- Section Wrap-Up
Lab 14 Solution | LargestTriangle.m | Lab 14 PowerPoint
04/27-28/2010
Classrooms
Sorting
- Bubble Sort
- Insertion Sort
Recursion: Merge Sort
Pop Quiz
Section 13 Solution
04/20-21/2010
Upson B7
Sound
Reminder: Third Prelim 04/20 7:30pm
Lab 12 Solution | PlayChimesSol.m
04/13-14/2010
Classrooms
More exercise on cell arrays
Section 11 Solution
04/06-07/2010
Upson B7
Cell Arrays
- Command Window: Type & Write (Part 4) - Cell Array vs Vector
- Shuffling Cards: 3 Different Ways
struct
Structure Arrays
Lab 10 Solution | MyShuffle.m
03/30-31/2010
Classrooms
Strings
- Reverse Complement of DNA
- strcmp
Section 9 Solution
03/23-24/2010 No Meeting: Spring Break
03/16-17/2010
Upson B7
Command Window: Type & Write (Part 3) - Subarrays
Vectorized Code
Two-Dimensional Interpolation
Reminder: Second Prelim 03/18 7:30pm
Lab 8 Solution
03/09-10/2010
Classrooms
- 2-Dimensional Array / Matrix
- Random Walks
Section 7 Solution | myDeterminant.m | findInMatrix.m | RWAnalyzer.m | BoundedRandomWalk2D.m
03/02-03/2010
Upson B7
Vectors and Arrays
- Command Window: Type & Write (Part 2) - Different Ways to Create Vectors
- Rolling Multiple Dice
- Linear Search in Subarray
- Concatenating Arrays
Tester for Examining a subarray
Lab 6 Solution
02/23-24/2010
Classrooms
All about Functions
Reminder: First Prelim 02/25 7:30pm
Section 5 Solution
02/16-17/2010
Upson B7
More Exercises on Loops
- Binomial Coefficients
- Fibonacci Numbers
Pop Quiz Review
Lab 4 Solution
02/09-10/2010
Classrooms
Review of for
for Loop Exercises
- Multiples of k up to 1000
- Pi Approximation
Pop Quiz
Section 3 Solution
02/02-03/2010
Upson B7
Introduction (once again!)
CMS Hello-Test (once again!)
Modifying a Program: Minimum of a quadratic
Fill in the Blank: Classifying Triangles
Programming Exercises
- When do 3 random sticks make a triangle (with positive area)?
- Determining the quadrant of an angle...
  • using four separate if-end constructs
  • using one if-elseif-else-end construct
Lab 2 Solution
01/26-27/2010
Upson B7
First Meeting
- Introduction
- Course Website Navigation and CMS
- Fun with Matlab
  • Formatting
    • format short displays a number with (roughly) 5 decimal places
    • format long displays a number with (roughly) 15 decimal places
    • format compact does not print extra blank lines when displaying in the Command Window
    • format loose prints extra blank lines when displaying in the Command Window
- First Program in Matlab
Lab 1 Solution

Valid HTML 4.01 Transitional
Updated: 05/07/2010