# HG changeset patch # User Christian Urban # Date 1758115792 -3600 # Node ID c7e944977e39887cb827a8c3877215bb93c8420a # Parent 32eead4cd30ed29aebeff29d63675fca46eca20f updated diff -r 32eead4cd30e -r c7e944977e39 cws/cw01.pdf Binary file cws/cw01.pdf has changed diff -r 32eead4cd30e -r c7e944977e39 cws/cw01.tex --- 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 diff -r 32eead4cd30e -r c7e944977e39 cws/cw02.pdf Binary file cws/cw02.pdf has changed diff -r 32eead4cd30e -r c7e944977e39 cws/cw03.pdf Binary file cws/cw03.pdf has changed diff -r 32eead4cd30e -r c7e944977e39 cws/cw04.pdf Binary file cws/cw04.pdf has changed diff -r 32eead4cd30e -r c7e944977e39 cws/cw05.pdf Binary file cws/cw05.pdf has changed diff -r 32eead4cd30e -r c7e944977e39 handouts/ho10.pdf Binary file handouts/ho10.pdf has changed diff -r 32eead4cd30e -r c7e944977e39 progs/catastrophic/catastrophic2.py --- 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)) diff -r 32eead4cd30e -r c7e944977e39 slides/slides01.tex --- 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)