01-algorithms - Introduction to Algorithms CSE 114:...

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

View Full Document Right Arrow Icon
Introduction to Algorithms CSE 114: Computer Science I 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
“Computer Science is no more about computers than astronomy is about telescopes.” — E. W. Dijkstra “Don’t sweat it — it’s only ones and zeros.” — P. Skelly 2
Background image of page 2
Algorithms • Algorithms are the heart of computer science • An algorithm is a description of the steps necessary to solve a problem • “problem” = “task to be performed” • A computer program embodies an algorithm 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
Algorithm Attributes • An algorithm must be: • complete • precise • fnite • An algorithm should describe exactly how to perForm a given procedure 4
Background image of page 4
Developing an Algorithm • Start with the input and desired output • Divide and conquer the problem • Iterative refnement oF solution • Present your solution as pseudocode • When each solution step looks like a program statement, you’re done! 5
Background image of page 5

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

View Full DocumentRight Arrow Icon
Algorithm Building Blocks 1. Expressions 2. Conditional (selection) statements 3. Iteration (repetition) statements 4. Subprogram invocations Closely related to expressions 6
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/07/2008 for the course CSE 114 taught by Professor Tashbook during the Spring '08 term at SUNY Stony Brook.

Page1 / 19

01-algorithms - Introduction to Algorithms CSE 114:...

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

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