equal
deleted
inserted
replaced
34 import scala.util._ |
34 import scala.util._ |
35 |
35 |
36 // ADD YOUR CODE BELOW |
36 // ADD YOUR CODE BELOW |
37 //====================== |
37 //====================== |
38 |
38 |
39 // (5) |
39 // (6) |
40 def jtable(pg: String) : Map[Int, Int] = ??? |
40 def jtable(pg: String) : Map[Int, Int] = ??? |
41 |
41 |
42 // testcase |
42 // testcase |
43 // |
43 // |
44 // jtable("""+++++[->++++++++++<]>--<+++[->>++++++++++<<]>>++<<----------[+>.>.<+<]""") |
44 // jtable("""+++++[->++++++++++<]>--<+++[->>++++++++++<<]>>++<<----------[+>.>.<+<]""") |
52 // time_needed(1, run2(load_bff("benchmark.bf"))) |
52 // time_needed(1, run2(load_bff("benchmark.bf"))) |
53 // time_needed(1, run2(load_bff("sierpinski.bf"))) |
53 // time_needed(1, run2(load_bff("sierpinski.bf"))) |
54 |
54 |
55 |
55 |
56 |
56 |
57 // (6) |
57 // (7) |
58 |
58 |
59 def optimise(s: String) : String = ??? |
59 def optimise(s: String) : String = ??? |
60 |
60 |
61 def compute3(pg: String, tb: Map[Int, Int], pc: Int, mp: Int, mem: Mem) : Mem = ??? |
61 def compute3(pg: String, tb: Map[Int, Int], pc: Int, mp: Int, mem: Mem) : Mem = ??? |
62 |
62 |
70 // |
70 // |
71 // time_needed(1, run3(load_bff("benchmark.bf"))) |
71 // time_needed(1, run3(load_bff("benchmark.bf"))) |
72 |
72 |
73 |
73 |
74 |
74 |
75 // (7) |
75 // (8) |
76 def combine(s: String) : String = ??? |
76 def combine(s: String) : String = ??? |
77 |
77 |
78 // testcase |
78 // testcase |
79 // combine(load_bff("benchmark.bf")) |
79 // combine(load_bff("benchmark.bf")) |
80 |
80 |