PhdThesisRealOne/LaTeXTemplates_masters-doctoral-thesis_v2/Chapters/Chapter2.tex
author Chengsong
Thu, 24 Mar 2022 20:52:34 +0000
changeset 465 2e7c7111c0be
parent 456 26a5e640cdd7
permissions -rwxr-xr-x
ha
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
456
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
     1
% Chapter Template
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
     2
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
     3
\chapter{Chapter Title Here} % Main chapter title
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
     4
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
     5
\label{ChapterX} % Change X to a consecutive number; for referencing this chapter elsewhere, use \ref{ChapterX}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
     6
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
     7
%----------------------------------------------------------------------------------------
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
     8
%	SECTION 1
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
     9
%----------------------------------------------------------------------------------------
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    10
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    11
\section{Properties of $\backslash c$}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    12
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    13
To have a clear idea of what we can and 
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    14
need to prove about the algorithms involving
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    15
Brzozowski's derivatives, there are a few 
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    16
properties we need to be clear about 
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    17
it.
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    18
\subsection{function $\backslash c$ is not 1-to-1}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    19
\begin{center}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    20
The derivative $w.r.t$ character $c$ is not one-to-one.
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    21
Formally,
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    22
	$\exists r_1 \;r_2. r_1 \neq r_2 \mathit{and} r_1 \backslash c = r_2 \backslash c$
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    23
\end{center}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    24
This property is trivially true for the
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    25
character regex example:
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    26
\begin{center}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    27
	$r_1 = e; \; r_2 = d;\; r_1 \backslash c = \ZERO = r_2 \backslash c$
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    28
\end{center}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    29
But apart from the cases where the derivative
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    30
output is $\ZERO$, are there non-trivial results
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    31
of derivatives which contain strings?
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    32
The answer is yes.
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    33
For example,
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    34
\begin{center}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    35
	Let $r_1 = a^*b\;\quad r_2 = (a\cdot a^*)\cdot b + b$.\\
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    36
	where $a$ is not nullable.\\
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    37
	$r_1 \backslash c = ((a \backslash c)\cdot a^*)\cdot c + b \backslash c$\\
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    38
	$r_2 \backslash c = ((a \backslash c)\cdot a^*)\cdot c + b \backslash c$
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    39
\end{center}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    40
We start with two syntactically different regexes,
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    41
and end up with the same derivative result, which is
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    42
a "meaningful" regex because it contains strings.
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    43
We have rediscovered Arden's lemma:\\
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    44
\begin{center}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    45
	$A^*B = A\cdot A^* \cdot B + B$
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    46
\end{center}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    47
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    48
	
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    49
%-----------------------------------
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    50
%	SUBSECTION 1
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    51
%-----------------------------------
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    52
\subsection{Subsection 1}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    53
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    54
Nunc posuere quam at lectus tristique eu ultrices augue venenatis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam erat volutpat. Vivamus sodales tortor eget quam adipiscing in vulputate ante ullamcorper. Sed eros ante, lacinia et sollicitudin et, aliquam sit amet augue. In hac habitasse platea dictumst.
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    55
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    56
%-----------------------------------
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    57
%	SUBSECTION 2
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    58
%-----------------------------------
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    59
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    60
\subsection{Subsection 2}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    61
Morbi rutrum odio eget arcu adipiscing sodales. Aenean et purus a est pulvinar pellentesque. Cras in elit neque, quis varius elit. Phasellus fringilla, nibh eu tempus venenatis, dolor elit posuere quam, quis adipiscing urna leo nec orci. Sed nec nulla auctor odio aliquet consequat. Ut nec nulla in ante ullamcorper aliquam at sed dolor. Phasellus fermentum magna in augue gravida cursus. Cras sed pretium lorem. Pellentesque eget ornare odio. Proin accumsan, massa viverra cursus pharetra, ipsum nisi lobortis velit, a malesuada dolor lorem eu neque.
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    62
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    63
%----------------------------------------------------------------------------------------
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    64
%	SECTION 2
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    65
%----------------------------------------------------------------------------------------
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    66
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    67
\section{Main Section 2}
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    68
26a5e640cdd7 realPhdThesis
Chengsong
parents:
diff changeset
    69
Sed ullamcorper quam eu nisl interdum at interdum enim egestas. Aliquam placerat justo sed lectus lobortis ut porta nisl porttitor. Vestibulum mi dolor, lacinia molestie gravida at, tempus vitae ligula. Donec eget quam sapien, in viverra eros. Donec pellentesque justo a massa fringilla non vestibulum metus vestibulum. Vestibulum in orci quis felis tempor lacinia. Vivamus ornare ultrices facilisis. Ut hendrerit volutpat vulputate. Morbi condimentum venenatis augue, id porta ipsum vulputate in. Curabitur luctus tempus justo. Vestibulum risus lectus, adipiscing nec condimentum quis, condimentum nec nisl. Aliquam dictum sagittis velit sed iaculis. Morbi tristique augue sit amet nulla pulvinar id facilisis ligula mollis. Nam elit libero, tincidunt ut aliquam at, molestie in quam. Aenean rhoncus vehicula hendrerit.