(Revised) Term-End Examination, 2019: No. of Printed Pages: 4 BCS-042
(Revised) Term-End Examination, 2019: No. of Printed Pages: 4 BCS-042
1. (a) Let f(n) and g(n) are two positive functions, using
basic definition of Big Oh ("0") and Theta (0),
prove/disprove the following : [5]
T(n) = 2T (n-1) + 1
BCS-042/6500
( 1 ) 1111111111111111111111111111
(c) Explain general algorithm to solve any problem
,using Greedy techniques. Write any two
characteristics of Greedy Algorithm. [5]
BCS-042/6500 (2)
3. (a) For the following graph write DFS (sequence of
traversal) from the node A : [4]
n
(i) T (n) = 2T ( \ +n
(n
(ii) T (n) = 3T — + n log n
\4)
BCS-042/6500 ( 3 ) [P.T.O.]
10
BCS-042/6500 (4)