The only difference I can think of the two distance matrices is whether they have correlations. Was wondering why the run times are so hugely different?
@guoyangqin sorry I missed your question for more than 2 years :(. Yes, random cost matrices are probably not representative for a lot of real-world problems like you mention. More info in #1
As the author put it, this algorithm is much faster. For a randomly generated 3000x3000 cost matrix, it'll take a fraction of seconds to solve.
0.8244 sec
However, when it comes to a distance matrix between two sets of points, the run time increases drastically, the same sizes though.
30.2019 sec
If adding the above two matrix, the run time will be between the two above.
17.5623 sec
The only difference I can think of the two distance matrices is whether they have correlations. Was wondering why the run times are so hugely different?