All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · 22 June 2026

A problem of size n requires n² bit operations. What is the largest size instance that can be solved in 1 second, if each bit operation is carried out in 10⁻⁹ second?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. 3.16×10⁴

Explanation

The time to solve an instance of size n is n² × 10⁻⁹ seconds, so solving it within 1 second requires n² × 10⁻⁹ ≤ 1, i.e. n² ≤ 10⁹. Taking the square root of both sides gives n ≤ √(10⁹) = √10 × 10⁴ ≈ 3.1623 × 10⁴. So the largest instance size solvable in 1 second is approximately 3.16×10⁴.

More Data Structures and Algorithms questions