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