I'd like to find an implementation of an approximate algorithm for the Minimum Feedback Arc Set in Java but I did not find anything so far. Does anyone have something in mind?

有帮助吗?

解决方案

It appears that the simplest approximate algorithm one can implement (but with no minimality guarantees) is the one of this paper:

A fast and effective heuristic for the feedback arc set problem, by P. Eades, X. Lin, W.F. Smyth.

It is very easy to implement and works quite fast for large graphs (I tried it on a graph of 2.5 million edges and around 100 thousand nodes and broke all cycles in less than a minute).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top