Close
Register
Close Window

Senior Algorithms

Chapter 1 Introduction

Show Source |    | About   «  0.1. How to Use this System   ::   Contents   ::   2.1. Glossary  »

1.1. Shortest-Paths Problems

1.1.1. Shortest-Paths Problems

On a road map, a road connecting two towns is typically labeled with its distance. We can model a road network as a directed graph whose edges are labeled with real numbers. These numbers represent the distance (or other cost metric, such as travel time) between two vertices. These labels may be called weights, costs, or distances, depending on the application. Given such a graph, a typical problem is to find the total length of the shortest path between two specified vertices. This is not a trivial problem, because the shortest path may not be along the edge (if any) connecting two vertices, but rather may be along a path involving one or more intermediate vertices.

Here is a pratice question from CodeCheck

   «  0.1. How to Use this System   ::   Contents   ::   2.1. Glossary  »

nsf
Close Window