简体   繁体   English

某些条件下的最短路径问题

[英]Shortest path problem with certain conditions

I have been searching for a shortest path algorithm with some conditions for 2 days but I'm not finding it. 我一直在搜索具有某些条件的最短路径算法已有2天了,但没有找到。 The algorithm should take 3 parameters, a beginning point, an ending point, a graph and should return the minimum time used to go from beginning point to ending point. 该算法应采用3个参数,即起点,终点,图形,并应返回从起点到终点的最短时间。 But Djikstra's algorithm can't be used I think because I want the algorithm to use waiting nodes. 但是我认为不能使用Djikstra的算法,因为我希望该算法使用等待节点。 Could someone give me some advice ? 有人可以给我一些建议吗?

PS: Sorry for my English I'm French :/ Illustration to my problem PS:很抱歉我的英语是法语:/ 问题的插图

在此处输入图片说明

You can split each node with an internal delay into an input and output node, pictured blue and red, with a connection between them and use Dijkstra's algorithm: 您可以使用内部延迟将每个节点拆分为一个输入和输出节点,如图所示蓝色和红色,并在它们之间建立连接,并使用Dijkstra的算法: 图形

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM