depthfirstsolver.cs

来自「Data Structures and Algorithms with Obj」· CS 代码 · 共 26 行

CS
26
字号
namespace Opus6
{
    using System;

    [Version("$Id: DepthFirstSolver.cs,v 1.4 2001/10/28 19:50:09 brpreiss Exp $"), Copyright("Copyright (c) 2001 by Bruno R. Preiss, P.Eng.")]
    public class DepthFirstSolver : AbstractSolver
    {
        protected override void Search(Solution current)
        {
            if (current.IsComplete)
            {
                this.UpdateBest(current);
            }
            else
            {
                foreach (Solution solution1 in current.Successors)
                {
                    this.Search(solution1);
                }
            }
        }

    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?