progs/re1.scala
changeset 433 c08290ee4f1f
parent 424 1129024b26d5
child 434 8664ff87cd77
equal deleted inserted replaced
432:55be90b2a642 433:c08290ee4f1f
    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