(a) Discuss how floating point representation contributes to rounding errors. (b) Through Newton-Raphson method, determine a root of the equation…

(a) Discuss how floating point representation contributes to rounding errors.

(b) Through Newton-Raphson method, determine a root of the equation

f(x) = cos x - x, where x₀ = 0.5

(c) Write an algorithm to find out the second best minimum spanning tree (MST) from a graph.

From the BCS Technical Cadre (CSE) October 2025 – 49th BCS Written (Special) (BPSC) exam, question 116 of 123.

More from this paper