CS FundamentalsVery hardCognizant · Capgemini pattern
Run Dijkstra's algorithm on this undirected weighted graph (edges given as node-node:weight): R1-R2:3, R1-R3:6, R2-R3:2, R2-R4:8, R3-R4:1. Starting from R1, what is the shortest-path distance to R4?
- A. 7
- B. 5
- C. 8
- D. 6
Correct answer: D. 6
Dijkstra from R1 settles nodes in increasing distance order; the shortest-path distance it finds to R4 is 6.
More Computer Networks questions
- Run Dijkstra's algorithm on this undirected weighted graph (edges given as node-node:weight): A-B:1, A-C:4, B-C:2, B-D:6, C-D:1. Starting…
- In a TLS 1.2 full handshake (no session resumption), put these messages in the order they are sent.
- Compared with TLS 1.2's full handshake, how many round trips does a fresh TLS 1.3 handshake need before application data can be sent, and…
- During a TLS handshake, which message proves the server actually possesses the private key matching its certificate (rather than just…
- A client reconnects to a server it talked to recently and both support TLS session resumption via session tickets. What changes in the…
- An HTTPS client fails certificate validation because the chain presented by the server is missing an intermediate CA certificate, even…