Esempio n. 1
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
Esempio n. 2
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
Esempio n. 3
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
Esempio n. 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
Esempio n. 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
Esempio n. 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