(a) Define a graph and explain the concepts of degree, path, cycle, and connectedness in an undirected graph: Differentiate between Eulerian and…
(a) Define a graph and explain the concepts of degree, path, cycle, and connectedness in an undirected graph: Differentiate between Eulerian and Hamiltonian graphs with examples.
(b) Explain the difference between Deterministic Finite Automata (DFA) and Non-Deterministic Finite Automata (NFA). Prove that for every NFA, there exists an equivalent DFA that recognizes the same language.
(c) Consider the following undirected weighted graph-
Vertices: A, B, C, D, E
Edges: (A-B)(4), (A-C)(2), (B-C)(1), (B-D)(5), (C-D)(8), (C-E)(10), (D-E)(2), (B-E)(6).
(i) Apply Dijkstra's algorithm to find the shortest path from vertex A to all other vertices.
(ii) Show the step-by-step table of distance updates, and
(iii) Determine the minimum distance from A to E.
From the BCS Technical Cadre (CSE) October 2025 – 49th BCS Written (Special) (BPSC) exam, question 110 of 123.
More from this paper
- Previous: (a) Define constructor, destructor, and copy constructor in object-oriented programming context. (b) Write a program in C++ to check…
- Next: (a) Explain the differences between stack and queue data structures in terms of their operations, memory organization and real-life…
- All questions in BCS Technical Cadre (CSE) October 2025 – 49th BCS Written (Special) (BPSC)