DAA QUESTIONS recourse 2021
DAA QUESTIONS recourse 2021
Enrolment No:
Instructions:
You can use a rough paper and pen during the exam. All questions are compulsory.
Section A: Objective Type
Only one option is correct. Choose the correct option, based on the problem statement.
Time: 1 hour 10 minutes.
Q7 Suppose we implement Quicksort such that it always selects the last element of
the array as the pivot. What is the running time of this algorithm on an input
array that is already sorted?
CO1 &
a. O(n^2) 1
b. O(n) L2
c. O(n logn)
d. Not enough information given to answer the question
Q11 Which of the following refers to the recurrence for time complexity of Strassen’s
matrix-multiplication algorithm?
Q12 Which of the following terms is related with the Greedy methodology?
a. Tabulation method
CO1 &
b. Looking-glass heuristic 1
c. Non-overlapping subproblems L2
d. Locally optimal choice
Q13 Which of the following refers to the recurrence for time complexity of
Karatsuba’s large-integers-multiplication algorithm?
CO1 &
a. T(n) = 2T(n/2)+c n 1
b. T(n) = 3T(n/4)+c n L2
c. T(n) = 3T(n/2)+c n
d. T(n) = 3T(n/2)+c n^2
Q18 Which of the following is not a valid case in the Master’s method?
a. if f(n) = O(nlogba +) for some > 0, then: T(n) = (nlogba)
b. if f(n) = O(nlogba -) for some > 0, then: T(n) = (nlogba)
CO1 &
c. if f(n) = (nlogba), then: T(n) = (nlogba lgn) 1
d. if f(n) = (nlogba +) for some > 0, and if af(n/b) ≤ cf(n) for some c < 1 L2
and all sufficiently large n, then T(n) = (f(n))
Q24 Which of the following statements is correct about the Backtracking approach
for solving an algorithmic problem?
a. In general, the entire search-space is searched for finding a single
solution to the given problem.
b. “Backtracking-step” refers to going back to the root node of the state- CO1 &
1
space tree. L2
c. Backtracking traces the state-space tree in a depth-first manner
for solving a problem.
d. Backtracking is method generally used to solve tractable problems.
Q28
In the context of NP-completeness, what does the notion of problem reduction
imply?
a. Reduce a problem P1 to another problem Q1 in exponential-time and
solve P1 using the algorithm for Q1 in polynomial time.
CO1 &
b. Reduce a problem P1 to another problem Q1 in constant-time and sole 1
P1 using the algorithm for Q1 in polynomial time. L2
c. Reduce a problem P1 to another problem Q1 in polynomial-time
and solve P1 using the algorithm for Q1.
d. None of the options is correct.
Q29 Choose the incorrect statement from the following:
a. Halting problem of Turing machine is undecidable.
b. A non-deterministic Turing machine can solve the Max-Clique problem
in polynomial time. CO1 &
1
c. A deterministic Turing machine can solve a NP-complete problem L2
in polynomial time.
d. A non-deterministic search can be performed in constant amount of
time.
Q31 “The notion of non-deterministic computation can be realized by allowing CO3 &
unbounded parallelism in a deterministic computer” – Justify the statement. 10
L4
Q32 Prove that the Halting problem of Turing machine is not decidable. CO3 &
10
L4