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

Info icon This 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
Image of page 1

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

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

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

View Full Document Right 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
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
Image of page 5

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

View Full Document Right 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
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 finding the Greatest Common Divisor of two #s 7
Image of page 7

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

View Full Document Right Arrow Icon
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
Image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern