ITA - Week 2 Flashcards
What is Proof of Correctness
Whether the algorithm works correctly for any legitimate input
What is the Time Complexity Analysis
Finds out how fast the algorithm runs
What is the Space Complexity Analysis
Finds out how much memory the algorithm requires
What is Induction
A technique to prove that a property holds for all natural numbers (or all members of an infinite sequence)
What are the three steps of Induction
Base Case -> Induction Step -> Conclusion
What happens in the base case
N = 1 is tested
What happens in the induction step
Assume property holds for n=k, then substitute n for k+1
What happens in the conclusion
A statement is made saying that base case and induction step are true, so proven by induction