I'm implementing the A* search algorithm given here, https://en.wikipedia.org/wiki/A*_search_algorithm
This line indicates we need to initiliaze a map with the default values of INFINITY,
gScore := map with default value of Infinity
So I tried that here,
Map<State, Double> gScore = new HashMap<State, Double>(Double.POSITIVE_INFINITY);
This does not work however the following does;
Map<State, Double> gScore = new HashMap<State, Double>((int) Double.POSITIVE_INFINITY);
I'm wondering why, and what impact (if any) it will have on my implementation.