由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - routing algorithm for bus travel?
相关主题
shortest path algorithm(dijkstra)的变形Algorithm 课程及教材选择疑问 (转载)
This Woman is really cute关于计算机算法杂志
问问Boost library, 尤其是Boost Graph Library (BGL)question about google algorithm/architecture (转载)
如何找到两点之间所有的路径?关于CS的一个问题
程序英雄传(二)(左眼新作) (转载)How to pronunciate dijkstra
Viterbi算法和Dijstra算法有什么联系吗[转载]Computer Science Research到了最危险的时刻
大规模分布系统下的高效算法??谁用过LEDA的最短路径算法?
How to organize the algorithmDijkstra SSSP@CLR的疑问 (转载)
相关话题的讨论汇总
话题: bus话题: algorithm话题: routing话题: lp话题: cost
进入CS版参与讨论
1 (共1页)
c******n
发帖数: 4965
1
for google maps, if I try to get directions using public transportation (bus
), they can utilize the starting and ending time of bus schedules, and find
the fastest paths.
but if I want to minimize bus ticket cost (fare), and mandate that the total
trip must be finished within a given time deadline, is there an algorithm
to do this?
thanks
S**I
发帖数: 15689
2
linear programming can do this, but the complexity could be very high.

bus
find
total

【在 c******n 的大作中提到】
: for google maps, if I try to get directions using public transportation (bus
: ), they can utilize the starting and ending time of bus schedules, and find
: the fastest paths.
: but if I want to minimize bus ticket cost (fare), and mandate that the total
: trip must be finished within a given time deadline, is there an algorithm
: to do this?
: thanks

s***e
发帖数: 1490
3
constrained shortest path

bus
find
total

【在 c******n 的大作中提到】
: for google maps, if I try to get directions using public transportation (bus
: ), they can utilize the starting and ending time of bus schedules, and find
: the fastest paths.
: but if I want to minimize bus ticket cost (fare), and mandate that the total
: trip must be finished within a given time deadline, is there an algorithm
: to do this?
: thanks

c******n
发帖数: 4965
4
it's a bit unclear how you could cast this into LP:
let's say we remove the constraints, just look at plain Djikstra: how would
you cast Djikstra algo into LP?

【在 S**I 的大作中提到】
: linear programming can do this, but the complexity could be very high.
:
: bus
: find
: total

D*******a
发帖数: 3688
5
shortest path problem is equivalent to min-cost flow which can be formulated
as LP.

would

【在 c******n 的大作中提到】
: it's a bit unclear how you could cast this into LP:
: let's say we remove the constraints, just look at plain Djikstra: how would
: you cast Djikstra algo into LP?

c******n
发帖数: 4965
6
I did a few searches, looks min-cost flow reduces to "successive shortest
paths"
but there is nothing that shows the reduction the other way,
if that's the case, they are not equivalent???

formulated

【在 D*******a 的大作中提到】
: shortest path problem is equivalent to min-cost flow which can be formulated
: as LP.
:
: would

c*********e
发帖数: 16335
7
这个不就是那著名的Dijkstra’s least-cost algorithm吗?

bus
find
total

【在 c******n 的大作中提到】
: for google maps, if I try to get directions using public transportation (bus
: ), they can utilize the starting and ending time of bus schedules, and find
: the fastest paths.
: but if I want to minimize bus ticket cost (fare), and mandate that the total
: trip must be finished within a given time deadline, is there an algorithm
: to do this?
: thanks

S**I
发帖数: 15689
8
He has an extra constraint

【在 c*********e 的大作中提到】
: 这个不就是那著名的Dijkstra’s least-cost algorithm吗?
:
: bus
: find
: total

1 (共1页)
进入CS版参与讨论
相关主题
Dijkstra SSSP@CLR的疑问 (转载)程序英雄传(二)(左眼新作) (转载)
一个图的任意两点之间的最短路径求法Viterbi算法和Dijstra算法有什么联系吗
偶长度最短路径大规模分布系统下的高效算法??
UT Austin的CS到底怎样?How to organize the algorithm
shortest path algorithm(dijkstra)的变形Algorithm 课程及教材选择疑问 (转载)
This Woman is really cute关于计算机算法杂志
问问Boost library, 尤其是Boost Graph Library (BGL)question about google algorithm/architecture (转载)
如何找到两点之间所有的路径?关于CS的一个问题
相关话题的讨论汇总
话题: bus话题: algorithm话题: routing话题: lp话题: cost