We consider a maximum entropy edge weight model for shortest path networks that allows for negative weights. Given a graph and possible weights typically consisting of positive and negative values, the model selects edge weights uniformly at random from all weights that do not introduce a negative cycle. We propose an MCMC process and show that (i) it converges to the required distribution and (ii) that the mixing time on the cycle graph is polynomial. We then engineer an implementation of the process using a dynamic version of Johnson’s algorithm in connection with a bidirectional Dijkstra search. We empirically study the performance characteristics of an implementation of the novel sampling algorithm as well as the output produced by the model.

生成讲解博客的中文版本

生成AI智能校验的中文版本