CSCI20 Prelim: Instructor: Priyanka S
CSCI20 Prelim: Instructor: Priyanka S
CSCI20 Prelim: Instructor: Priyanka S
Prelim
References:
Introduction to Algorithms, Thomas H. Cormen, 2nd edition,
MIT Press
Instructor: Priyanka S
What are the Algorithms?
Algorithm:
C++ Program
3
Example: sorting numbers.
Electronic Commerce.
The ability of keeping the information (credit card numbers,
passwords, bank statements) private, safe, and secure.
Algorithms involves encryption/decryption techniques.
• These lists are far from exhaustive, but exhibit
tow characteristics that are common to many
interesting algorithms.
(1)There are many candidate solutions, most of
which are not we want. Finding one that we do
want can present quite a challenge.
(2)There are practical applications.
Hard problems
We can identify the Efficiency of an algorithm
from its speed (how long does the algorithm
take to produce the result).
Computers may be fast but they are not infinitely fast, and memory
may be cheap but it is not free. This resources should be used wisely.
As an example: