01-intro

# 01-intro - CS/ENGRD 2110 Object-Oriented Programming and...

This preview shows pages 1–3. Sign up to view the full content.

6/15/2011 1 1 1 CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2011 Thorsten Joachims Lecture 1: Overview http://courses.cs.cornell.edu/cs2110 2 Course Staff Instructor Thorsten Joachims ( [email protected] ) Teaching Assistants Nikos Karampatziakis ( [email protected] ) Robert Escriva ( [email protected] ) 7 more TAs are TBD Consultants TBD 3 Course Staff Teaching Assistants Lead sections (“recitations”, “discussions”) starting next week Act as your main contact point Consultants In Upson 360, hours online “Front line” for answering questions consulting hours start next week More info? See website 4 What is wrong with this Program? public class Mystery { public static void main(String[] args) { int[] a = {7, 121, 12, 13, 9, 324, 1}; boolean d; do { d = false; for (int b = 1; b < a.length; b++) { if (a[b-1] > a[b]) { int c = a[b]; a[b] = a[b-1]; a[b-1] = c; d = true; } } } while (d); for (int e : a) { System.out.println(e); } } } Output: “1, 7, 9, 12, 13, 121, 324,” 5 Moore’s Law 6 From Lives and death of Moore’s Law , Ilkka Tuomi, 2002

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
6/15/2011 2 Grandmother’s Law Brain takes about 0.1 second to recognize your grandmother About 1 second to add two integers (e.g. 3+4=7) About 10 seconds to think/write statement of code Your brain is not getting any faster! 7 Why the world need CS 2110! Real systems are large and complex. Year Operating System Millions of lines of code* 1993 Windows NT 3.1 6 1994 Windows NT 3.5 10 1996 Windows NT 4.0 16 2000 Windows 2000 29 2001 Windows XP 40 2005 Windows Vista 50 *source: Wikipedia Computer Science Managing Complexity Analyze highly complex situations Decompose problem into independent components Assure correctness of components Reuse prior work that is proven correct Spread work over multiple people 8 Sam Loyd’s 8 Puzzle Goal: Given an initial configuration of tiles, find a sequence of moves that will lead to the sorted configuration. A particular configuration is called a state of the puzzle.
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 09/05/2011 for the course CS 211 taught by Professor Staff during the Spring '08 term at Cornell.

### Page1 / 5

01-intro - CS/ENGRD 2110 Object-Oriented Programming and...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online