Updates (Ginta)

This commit is contained in:
Jonas_Jones 2023-12-22 16:25:48 +01:00
parent 27ac0f86c9
commit df295d1dfd
4 changed files with 284 additions and 8 deletions

View file

@ -1,5 +1,5 @@
'''EPRE Übung 7 Aufgabe 3'''
__author__ = "7987847, Werner"
__author__ = "7987847, Werner, 8004356, Gill"
import concurrent.futures
import timeit
@ -86,10 +86,7 @@ if __name__ == "__main__":
for size, runtime in zip(matrix_sizes, recursive_runtimes):
print(f"Size: {size}, Runtime: {runtime:.6f} seconds")
print("Recursive runtimes:")
for size, runtime in zip(matrix_sizes, recursive_runtimes):
print(f"Size: {size}, Runtime: {runtime:.6f} seconds")
print(f"Size: {size}, Runtime: {runtime:.6f} seconds")
try:
import matplotlib.pyplot as plt
@ -98,3 +95,6 @@ if __name__ == "__main__":
except ImportError:
print("matplotlib not installed. Skipping plotting of results.")
# Tests are in Documentation