Difficult Computing Flashcards

1
Q

O(2n) or O(n!) or O(nn) is referred to as what type of complexity?

A

Exponential Complexity or Hard

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

O(n) or O(n2) or O(n3) is referred to as what type of complexity?

A

Polynomial Complexity or Easy (or P)

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

The time complexity of a linear search is….

A

The time complexity is of the Order of n

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

Define Time Complexity and Space Complexity

A

How long it takes to run vs how much memory it takes up

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

What is an Algorithm?

A

A method of solution for a problem (steps to be followed)

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

What is the Fibonacci Sequence?

A

Adding together 2 terms to find the next term

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

What is NP-complete?

A

A class of equivalent ‘harder’ problems

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