progs/re5.scala
changeset 415 4ae59fd3b174
parent 414 065ca01b62ae
equal deleted inserted replaced
414:065ca01b62ae 415:4ae59fd3b174
   106 }
   106 }
   107 
   107 
   108 val i = 5000
   108 val i = 5000
   109 println(i + " " + "%.5f".format(time_needed(10, matcher(EVIL1(i), "a" * i))))
   109 println(i + " " + "%.5f".format(time_needed(10, matcher(EVIL1(i), "a" * i))))
   110 
   110 
   111 for (i <- 1 to 80000 by 10000) {
   111 for (i <- 1 to 7000001 by 1000000) {
   112   println(i + " " + "%.5f".format(time_needed(2, matcher(EVIL1(i), "a" * i))))
   112   println(i + " " + "%.5f".format(time_needed(2, matcher(EVIL1(i), "a" * i))))
   113 }
   113 }
   114 
   114 
   115 for (i <- 1 to 10000001 by 1000000) {
   115 for (i <- 1 to 7500001 by 500000) {
   116   println(i + " " + "%.5f".format(time_needed(2, matcher(EVIL2, "a" * i))))
   116   println(i + " " + "%.5f".format(time_needed(2, matcher(EVIL2, "a" * i))))
   117 }
   117 }
   118 
   118