Day 7 (possibility to disable dynamic programming #2)
This commit is contained in:
@@ -38,11 +38,13 @@ for line in lines:
|
||||
|
||||
a = datetime.datetime.now()
|
||||
count = graph.depth_first_search("shiny gold", search_contained_by=False) - 1
|
||||
print("With dyn programming", datetime.datetime.now() - a)
|
||||
b = datetime.datetime.now() - a
|
||||
print("With dyn programming", b)
|
||||
print(count)
|
||||
|
||||
a = datetime.datetime.now()
|
||||
count = graph.depth_first_search("shiny gold", search_contained_by=False, use_cache=False) - 1
|
||||
print("Without dyn programming", datetime.datetime.now() - a)
|
||||
b = datetime.datetime.now() - a
|
||||
print("Without dyn programming", b)
|
||||
print(count)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user