Definition Informally an ordered sequence of instructions that is guaranteed to

Definition informally an ordered sequence of

This preview shows page 7 - 13 out of 18 pages.

• Definition - Informally, “an ordered sequence of instructions that is guaranteed to solve a specific problem.” - Formally, “a well-ordered collection of unambiguous and effective computable operations that, when executed, produces a result and halts in a finite amount of time,” Algorithms 7
Image of page 7
• “Well-ordered collection” - Upon completion of an operation we always know which operation to do next • “Unambiguous statements” or primitive - Can be understood by the computing agent without having to be further defined or simplified • “Effectively computable” - Must be doable by the computing agent Algorithms 8
Image of page 8
• “Produces a result” - Result must be produced after the execution of a finite number of operations - Result may be a number, text, a light, picture, sound, or a change in the computing agent’s environment • “Halts in a finite amount of time” - Should not have infinite loops (runs forever) Algorithms 9
Image of page 9
Examples of algorithms 10
Image of page 10
• Why are formal algorithms important? Algorithms in Computer Science 11
Image of page 11
• Computer science is the science of algorithmic problem solving • Unsolved problems? - Some solutions are too slow - Some solutions are not yet known Algorithms in Computer Science 12
Image of page 12
Image of page 13

You've reached the end of your free preview.

Want to read all 18 pages?

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 You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors