[Commit] RRbot RicochetRecursive.java,1.4,1.5

Adam Ingram-Goble commit at keithp.com
Tue Jun 10 12:00:51 PDT 2003


Committed by: adamaig

Update of /local/src/CVS/RRbot
In directory home.keithp.com:/tmp/cvs-serv32608

Modified Files:
	RicochetRecursive.java 
Log Message:


Index: RicochetRecursive.java
===================================================================
RCS file: /local/src/CVS/RRbot/RicochetRecursive.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- RicochetRecursive.java	10 Jun 2003 17:38:17 -0000	1.4
+++ RicochetRecursive.java	10 Jun 2003 18:00:49 -0000	1.5
@@ -157,12 +157,18 @@
                             , robots[i].cpos() );
                     continue;
                 }
+
+                /* we should do the search first taking advantage of the old
+                 * entries in the stop table, then replace all mappings with for
+                 * the key with an updated version. If we remove the mapping then
+                 * we'll lose pruning in subtrees.
+                 */
+                IDAstar( curDepth, maxDepth, newNode );
+
                 if ( old != null ) {
                     removedNodes++;
                     stopT.remove(zkey);
                 } 
-
-                IDAstar( curDepth, maxDepth, newNode );
 
                 stopT.put( zkey, newNode );
               




More information about the Commit mailing list