Podcast
Questions and Answers
Which of the following best describes the goal of analysis of algorithms?
Which of the following best describes the goal of analysis of algorithms?
- To compare algorithms mainly in terms of input size
- To compare algorithms mainly in terms of running time (correct)
- To compare algorithms mainly in terms of memory requirements
- To compare algorithms mainly in terms of programmer's effort
What is running time analysis in the context of algorithms?
What is running time analysis in the context of algorithms?
- Determining how the running time decreases as the size of the problem increases
- Determining the total running time for all possible problem sizes
- Determining the exact running time for a given problem size
- Determining how the running time increases as the size of the problem increases (correct)
What does input size refer to in the context of algorithms?
What does input size refer to in the context of algorithms?
- The polynomial degree
- The size of an array
- The number of elements in the input (correct)
- The number of elements in a polynomial
What are some factors that algorithms can be compared in terms of?
What are some factors that algorithms can be compared in terms of?
What is the main focus of analysis of algorithms?
What is the main focus of analysis of algorithms?
Flashcards are hidden until you start studying