CS FundamentalsVery hardAccenture · Tech Mahindra pattern
Run Dijkstra's algorithm on this undirected weighted graph (edges given as node-node:weight): A-B:7, A-C:9, A-F:14, B-C:10, B-D:15, C-D:11, C-F:2, D-E:6, E-F:9. Starting from A, what is the shortest-path distance to E?
- A. 22
- B. 20
- C. 21
- D. 19
Correct answer: B. 20
Dijkstra from A settles nodes in increasing distance order; the shortest-path distance it finds to E is 20.
More Computer Networks questions
- Run Dijkstra's algorithm on this undirected weighted graph (edges given as node-node:weight): S-A:2, S-B:6, A-B:2, A-C:7, B-C:3, C-T:2…
- 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…
- 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…