equal
deleted
inserted
replaced
31 \end{lstlisting} |
31 \end{lstlisting} |
32 |
32 |
33 Give the arithmetic expression that produced this code. Make sure |
33 Give the arithmetic expression that produced this code. Make sure |
34 you give all necessary parentheses. |
34 you give all necessary parentheses. |
35 |
35 |
36 \item Describe what the following three JVM instructions do! |
36 \item Describe what the following JVM instructions do! |
37 |
37 |
38 \begin{lstlisting}[language=JVMIS,numbers=none] |
38 |
|
39 \begin{lstlisting}[language=JVMIS2,numbers=none] |
|
40 ldc 3 |
39 iload 3 |
41 iload 3 |
40 istore 1 |
42 istore 1 |
41 ifeq label |
43 ifeq label |
|
44 if_icmpge label |
42 \end{lstlisting} |
45 \end{lstlisting} |
43 |
46 |
44 |
47 |
45 \item Early in the module, we saw that the regular expression matchers |
|
46 in Java, Python and Ruby are very slow with some (basic) regular |
|
47 expressions. What is the main reason for this ineffcient computation? |
|
48 |
48 |
49 \item \POSTSCRIPT |
49 \item \POSTSCRIPT |
50 |
50 |
51 % \item It is true (I confirmed it) that |
51 % \item It is true (I confirmed it) that |
52 % |
52 % |