Skip to content

Computer Science · Class 12 · ISC

Complexity and Big O Notation

Measuring the running time of an algorithm and expressing it in big O notation.

4questions

Board PYQs
0
Practice
4
Topics
0
  • Most common: 3 marks

Syllabus mapping: ISC syllabus (CISCE) (opens CISCE's website in a new tab)

4 questions

  • Practice question

    3 marks

    Why are constants and lower-order terms dropped from a big O expression?

    Complexity and Big O NotationMediumShort answer

  • Practice question

    3 marks

    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 NotationMediumNumerical

  • Practice question

    3 marks

    What 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 marks

    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 NotationMediumNumerical