Join 75,000+ students acing their exams with Studygenie
Unlimited practice
Flashcards, multiple choice and written questions, as many as you want.
Study sets in seconds
Turn your notes and files into a set with AI.
See your progress
Always know what you've learned and what's left.
Questions in this set (3)
Key characteristics of an algorithm
1) Unambiguous/clearness: each instruction must be distinct and clear and should not represent two things at once
2) effectiveness: must be practical
3) finiteness/termination: should not be an infinite loop
4) Correct output
what is empirical analysis
taking the algo and testing the real time , time complexity and space complexity and analysing
how do we measure running time of an algorithm
T(n) = c(op) * c(n)
where c(op) = basic operation running time , like comparison operation
c(n) is the worst case , the base operation should be performed