Пример #1
0
 public UninformedSearch(IProblem <T> problem, IFrontier <Node <T> > frontier)
 {
     Problem    = problem;
     Frontier   = frontier;
     OpenList   = new HashSet <T>();
     ClosedList = new HashSet <T>();
 }
Пример #2
0
 public BFS()
 {
     frontier = new BFSFrontier();
 }
Пример #3
0
 public ADstar()
 {
     frontier = new PriorityQueue();
 }
Пример #4
0
 public DFS()
 {
     frontier = new DFSFrontier();
 }
Пример #5
0
 public GraphSearch(IFrontier frontier)
 {
     this.frontier = frontier;
 }
Пример #6
0
 public ADstar(bool onlyPassOnDepth)
 {
     onlyStopOnDepth = onlyPassOnDepth;
     frontier        = new PriorityQueue();
 }
Пример #7
0
 public ADstar()
 {
     onlyStopOnDepth = false;
     frontier        = new PriorityQueue();
 }
Пример #8
0
 public BFS(bool onlystopOnDepth)
 {
     onlyStopOnDepth = onlystopOnDepth;
     frontier        = new BFSFrontier();
 }
Пример #9
0
 public BFS()
 {
     onlyStopOnDepth = false;
     frontier        = new BFSFrontier();
 }