Just to make sure, this is the change I am talking about (output from - svn
diff -r 4180:4181)
Index: general_eager_best_first_search.cc
===================================================================
--- general_eager_best_first_search.cc (revision 4180)
+++ general_eager_best_first_search.cc (revision 4181)
@@ -120,8 +120,7 @@
}
search_progress.inc_evaluated();
- open_list->evaluate(succ_node.get_g(), is_preferred);
-
+ open_list->evaluate(node.get_g() + op->get_cost(),
is_preferred);
bool dead_end = open_list->is_dead_end() &&
open_list->dead_end_is_reliable();
if (dead_end) {
succ_node.mark_as_dead_end();
@@ -132,7 +131,6 @@
int succ_h = heuristics[0]->get_heuristic();
succ_node.open(succ_h, node, op);
-
open_list->insert(succ_node.get_state_buffer());
search_progress.check_h_progress(succ_node.get_g());
This change is there because the call to open_list->evaluate now come before
succ_node.open, so calling open_list->evaluate(node.get_g()..) would pass -1
instead of g (since it's not initialized yet).
On Sun, Jun 6, 2010 at 7:18 PM, Malte Helmert <
downward.issues@googlemail.com> wrote:
>
> Malte Helmert <helmert@informatik.uni-freiburg.de> added the comment:
>
> I think you're talking about the change in r4180, which as I said is fine.
>
> I'm talking about the change in r4181.
>
> _______________________________________________________________________
> Fast Downward issue tracker <downward.issues@gmail.com>
> <http://alfons.informatik.uni-freiburg.de:8088/downward-issues/issue88>
> _______________________________________________________________________
>
--
--------------------------------------------------------------
"Adventure is just bad planning."
Roald Amundsen
Norwegian Arctic & Antarctic explorer
(1872 - 1928)
--------------------------------------------------------------
|