Section_6_Algorithm_Complexity_Questions
Section_6_Algorithm_Complexity_Questions
Q3. In Big-O notation, what is the complexity of inserting an element into a balanced binary
search tree?
• A) O(log n)
• B) O(n)
• C) O(1)
• D) O(n^2)
Q4. Which of the following algorithms has a linear time complexity, O(n)?
• A) Binary search
• B) Linear search
• C) Merge sort
• D) Exponential search