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 finding 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 finite # 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.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern