My Cart
Your Cart 0

    Your cart is empty.

  • Total (Amount) ₹0.00
Previous year question hub

Complexity Analysis - Algorithms - Computer Science & Information Technology Previous Year Questions

Practice Complexity Analysis - Algorithms - Computer Science & Information Technology previous year questions organised from real papers, with year-wise coverage and clear topic navigation.

25Papers
16Years
51Questions
1Topics

Complexity Analysis question pattern

Every graph below is calculated only from this selection.

Questions by year

Compare question counts across years.

Difficulty distribution

How the classified questions are distributed by difficulty.

Medium 31 60.8%
Easy 20 39.2%

Question type distribution

MCQ, numerical, multiple-select and other formats found in these papers.

MCQ 39 76.5%
MSQ 6 11.8%
Numerical Answer Type (NAT) 6 11.8%

Subject weightage

Top subjects by unique question coverage.

Computer Science & Information Technology
51 Qs

Most asked topics

Top topics across the included previous year papers.

Algorithms
51 Qs

Subtopic coverage

Top subtopics inside this exact selection.

Complexity Analysis
51 Qs

Paper coverage

Question coverage for the most populated papers. Every active PYP paper remains listed below.

Computer Science and Information Technology (CS) 2026
3 Qs
Computer Science and Information Technology (CS) 2026
1 Qs
Computer Science & Information Technology (CS) 2025 [Session 1]
1 Qs
Computer Science & Information Technology (CS) 2024 [Session 1]
2 Qs
Computer Science & Information Technology (CS) 2024 [Session 2]
1 Qs
Computer Science & Information Technology (CS) 2023 [Session 2]
2 Qs
Computer Science & Information Technology (CS) 2022 [Session 2]
1 Qs
Computer Science & Information Technology (CS) 2021 [Session 1]
3 Qs
Computer Science & Information Technology (CS) 2021 [Session 2]
1 Qs
Computer Science & Information Technology (CS) 2020 [Session 2]
1 Qs
Computer Science & Information Technology (CS) 2017 [Session 2]
3 Qs
Computer Science & Information Technology (CS) 2016 [Session 1]
1 Qs
Computer Science & Information Technology (CS) 2016 [Session 2]
1 Qs
Computer Science & Information Technology (CS) 2014 [Session 2]
4 Qs
Computer Science & Information Technology (CS) 2014 [Session 1]
3 Qs
Computer Science & Information Technology (CS) 2014 [Session 3]
1 Qs
Computer Science & Information Technology (CS) 2013 [Session 1]
3 Qs
Computer Science & Information Technology (CS) 2013 [Session 3]
3 Qs
Computer Science & Information Technology (CS) 2013 [Session 4]
3 Qs
Computer Science & Information Technology (CS) 2013 [Session 2]
2 Qs
Computer Science & Information Technology (CS) 2011
1 Qs
Computer Science & Information Technology (CS) 2010
1 Qs
Computer Science & Information Technology (CS) 2009
1 Qs
Computer Science & Information Technology (CS) 2008
4 Qs
Computer Science & Information Technology (CS) 2007
4 Qs

Included previous year papers

Newest papers appear first. Search these papers or sort by year and name.

Paper nameYearPDFAttempt
1 questions in this view
2026
3 questions in this view
2026
1 questions in this view
2025
2 questions in this view
2024
1 questions in this view
2024
2 questions in this view
2023
1 questions in this view
2022
3 questions in this view
2021
1 questions in this view
2021
1 questions in this view
2020
3 questions in this view
2017
1 questions in this view
2016
1 questions in this view
2016
3 questions in this view
2014
4 questions in this view
2014
1 questions in this view
2014
3 questions in this view
2013
2 questions in this view
2013
3 questions in this view
2013
3 questions in this view
2013
1 questions in this view
2011
1 questions in this view
2010
1 questions in this view
2009
4 questions in this view
2008
4 questions in this view
2007

All Complexity Analysis previous year questions

Practice every matching question in batches of 20, with every available option.

1
2007 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2007
In the following C function, let n ≥ m.
int gcd(n,m)
{
if (n%m == 0) return m;
n = n%m;
return gcd(m,n);
}
How many recursive calls are made by this function?
Open complete paper
2
2007 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2007
What is the time complexity of the following recursive function:
int DoSomething (int n){
if (n return 1;
else
return (DoSomething(floor(sqrt(n))) + n);
}
Open complete paper
3
2007 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2007

Which of the following is TRUE about formulae in Conjunctive Normal Form?

Open complete paper
4
2007 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2007
Consider the following C code segment:
int IsPrime(n)
{
int i, n;
for(i=2; iif(n%i == 0)
{printf(“Not Prime\n”); return 0;}
return 1;
}
Let T(n) denote the number of times the for loop is executed by the program on input n. Which of the following is TRUE?
Open complete paper
5
2008 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2008
Consider the following functions:
$f(n) = 2^n$,
$g(n) = n!$,
$h(n) = n^{\log n}$
Which of the following statements about the asymptotic behaviour of $f(n), g(n)$, and $h(n)$ is true?
Open complete paper
6
2008 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2008
The subset-sum problem is defined as follows: Given a set $S$ of $n$ positive integers and a positive integer $W$, determine whether there is a subset of $S$ whose elements sum to $W$.
An algorithm Q solves this problem in $O(nW)$ time. Which of the following statements is false?
Open complete paper
7
2008 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2008
The running time of f1(n) and f2(n) are
Open complete paper
8
2008 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2008
The value of \(x_5\) is
Open complete paper
9
2009 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2009
The running time of an algorithm is represented by the following recurrence relation :
\[ T(n) = \begin{cases} n & n \le 3 \\ T(\frac{n}{3}) + cn & \text{otherwise} \end{cases} \]
Which one of the following represents the time complexity of the algorithm ?
Open complete paper
10
2010 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2010
Two alternative packages A and B are available for processing a database having \(10^k\) records. Package A requires 0.0001\(n^2\) time units and package B requires 10\(n \log_{10} n\) time units to process \(n\) records. What is the smallest value of \(k\) for which package B will be preferred over A?
Open complete paper
11
2013 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2013 [Session 1]
Which of the following statements are TRUE?
1. The problem of determining whether there exists a cycle in an undirected graph is in P.
2. The problem of determining whether there exists a cycle in an undirected graph is in NP.
3. If a problem A is NP-Complete, there exists a non-deterministic polynomial time algorithm to solve A.
Open complete paper
12
2013 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2013 [Session 1]
The number of elements that can be sorted in \(\Theta(\log n)\) time using heap sort is
Open complete paper
13
2013 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2013 [Session 1]
Consider the following function: int unknown(int n) { int i, j, k=0; for (i=n/2; i
Open complete paper
14
2013 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2013 [Session 2]
Consider the following function: ``` int unknown(int n) { int i, j, k=0; for (i=n/2; i
Open complete paper
15
2013 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2013 [Session 3]
Consider the following function:
int unknown(int n) { int i, j, k = 0; for (i = n / 2; i
The return value of the function is
Open complete paper
16
2013 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2013 [Session 4]
Consider the following function:
int unknown(int n) {
int i, j, k=0;
for (i=n/2; i for (j=2; j k = k + n/2;
return (k);
}
The return value of the function is
Open complete paper
17
2014 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2014 [Session 1]
Suppose a polynomial time algorithm is discovered that correctly computes the largest clique in a given graph. In this scenario, which one of the following represents the correct Venn diagram of the complexity classes P, NP and NP Complete (NPC)?
Open complete paper
18
2014 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2014 [Session 1]
Consider the following pseudo code. What is the total number of multiplications to be performed?

D = 2
for i = 1 to n do
for j = i to n do
for k = j + 1 to n do
D = D * 3
Open complete paper
19
2014 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2014 [Session 1]
Open complete paper
20
2014 · Computer Science & Information Technology · Algorithms · Complexity Analysis
Computer Science & Information Technology (CS) 2014 [Session 2]
Which one of the following correctly determines the solution of the recurrence relation with \(T(1) = 1\)?
\(T(n) = 2T\left(\frac{n}{2}\right) + \log n\)
Open complete paper

Showing 20 of 45 questions