Beispiel #1
0
        protected virtual void printSearchStats(bool quiet)
        {
            DateTime now = DateTime.Now;

            printMessage("Time elapsed: " + (now - start).TotalSeconds + " seconds", quiet);
            printMessage("Open nodes: " + openNodes.size(), quiet);
            printMessage("Expanded nodes: " + gValues.Count, quiet);
            printMessage("Max GVal: " + maxGVal, quiet);
            printMessage("Speed: " + (gValues.Count / (now - start).TotalSeconds).ToString("0.00") + " states per second", quiet);
            printMessage("Average branching: " + (((double)branchingSum) / branchingCount).ToString("0.00"), quiet);
            printMessage("\n", quiet);
        }