public void SearchWithoutBranchingTheory(string treeStr, sbyte expected, int depth, sbyte startState)
        {
            var tree = TreeGenerator.ParseByteTree(treeStr, 2);

            // todo - add start value
            var actual = _search.Search(tree, depth, sbyte.MinValue, sbyte.MaxValue, startState, _cts.Token);

            Assert.Equal(expected, actual);
        }
示例#2
0
        public sbyte SerialTreeSearch()
        {
            var result = _serial.Search(
                _serialTree,
                _serialTree.GetDepth <ByteNode, sbyte>(),
                sbyte.MinValue,
                sbyte.MaxValue,
                0,
                _cts.Token
                );

            ProgressiveDeepeningWrapper <ByteNode, sbyte, sbyte> .ClearTree(_serialTree);

            return(result);
        }