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.
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.
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.