Why are constants and lower-order terms dropped from a big O expression?
Complexity and Big O Notation
Original Khojo Papers practice question — not from a past board paper.
Big O notation gives an upper bound on how the running time or space of an algorithm grows with the size of the input, ignoring constants and lower-order terms. Linear search is O(n), binary search is O(log n) and bubble sort is O(n2).
No citable source has been recorded for this record. Treat it as practice material, not as fact.
It describes growth rate, not the actual time, which depends on the machine.
From the same topic and chapter, at a similar level.
Why are constants and lower-order terms dropped from a big O expression?
Complexity and Big O Notation
Give the time complexity of merge sort, insertion sort in the worst case, and accessing an element of an array by its index.
Complexity and Big O Notation
State the time complexity of the following and justify it: for (int i = 0; i < n; i++) for (int j = 0; j < n; j++) sum++;
Complexity and Big O Notation
Write a recursive Java method to compute the factorial of a non-negative integer n.
Recursion
State and verify the absorption law X + X·Y = X using a truth table.
Boolean Algebra
Convert the Boolean expression F(A, B, C) = Σ(1, 3, 5) into its canonical sum of products form.
Boolean Algebra