Module 1: Intro to Algos Flashcards
What is a problem instance?
An input for a problem
What is a problem solution
“Correct” output for a specified problem instance
What is a problem?
Given a problem instance, dictating what task or tasks you should carry-out
What is an algorithm
Given an arbitrary problem instance, an algorithm describes a step-by-step process for a carrying-out the appropriate computations
What does it mean for an algorithm to solve a problem
An algorithm solves a problem if for every problem instance, the algorithm computes a valid solution in a finite amount of time.
What is a program?
An implementation of an algorithm
How do implement an algorithm?
Algo Design - Create an algorithm that solves the problem
Algo Anal - Assess the correctness and efficiency of the algo
Implement the algorithm if correct and efficient