updated
authorChristian Urban <christian.urban@kcl.ac.uk>
Wed, 17 Sep 2025 14:29:52 +0100
changeset 985 c7e944977e39
parent 984 32eead4cd30e
child 986 68b1a84efce6
updated
cws/cw01.pdf
cws/cw01.tex
cws/cw02.pdf
cws/cw03.pdf
cws/cw04.pdf
cws/cw05.pdf
handouts/ho10.pdf
progs/catastrophic/catastrophic2.py
slides/slides01.tex
Binary file cws/cw01.pdf has changed
--- a/cws/cw01.tex	Sun Sep 14 12:59:23 2025 +0100
+++ b/cws/cw01.tex	Wed Sep 17 14:29:52 2025 +0100
@@ -11,7 +11,7 @@
 \begin{document}
 \newcolumntype{C}[1]{>{\centering}m{#1}}
 
-\section*{Coursework 1 (Update for 2024: CW is OPTIONAL but recommended)}
+\section*{Coursework 1 (Update for 2025: CW is OPTIONAL but recommended)}
 
 %You are asked to implement a regular expression matcher and submit a
 %document containing the answers for the questions below. You can do
Binary file cws/cw02.pdf has changed
Binary file cws/cw03.pdf has changed
Binary file cws/cw04.pdf has changed
Binary file cws/cw05.pdf has changed
Binary file handouts/ho10.pdf has changed
--- a/progs/catastrophic/catastrophic2.py	Sun Sep 14 12:59:23 2025 +0100
+++ b/progs/catastrophic/catastrophic2.py	Wed Sep 17 14:29:52 2025 +0100
@@ -16,7 +16,7 @@
 
 # calling the matching function
 s = ("a" * int(cn))
-m = re.match('(a*)*b' , s) 
+m = re.fullmatch('(a*)*b' , s) 
 
 print(s)
-print(m)
+print(bool(m))
--- a/slides/slides01.tex	Sun Sep 14 12:59:23 2025 +0100
+++ b/slides/slides01.tex	Wed Sep 17 14:29:52 2025 +0100
@@ -205,7 +205,7 @@
   
 %   \item on 20 July 2016 the \textbf{Stack Exchange} webpage went down
 %     because of an evil regular expression
-%     \here{https://stackstatus.net/post/147710624694/outage-postmortem-july-20-2016}    
+%     \here{https://stackstatus.tumblr.com/post/147710624694/outage-postmortem-july-20-2016}    
 %   \end{itemize}
   
 %   \begin{textblock}{6}(6,7.6)
@@ -1133,7 +1133,7 @@
   
   \item on 20 July 2016 the \textbf{Stack Exchange} webpage went down
     because of an evil regular expression
-    \here{https://stackstatus.net/post/147710624694/outage-postmortem-july-20-2016}    
+    \here{https://stackstatus.tumblr.com/post/147710624694/outage-postmortem-july-20-2016}    
   \end{itemize}
   
   \begin{textblock}{6}(6,7.6)