|Z(4thSm.)-Computer Sc.
-HVPr/CC-9PCBCS/Set-4
2023
COMPUTER SCIENCE HONOURS PRACTICAL
Paper : CC-9P
Full Marks : 30
SET - 4
Marks Distribution :
Source Code : 10
Algorithm: 05
Output : 05
Sessional 04
Viva vOce : 06
Answer any one question.
1. Write a Cprogram to implement DFS algorithm.
2. Write a Cprogram to generate the adjacency matrix and incidence matrix of the given graph.
10 20
30
E)
(A)
40
(D
(2) |Z(4hSm,)-ComputerSc.-H/Pr/CC-9PCBCS/Set-4
3. Write a Cprogram to find the all pair of shortest distance in the graph given below using
Floyd-Warshall algorithm.
B)
D) E
4. Write a Cprogram to find the shortest path between the vertices A and C of the below graph using
Dijkstra's algorithm.
A 20
(D)
30
and print the minimum cost
5. Write a C program to find the minimal spanning tree of the following graph
(weight) of the tree using Prim's algorithm.
4 B
(F 4
7 9
5 4
2 D) 10
(3) Z(4h Sm.)-Computer Sc.-H/Pr/CC-9P/CBCS/Set-4
the following graph and print the minimum cost
6. Write a C program to find the minimal Spanning tree of
(weight) of the tree using Kruskal's algorithm.
A
D (E F
3 3
2
2
H 3