http://en.wikipedia.org/wiki/Dijkstra http://en.wikipedia.org/wiki/Dijkstra
Now, the complexity for this implementation is according to Wikipedia: O((|V|+|E|) log |V|).
When I ran the algorithm on V = 1000, e.g. a graph with 1000 nodes (I dont know how many edges though), on average it took about 800 ms. When I doubled the size of the graph with V = 2000, it took around 1700 ms, and when I doubled that (V = 4000), it took about twice as much.
So my question is (I know that my computer plays some part in the time measurements as well), shouldn t the running times be faster? Are these measurements reasonable?