upd
This commit is contained in:
12
algorithms/labs/lab8/code/comp/3.py
Normal file
12
algorithms/labs/lab8/code/comp/3.py
Normal file
@@ -0,0 +1,12 @@
|
||||
def choose_mm_algorithm(n):
|
||||
if n <= 64:
|
||||
return "classical"
|
||||
if n <= 512:
|
||||
return "blocked"
|
||||
return "strassen"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(choose_mm_algorithm(64))
|
||||
print(choose_mm_algorithm(256))
|
||||
print(choose_mm_algorithm(1500))
|
||||
Reference in New Issue
Block a user