main_solution5/bfc.scala
changeset 420 4edc1a308652
parent 404 bf20a9fa5c29
child 463 0315d9983cd0
equal deleted inserted replaced
419:d8dbf91c149b 420:4edc1a308652
   210 
   210 
   211 // testcases
   211 // testcases
   212 
   212 
   213 //println(optimise(load_bff("collatz.bf")))
   213 //println(optimise(load_bff("collatz.bf")))
   214 //optimise(load_bff("benchmark.bf"))          // should have inserted 0's
   214 //optimise(load_bff("benchmark.bf"))          // should have inserted 0's
   215 //optimise(load_bff("mandelbrot.bf")).length  // => 11203
   215 //optimise(load_bff("mandelbrot.bf")).length  // => 11205
   216  
   216  
   217 //time_needed(1, run3(load_bff("benchmark.bf")))
   217 //time_needed(1, run3(load_bff("benchmark.bf")))
       
   218 //time_needed(1, run3(load_bff("mandelbrot.bf")))
   218 
   219 
   219 
   220 
   220 
   221 
   221 // (7)  Write a function combine which replaces sequences
   222 // (7)  Write a function combine which replaces sequences
   222 // of repated increment and decrement commands by appropriate
   223 // of repated increment and decrement commands by appropriate