Algorithm Analysis Flashcards
1
Q
What is Big-O notation? (basic definition)
A
It is the worst case running time of an algorithm
2
Q
What is an algorithm
A
it is like a recipe to transform ingredients(input) to a pie(output).
it is a sequence(step by step) of computational steps that allows you to transform input into output
3
Q
program vs algorithm
A
without an algorithm, there can be no program
An algorithm can be implemented in any programming language
4
Q
How do we analyze an algorithm
A
analyzing a program’s running time without coding it.
the amount of resources and time an algorithm uses