CS FundamentalsVery hardIBM · Deloitte pattern
Run Dijkstra's algorithm on this undirected weighted graph (edges given as node-node:weight): A-B:4, A-C:1, C-B:2, B-D:5, C-D:8, D-E:3, C-E:10. Starting from A, what is the shortest-path distance to E?
- A. 10
- B. 13
- C. 11
- D. 12
Correct answer: C. 11
Dijkstra from A settles nodes in increasing distance order; the shortest-path distance it finds to E is 11.
More Computer Networks questions
- 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…
- 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…