



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




































Lecture 16
Algorithms I
Focus of the last lecture was on Word Processing
Solving Problems (1)
When faced with a problem:
Solving Problems (2)
Sequence of steps that can be taken to solve a given problem
7
Examples
Convert 75 to Binary
10
1001011
remainder
until the quotient becomes zero
remainder first) to form the final result
Algorithm (Better Definition)
1 st^ Definition:
Sequence of steps that can be taken to solve a problem
Better Definition:
A precise sequence of a limited number of unambiguous, executable steps that terminates in the form of a solution
Three Requirements:
a. Precise b. Consists of a limited number of steps
a. Unambiguous b. Executable
form of a solution (^) Docsity.com 14
Why Write an Algorithm Down?
have spend the time for rethinking it
others
Analysis of Algorithms
Early History: Search for a Generic Algorithm
and was a significant area of work in the early years
general algorithm that could solve all problems of a single type
Origin of the Term “Algorithm”