2242DesignAnalysisAlgorithmJulyAugust2024
2242DesignAnalysisAlgorithmJulyAugust2024
t t$$l NP - 435
2Z
[\f $emester B.C.A. Exarnination, .luly/August 2024
(NEP Scheme)
COMPUTER SCIENICE
Paper - 4,2: Design and Analysis of Algorithrn
SECTION _ A
Answer any four questions. Each question carries two marks. (4x2=$)
SECTION - B
Answer any four questior{s. Each question carries five marks. (zlx5=20)
P.T.O.
NP - 435 -2.- I tiltilll ilfl tit ilfiI iltil ilil til
11. Apply Kruskal's algorithm to obtain the minimum cost spanning tree for the
following graph.
12. To find the sum of subsets using backtracking for S = {7, 1'1, 19, 24} M = 01.
SECTION -C
Answer any four questions. Each question carries eight marks. (4x8=32)
16. Explain inorder, preorder and postorder tree traversal algorithm with an
example. 8
iilililililililrilffiifiltflitffiil NP - 435
17. Consider the following graph to apply Floyd's algorithm. 8