Big O notation and classification of algorithms Flashcards

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

What are the objectives for writing good code?

A

Efficiency, Time and Space

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

What is the key consideration of algorithms?

A

Input/problem size

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

What is a function?

A

It takes an input value and outputs a different one,

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

What is a domain?

A

The set of values that go into a function

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

What is a co-domain?

A

The set of values that possibly come out

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

What’s the range of a function?

A

The set of values actually produced by a function- a subset of the codomain

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

What is a permutation?

A

The number of ways n can be represented

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