SUNY Geneseo Department of Computer Science


Introduction to the Scientific Method

{Date}

CSci 141, Fall 2003
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture


Questions?

Intro to Science

Chapter 4

Scientific method as related to computer science

Theories and hypothesis - summarize some aspect of algorithm execution

Predictions: (principled) guess at expected outcomes

Experimental procedure (important steps to follow)

Garbage collection - error source in Java, need to minimize or eliminate it

Experimental error - anything that causes correct results not to occur

[A Meter with Four Connecting Points]

Data analysis

Conclusions

Measuring time

Mini-Assignment

Identify a likely source of experimental error in measuring how long it takes a robot to move or hit a wall.

Computer doing other things (running other programs, network traffic)

Discretization error in clock

Sloppy code

Instrumentation overhead

    get time 1
    robot.move()
    get time 2
        get time 1
        get time 2

CodeWarrior vs ProjectBuilder repaint problem

Next

Theoretical and Empirical Aspects of Conditionals

Read Sections 5.1 through 5.5


Next Lecture