Design Analysis Algorithm Aug Sep2023
Design Analysis Algorithm Aug Sep2023
Design Analysis Algorithm Aug Sep2023
3o
lV Semester B.C.A, Examination, AugusUSeptember 2023
SECTION _ A
$-d
Answer any four questions. Each question carries two marks. (4x2=8)
SECTION * B
Answer any four questions. Each question carries five marks. (4x5=20)
8. Write an algorithm to sort the array using bubble soft and obtain its time
complexity.
P.T.O.
I llllllll lllll lll lllll illll llll lllt
NP - 321
l2.Explainhorr+4-queen,sproblerncanbesolvedusingbacktracking.
SECTION _ C
question carries eight rnarks' (4x8=32)
Answer any four questions. Each
in detail'
13. Exptain different asymptotic notations
14. a) Discuss important problem types' (a+a)
b) Explain empirical analysis of algorithm'
matching algorithm'
15. a) Discuss the Brute-Force string
rs qvrrlv,
and conquer method is apptied to - - the elements
-- sort
'- ! Exotain how decrease
h) (A+a)
of tfre array using insertion sott.'
l6.Exptaindifferenttreetraversalatgorithmwithexample' graph'
transitive closure of a directed
17. write warshall algorithm to compute
graph'
Apply the same on the tollowing
Knapsack problem
what is Knapsack problem ? solve the following instance of
18. p (40, 42,25' 12) and
method *h*r. n - 4,In = 10, =
using Branch-ano-'gound
W = (4, 7, 5, 3).