This commit is contained in:
2020-02-13 16:18:17 -07:00
parent 7272f50290
commit abe8e40f5a
742 changed files with 117851 additions and 106552 deletions

View File

@@ -4,7 +4,8 @@ import highSchool
import divideConcur
def main():
count = 1
count = 32
power = 0
while True:
highTime = 0
dcTime = 0
@@ -14,15 +15,22 @@ def main():
P = problemGenerator.GenerateProblem(count)
Q = problemGenerator.GenerateProblem(count)
highTimeStart = time.time()
highSchool.HighSchool(count*32, P, Q)
highTime+=(time.time()-highTimeStart)
highSchool.HighSchool(count, P, Q)
highTime += (time.time()-highTimeStart)
dcTimeStart = time.time()
divideConcur.DivideConcur(count*32, P, Q)
dcTime+=(time.time()-dcTimeStart)
divideConcur.DivideConcur(count, P, Q)
dcTime += (time.time()-dcTimeStart)
print(i)
count += 1
print("Highschool Time: ", highTime/10)
print("DC Time: ", dcTime/10)
saveArray = [count, highTime/10, dcTime/10]
print(saveArray)
with open("results.txt", "a") as myfile:
print(str(saveArray), file=myfile)
myfile.flush()
count += count
myfile.close()
main()

View File