Hi,
I am trying to order elements of a vector based on heuristic values. For example, if I have a class, A, and a function,
that returns the heuristic value of A, I want to define a function that orders a vector of A based on their heuristic values -Code:int evaluate(A &input);
What is the most efficient way of doing that?Code:vector<A> *order(vector<A> *input);
Thank you very much