01-intro

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

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

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 ( [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
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.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern