{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

05Algorithms - Algorithm What is an algorithm An algorithm...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
7/11/2007 ekuttner 1 Algorithm What is an algorithm? An algorithm is a well-defined rule or procedure for carrying out some specified task . 7/11/2007 ekuttner 2 What kind of task? square6 Playing music on an instrument square6 Cooking a meal square6 Knitting a sweater square6 Summing 100 numbers The task usually involves solving a problem of a given type.
Image of page 1

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

View Full Document Right Arrow Icon
7/11/2007 ekuttner 3 Well-defined implies: square6 Unambiguous – meaning is clear square6 Deterministic – unique action specified square6 Feasible – can be performed square6 Finite – comes to an end These are 4 important criteria for a well- defined algorithm. 7/11/2007 ekuttner 4 Sample algorithm 1 square6 Is this algorithm well defined for the task of music playing? square6 How does the process of machine compilation of programs in order to “understand” them compare with that of human compilation in understanding music scores?
Image of page 2
7/11/2007 ekuttner 5 Sample algorithm 2 square6 How about this recipe as an algorithm for making soup?
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
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