Multiple Choice
If an algorithm with an input size of n has a nested loop,and both loops make a complete pass over the input,then the performance of the algorithm will be
A) constant time
B) linear time
C) logarithmic time
D) quadratic time
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q34: The Quicksort algorithm works by<br>A) repeatedly comparing
Q35: Let F be an algorithm with complexity
Q36: The Quicksort algorithm<br>A) is in O(n)in the
Q37: If a[ ] is an array of
Q38: A basic step is<br>A) an operation that
Q40: The role of the partition(array,start,end)method in Quicksort<br>A)
Q41: The method findMax shown below is supposed
Q42: The bubble sort algorithm works by<br>A) repeatedly
Q43: Suppose that we are searching for an
Q44: The worst case complexity function f(n)of an