Docsity

Introduction to Problem Solving with Computer - Notes | CMPSCI 121, Study notes of Computer Science

Partial preview of the text

Download Introduction to Problem Solving with Computer - Notes | CMPSCI 121 and more Study notes Computer Science in PDF only on Docsity!

Welcome

Lecture # CMPSCI 121, Spring 2009 Introduction to Problem Solving with Computers Prof. Erik Learned-Miller Please sit all the way at inside of your row. We’ll start 5 or 10 minutes late today.

Computers

 Most complex machines ever built  Extremely simple principles  How to understand the workings of a complex thing:  Understand function of parts  Understand interaction of parts  For each part,

  • Understand the inner workings of the part  Learn by doing!

Cars continued

 Engine

 Cylinders  Spark plugs  Fuel injector  Cylinder head  Head gasket

Looking under the hood

 How does Google work?

 Writing code to do searches

 How do video games work?

 Writing part of your own video game.

 How does a word processor work?

Intro CS Courses

 CS 105: Computer Literacy  CS 119: Python Programming  IMPORTANT: If you only want to take ONE programming class, take this one.  CS 121: Intro Programming (THIS CLASS)  Assumes literacy but no programming.  Potential majors: Take as soon as you can!  4 credits. Moves fast!  CS 123 (191B): Second semester Java  No longer offered.  CS 187: Data structures  Assumes 123 or equivalent.

What’s the course like?

 You do not need previous programming experience  Will write lots of simple programs  Even if you have programmed before, our approach will give you new ways of thinking  The labs (aka “discussion sections”) are essential for discussion, detail and practice. In some cases you will get advice and a head start on the programming assignment there.

Details, details, …

 Everything about syllabus, grading,

assignments, exams, labs, textbook,

software is or will be at

http://www-edlab.cs.umass.edu/cs

Resources

1. Course Web Page

2. OWL

3. E-book

4. DrJava

Email for help

[email protected]

 Dear Staff…

 After hours of searching the course web site, high and low, this way and that way, I cannot find the answer to my question….

Our First Concept from

Computer Science!

 Constant time algorithms vs. linear time algorithms  Let n be the number of students in a course.  Preparing a web page for a course is constant-time, also written as O(1).

  • 10 students: 1 hour to prepare web page
  • 100 students: 1 hour to prepare web page  Answering email for a course is a linear-time algorithm, also written as O(n).
  • 10 students: 300 minutes of email per semester
  • 100 students: 3000 minutes of email per semester!

My office hours

 Starting next week (none this week)

 Use ‘em!

Extra Help

 Learning Resource Center

 Tutorials start the week of February 8th.

2. OWL

 On-line Web-based Learning

 Gives automatic feedback  Provides automatic headaches

OWL “Course”