虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

您现在的位置是:虫虫下载站 > 资源下载 > 其他 > In some graphs, the shortest path is given by optimizing two different metrics: the sum of weights o

In some graphs, the shortest path is given by optimizing two different metrics: the sum of weights o

  • 资源大小:3 K
  • 上传时间: 2014-10-25
  • 上传用户:zxixi2007
  • 资源积分:2 下载积分
  • 标      签: optimizing different the shortest

资 源 简 介

In some graphs, the shortest path is given by optimizing two different metrics: the sum of weights of the edges and the number of edges. For example: if two paths with equal cost exist then, the path with the least number of edges is chosen as the shortest path. Given this metric, you have find out the shortest path between a given pair of vertices in the input graph. The output should be the number of edges on the path, the cost of the shortest path, and the path itself. Input is the adjacency matrix and the two vertices.

相 关 资 源