Algorithm Analysis Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is Big-O notation? (basic definition)

A

It is the worst case running time of an algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

program vs algorithm

A

without an algorithm, there can be no program

An algorithm can be implemented in any programming language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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