{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

05Algorithms

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

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

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.

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

View Full Document
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?
7/11/2007 ekuttner 5 Sample algorithm 2 square6 How about this recipe as an algorithm for making soup?

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

View Full Document
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