323x Filetype PDF File size 0.51 MB Source: sweet.ua.pt
Algorithm Design Strategies I
Joaquim Madeira
Version 0.1 – September 2019
U. Aveiro, September 2019 1
Overview
◼ Deterministic vs Non-Deterministic Algorithms
◼ Problem Types and Design Strategies
◼ Algorithm Efficiency and Complexity Analysis
◼ Counting basic operations
U. Aveiro, September 2019 2
Algorithms
◼ Algorithm
❑ Sequence of non-ambiguous instructions
❑ Finite amount of time
◼ Input to an algorithm
❑ An instance of the problem the algorithm solves
◼ How to classify / group algorithms?
❑ Type of problems solved
❑ Design techniques
❑ Deterministic vs non-deterministic
U. Aveiro, September 2019 3
Deterministic Algorithms
◼ A deterministic algorithm
❑ Returns the same answer no matter how many
times it is called on the same data.
❑ Always takes the same steps to complete
the task when applied to the same data.
◼ The most familiar kind of algorithm !
◼ There is a more formal definition in terms of
state machines…
U. Aveiro, September 2019 4
no reviews yet
Please Login to review.