01-algorithms - Algorithms CSE 110 Introduction to Computer...

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

View Full Document Right Arrow Icon
Algorithms CSE 110: Introduction to Computer Science 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
“The hardest single part of building a software system is deciding precisely what to build.” — Frederick P. Brooks “The trouble with computers is that they do what you tell them, not what you want.” — D. Cohen 2
Background image of page 2
Outline of Topics • Algorithms • The Problem-Solving Process • Representing Algorithms • Flowcharts • Pseudocode 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
What is a Computer? • A computer is any device that: • receives input • stores and manipulates data • provides output in a useful format • Computers don’t have to be electronic • Computers are programmable • You can tell them how to operate 4
Background image of page 4
The Programming Process 1. Specify the problem to be solved 2. Develop an appropriate algorithm 3. Write the algorithm in a form that the computer can understand This usually involves some kind of special notation 4. Execute the algorithm and inspect the results 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
Algorithms • An algorithm is a description of the steps necessary to solve a problem • “problem” = “task to be performed” • Algorithms are the heart of computer science • A computer program embodies (carries out) an algorithm 6
Background image of page 6
Algorithm Examples • Grandma’s recipe for chocolate chip cookies • Instructions for assembling a piece of furniture • Driving directions • Putting together a class schedule • Euclid’s process for Fnding the Greatest Common Divisor of two #s 7
Background image of page 7

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 • able to be described in a fnite # oF steps • An algorithm should describe exactly how to perForm a given procedure 8
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/29/2012 for the course CSE 110 taught by Professor Shaunakpawagi during the Spring '08 term at SUNY Stony Brook.

Page1 / 33

01-algorithms - Algorithms CSE 110 Introduction to Computer...

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

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