Beispiel #1
0
        private TreeSize GetSearchTreeSize()
        {
            var treeSize = new TreeSize();

            _root.CountNodes(treeSize);
            return(treeSize);
        }
Beispiel #2
0
        public void CountNodes(TreeSize treeSize)
        {
            if (Color == 2)
            return;

              Color = 2;
              treeSize[_depth]++;
        }
Beispiel #3
0
        public void CountNodes(TreeSize treeSize)
        {
            if (Color == 2)
            {
                return;
            }

            Color = 2;
            treeSize[_depth]++;
        }
Beispiel #4
0
        public void CountNodes(TreeSize treeSize)
        {
            if (_color == 2)
            return;

              _color = 2;

              treeSize[StepCount]++;

              foreach (var child in _children)
              {
            child.Result.CountNodes(treeSize);
              }
        }
Beispiel #5
0
        public void CountNodes(TreeSize treeSize)
        {
            if (_color == 2)
            {
                return;
            }

            _color = 2;

            treeSize[StepCount]++;

            foreach (var child in _children)
            {
                child.Result.CountNodes(treeSize);
            }
        }
Beispiel #6
0
 private TreeSize GetSearchTreeSize()
 {
     var treeSize = new TreeSize();
       _root.CountNodes(treeSize);
       return treeSize;
 }