Day 1 Flashcards

1
Q

What is meant by N?

A

N is the problem size.
Ex: Sorting an array of N elements.
Ex: Searching for an item in a set of N elements.
Ex: Inserting an item into a set of N elements.

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

What does the amount of work done by a certain algorithm usually a depend on?

A

The amount of work done or the runtime usually depends on N. Or Is a function of N.

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

For what problem size does complexity matter the most?

A

Large problem size.

When N is large there is a huge difference between N and N^2.

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