Practice question
3 marksWhy are constants and lower-order terms dropped from a big O expression?
Complexity and Big O NotationMediumShort answer
Computer Science · Class 12 · ISC
Measuring the running time of an algorithm and expressing it in big O notation.
4questions
Syllabus mapping: ISC syllabus (CISCE) (opens CISCE's website in a new tab)
4 questions
Practice question
3 marksWhy are constants and lower-order terms dropped from a big O expression?
Complexity and Big O NotationMediumShort answer
Practice question
3 marksState 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 NotationMediumNumerical
Practice question
3 marksWhat does big O notation measure, and give the complexity of linear search, binary search and bubble sort.
Complexity and Big O NotationMediumShort answer
Practice question
3 marksGive 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 NotationMediumNumerical