def a_star_search(problem, heuristic=heuristics.null_heuristic):
    from a_star_search import solve
    start = time.clock()
    rv = solve(problem, heuristic)
    end = time.clock()
    print("Search time", end - start, "seconds")
    return rv
def ids_search(problem):
    from ids_search import solve
    start = time.clock()
    rv = solve(problem)
    end = time.clock()
    print("Search time", end - start, "seconds")
    return rv
def breadth_first_search(problem):
    from brfs_search import solve
    start = time.clock()
    rv = solve(problem)
    end = time.clock()
    print("Search time", end - start, "seconds")
    return rv
Exemple #4
0
def a_star_search(problem, heuristic=heuristics.null_heuristic):
    from a_star_search import solve
    start = time.clock()
    rv = solve(problem, heuristic)
    end = time.clock()
    print("Search time", end - start, "seconds")
    return rv
Exemple #5
0
def ids_search( problem ) :
    from ids_search import solve
    start = time.clock()
    rv = solve(problem)
    end = time.clock()
    print("Search time", end - start, "seconds")
    return rv
Exemple #6
0
def breadth_first_search(problem):
    from brfs_search import solve
    start = time.clock()
    rv = solve(problem)
    end = time.clock()
    print("Search time", end - start, "seconds")
    return rv