Having trouble Implementing a Custom Comparator for a TreeSet (Dijkstra's)
问题 I'm currently trying and implementing my own custom O(N.lgN) solution of Dijkstra's using Adjacency Lists. Now if you are familiar with this algorithm (most likely you are), I was having trouble storing the tuple for each Vertex. If you have no clue what i'm talking about, have alook at: http://qr.ae/LoESY Tuples can easily be stored in C++ using pair <int,int>. Anyways, i found a solution to that and came to know, against all odds, that a similar class DOES exist its called the 'AbstractMap