Module 1: Intro to Algos Flashcards

1
Q

What is a problem instance?

A

An input for a problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a problem solution

A

“Correct” output for a specified problem instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a problem?

A

Given a problem instance, dictating what task or tasks you should carry-out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an algorithm

A

Given an arbitrary problem instance, an algorithm describes a step-by-step process for a carrying-out the appropriate computations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does it mean for an algorithm to solve a problem

A

An algorithm solves a problem if for every problem instance, the algorithm computes a valid solution in a finite amount of time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a program?

A

An implementation of an algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do implement an algorithm?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly