-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
executable file
·30 lines (24 loc) · 1.02 KB
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import search
# Alumno: Alejandro Curbelo Fontelos
travel = search.GPSProblem('A', 'B', search.romania)
# travel = search.GPSProblem('O', 'N', search.romania)
# travel = search.GPSProblem('S', 'B', search.romania)
# travel = search.GPSProblem('G', 'C', search.romania)
print "Busqueda en anchura"
print search.breadth_first_graph_search(travel).path()
print
print "Busqueda en profudidad"
print search.depth_first_graph_search(travel).path()
print
print "Busqueda por ramificacion acotacion"
print search.branch_bound_tree_search(travel).path()
print
print "Busqueda por ramificacion y acotacion con subestimacion"
print search.branch_bound_heuris_tree_search(travel).path()
# print search.iterative_deepening_search(travel).path()
# print search.depth_limited_search(travel).path()
# saq = search.GPSProblem('SA', 'Q', search.australia)
# print search.breadth_first_graph_search(saq).path()
# print search.depth_first_graph_search(saq).path()
# print search.branch_sized_graph_search(saq).path()
#print search.astar_search(travel).path()