equal
deleted
inserted
replaced
66 for (j <- 1 to i) code |
66 for (j <- 1 to i) code |
67 val end = System.nanoTime() |
67 val end = System.nanoTime() |
68 (end - start)/(i * 1.0e9) |
68 (end - start)/(i * 1.0e9) |
69 } |
69 } |
70 |
70 |
|
71 for (i <- 1 to 20) { |
|
72 println(i + ": " + "%.5f".format(time_needed(2, matches(EVIL1(i), "a" * i)))) |
|
73 } |
|
74 |
71 |
75 |
72 for (i <- 1 to 20) { |
76 for (i <- 1 to 20) { |
73 println(i + ": " + "%.5f".format(time_needed(2, matches(EVIL1(i), "a" * i)))) |
77 println(i + ": " + "%.5f".format(time_needed(2, matches(EVIL1(i), "a" * i)))) |
74 } |
78 } |
75 |
79 |