--- a/progs/re4.scala Mon Aug 22 23:05:43 2016 +0200
+++ b/progs/re4.scala Tue Aug 23 12:26:13 2016 +0200
@@ -106,11 +106,11 @@
val i = 5000
println(i + " " + "%.5f".format(time_needed(10, matcher(EVIL1(i), "a" * i))))
-//for (i <- 1 to 10000 by 1000) {
-// println(i + " " + "%.5f".format(time_needed(10, matcher(EVIL1(i), "a" * i))))
-//}
-
-for (i <- 1 to 6000001 by 500000) {
- println(i + " " + "%.5f".format(time_needed(10, matcher(EVIL2, "a" * i))))
+for (i <- 1 to 9001 by 1000) {
+ println(i + " " + "%.5f".format(time_needed(2, matcher(EVIL1(i), "a" * i))))
}
+for (i <- 1 to 7500001 by 500000) {
+ println(i + " " + "%.5f".format(time_needed(2, matcher(EVIL2, "a" * i))))
+}
+