Complexity Analysis (Big O) - Applications - Case Studies

Download Q&A
Q. What is the time complexity of a bubble sort algorithm in the worst case?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the time complexity of a depth-first search (DFS) in a graph?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the time complexity of a linear search algorithm?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the time complexity of finding the maximum element in a binary search tree (BST)?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Showing 1 to 4 of 4 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely