Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 52

Bule Hora University

College of Informatics
Computer science & engineering Department
Chapter 1
Introduction
Characteristics of an Algorithm

Advantage and disadvantages of Algorithms:
Algorithm design paradigms
Brute force paradigm
Divide and conquer paradigm
Backtracking paradigm

Greedy paradigm
Example …
Dynamic programming paradigm


Discussion time (5 min)
Paradigm choice
Writing an algorithm

Algorithm Analysis Concepts
Reasons to perform analyze algorithms
How to Measure Efficiency/performance?
Drawbacks of empirical methods
Machine independent analysis


Examples: Count of Basic Operations T(n)
Formal Approach to Analysis


Exercises
Types of Algorithm complexity analysis
Best, Worst and Average Cases
Order of Growth and Asymptotic Analysis
Growth rates
Rate of Growth
Visualizing Orders of Growth
Asymptotic analysis

Big-Oh Notation

Examples
Order of common functions
Implication of Big-Oh notation
Big-Omega Notation
Theta Notation
More notations

You might also like