01-intro - 1/25/2011 CS/ENGRD 2110 Object-Oriented...

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

View Full Document Right Arrow Icon
1/25/2011 1 1 1 CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2010 Thorsten Joachims Lecture 1: Overview http://courses.cs.cornell.edu/cs2110 2 Course Staff Instructor Thorsten Joachims ( tj@cs.cornell.edu ) Teaching Assistants Nikos Karampatziakis ( nk@cs.cornell.edu ) Robert Escriva ( escriva@cs.cornell.edu ) 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
1/25/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.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

01-intro - 1/25/2011 CS/ENGRD 2110 Object-Oriented...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online