01-algorithms

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

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

Algorithms CSE 110: Introduction to Computer Science 1

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

View Full Document
“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
Outline of Topics • Algorithms • The Problem-Solving Process • Representing Algorithms • Flowcharts • Pseudocode 3

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

View Full Document
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
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

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

View Full Document
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
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

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

View Full Document
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
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
Ask a homework question - tutors are online