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.
O(n log n), O(n2) and O(1) respectively.
No citable source has been recorded for this record. Treat it as practice material, not as fact.
Array access is constant time because the address is computed directly from the index.
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
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
What does big O notation measure, and give the complexity of linear search, binary search and bubble sort.
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