Unambiguous precise efficient can be measured in

  • No School
  • AA 1
  • 28

This preview shows page 4 - 10 out of 28 pages.

Unambiguous Precise Efficient Can be measured in terms of Time Space Time tends to be more important Design and Analysis of Algorithm 4
Image of page 4
Representation of Algorithms A single algorithm can be represented in many ways: Formulas: F = (9/5)C + 32 Words: Multiply the Celsius by 9/5 and add 32. Flow Charts. Pseudo-code. In each case, the algorithm stays the same; the implementation differs! Design and Analysis of Algorithm 5
Image of page 5
Representation of Algorithms (Cont’d) A program is a representation of an algorithm designed for computer applications. Process: Activity of executing a program, or execute the algorithm represented by the program Process: Activity of executing an algorithm. Design and Analysis of Algorithm 6
Image of page 6
Expressing Algorithms Expressing Algorithms English description Pseudo-code High-level programming language More precise Design and Analysis of Algorithm 7
Image of page 7
Pseudo code Pseudo code is like a programming language but its rules are less stringent. Written as a combination of English and programming constructs Based on selection (if, switch) and iteration (while, repeat) constructs in high-level programming languages Design using these high level primitives Independent of actual programming language Design and Analysis of Algorithm 8
Image of page 8
Algorithm Discovery The Two Steps of Program Development: 1. Discover the algorithm. 2. Represent the algorithm as a program. Step 2 is the easy step! Step 1 can be very difficult!
Image of page 9
Image of page 10

You've reached the end of your free preview.

Want to read all 28 pages?

  • Fall '19

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors