Professional Documents
Culture Documents
Algorithm Analysis Quiz Part 1 PDF
Algorithm Analysis Quiz Part 1 PDF
Answers will be shown after your last attempt
2
/ 2 pts
Question 1
if (isSafe) {
return true;
return true;
} else {
}
}
O(height^2)
O(length^2)
O(N)
O(length)
O(height)
O(1)
O(log length)
1
/ 1 pts
Question 2
O(76)
O(n^6)
O(n^1)
O(n^3)
1
/ 1 pts
Question 3
O(N^2)
O(log(N))
O(N)
1
/ 1 pts
Question 4
Which of the following choices demonstrates increasing levels of complexity in Big O notation?
O(N^2) --> O(NlogN) --> O(N) --> O(logN) --> O(1)
O(1) --> O(logN) --> O(N) --> O(NlogN) --> O(N^2)
O(logN) --> O(NlogN) --> O(1) --> O(N) --> O(N^2)
O(1) --> O(N) --> O(N^2) --> O(logN) --> O(NlogN)
Quiz Score:
5 out of 5