ChengsongTanPhdThesis/main.tex
author Chengsong
Wed, 31 Aug 2022 23:57:42 +0100
changeset 590 988e92a70704
parent 585 4969ef817d92
child 600 fd068f39ac23
permissions -rw-r--r--
more chap5 and chap6 bsimp_idem
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
     1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
     2
% Masters/Doctoral Thesis 
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
     3
% LaTeX Template
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
     4
% Version 2.5 (27/8/17)
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
     5
%
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
     6
% This template was downloaded from:
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
     7
% http://www.LaTeXTemplates.com
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
     8
%
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
     9
% Version 2.x major modifications by:
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    10
% Vel (vel@latextemplates.com)
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    11
%
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    12
% This template is based on a template by:
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    13
% Steve Gunn (http://users.ecs.soton.ac.uk/srg/softwaretools/document/templates/)
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    14
% Sunil Patel (http://www.sunilpatel.co.uk/thesis-template/)
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    15
%
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    16
% Template license:
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    17
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    18
%
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    19
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    20
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    21
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    22
%	PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    23
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    24
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    25
\documentclass[
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    26
11pt, % The default document font size, options: 10pt, 11pt, 12pt
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    27
%oneside, % Two side (alternating margins) for binding by default, uncomment to switch to one side
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    28
english, % ngerman for German
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    29
singlespacing, % Single line spacing, alternatives: onehalfspacing or doublespacing
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    30
%draft, % Uncomment to enable draft mode (no pictures, no links, overfull hboxes indicated)
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    31
%nolistspacing, % If the document is onehalfspacing or doublespacing, uncomment this to set spacing in lists to single
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    32
%liststotoc, % Uncomment to add the list of figures/tables/etc to the table of contents
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    33
%toctotoc, % Uncomment to add the main table of contents to the table of contents
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    34
%parskip, % Uncomment to add space between paragraphs
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    35
%nohyperref, % Uncomment to not load the hyperref package
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    36
headsepline, % Uncomment to get a line under the header
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    37
%chapterinoneline, % Uncomment to place the chapter title next to the number on one line
471
Chengsong
parents: 468
diff changeset
    38
consistentlayout, % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    39
]{MastersDoctoralThesis} % The class file specifying the document structure
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    40
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    41
\usepackage[utf8]{inputenc} % Required for inputting international characters
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    42
\usepackage[T1]{fontenc} % Output font encoding for international characters
505
5ce3bd8e5696 thesis chapter2 section 2.4
Chengsong
parents: 503
diff changeset
    43
%\usepackage{fdsymbol} % Loads unicode-math
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    44
585
4969ef817d92 chap4 more
Chengsong
parents: 580
diff changeset
    45
\usepackage{cancel}
4969ef817d92 chap4 more
Chengsong
parents: 580
diff changeset
    46
590
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
    47
\usepackage{listings}
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
    48
\usepackage{xcolor}
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
    49
\usepackage{beramono}
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
    50
555
Chengsong
parents: 554
diff changeset
    51
\usepackage{verbatim}
580
e0f0a81f907b halfway chap3
Chengsong
parents: 579
diff changeset
    52
\usepackage{float}
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    53
\usepackage{mathpazo} % Use the Palatino font by default
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    54
\usepackage{hyperref}
542
a7344c9afbaf chapter3 finished
Chengsong
parents: 538
diff changeset
    55
\usepackage{lipsum}
564
Chengsong
parents: 555
diff changeset
    56
\usepackage[backend=bibtex]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA)
577
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    57
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    58
\usepackage[usestackEOL]{stackengine}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    59
\usepackage{scalerel}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    60
\usepackage{graphicx}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    61
564
Chengsong
parents: 555
diff changeset
    62
%style=authoryear, natbib=true 
500
Chengsong
parents: 472
diff changeset
    63
\usepackage{stmaryrd}
537
Chengsong
parents: 535
diff changeset
    64
\usepackage{caption}
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    65
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    66
\addbibresource{example.bib} % The filename of the bibliography
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    67
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    68
\usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    69
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    70
%My Newly added Libraries in addition to template
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    71
\usepackage{graphic}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    72
\usepackage{data}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    73
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    74
%\usepackage{algorithm}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    75
\usepackage{amsmath}
577
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    76
\makeatletter
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    77
\newcommand{\xleftrightarrow}[2][]{\ext@arrow 3359\leftrightarrowfill@{#1}{#2}}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    78
\newcommand{\xdashrightarrow}[2][]{\ext@arrow 0359\rightarrowfill@@{#1}{#2}}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    79
\newcommand{\xdashleftarrow}[2][]{\ext@arrow 3095\leftarrowfill@@{#1}{#2}}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    80
\newcommand{\xdashleftrightarrow}[2][]{\ext@arrow 3359\leftrightarrowfill@@{#1}{#2}}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    81
\def\rightarrowfill@@{\arrowfill@@\relax\relbar\rightarrow}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    82
\def\leftarrowfill@@{\arrowfill@@\leftarrow\relbar\relax}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    83
\def\leftrightarrowfill@@{\arrowfill@@\leftarrow\relbar\rightarrow}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    84
\def\arrowfill@@#1#2#3#4{%
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    85
  $\m@th\thickmuskip0mu\medmuskip\thickmuskip\thinmuskip\thickmuskip
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    86
   \relax#4#1
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    87
   \xleaders\hbox{$#4#2$}\hfill
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    88
   #3$%
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    89
}
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    90
\makeatother
579
35df9cdd36ca more chap3
Chengsong
parents: 577
diff changeset
    91
\def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;} 
577
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
    92
506
69ad05398894 thesis chapter 2 section 2.4 2.5
Chengsong
parents: 505
diff changeset
    93
\usepackage{amsthm}
69ad05398894 thesis chapter 2 section 2.4 2.5
Chengsong
parents: 505
diff changeset
    94
\usepackage{amssymb}
519
Chengsong
parents: 518
diff changeset
    95
\usepackage{cleveref}
505
5ce3bd8e5696 thesis chapter2 section 2.4
Chengsong
parents: 503
diff changeset
    96
%\usepackage{mathtools}
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    97
\usepackage[noend]{algpseudocode}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    98
\usepackage{enumitem}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
    99
\usepackage{nccmath}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   100
\usepackage{tikz-cd}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   101
\usepackage{tikz}
472
Chengsong
parents: 471
diff changeset
   102
\usetikzlibrary{automata, positioning, calc}
579
35df9cdd36ca more chap3
Chengsong
parents: 577
diff changeset
   103
\usetikzlibrary{arrows}
580
e0f0a81f907b halfway chap3
Chengsong
parents: 579
diff changeset
   104
\usetikzlibrary{shapes.misc}
542
a7344c9afbaf chapter3 finished
Chengsong
parents: 538
diff changeset
   105
\usetikzlibrary{fit,
564
Chengsong
parents: 555
diff changeset
   106
                shapes.geometric,
Chengsong
parents: 555
diff changeset
   107
		patterns,
Chengsong
parents: 555
diff changeset
   108
		backgrounds,
Chengsong
parents: 555
diff changeset
   109
		graphs}
Chengsong
parents: 555
diff changeset
   110
\usetikzlibrary{babel}
538
8016a2480704 intro and chap2
Chengsong
parents: 537
diff changeset
   111
\usepackage{mathpartir}
555
Chengsong
parents: 554
diff changeset
   112
\usepackage{stackrel}
537
Chengsong
parents: 535
diff changeset
   113
Chengsong
parents: 535
diff changeset
   114
\DeclareCaptionType{mytype}[Illustration][]
Chengsong
parents: 535
diff changeset
   115
\newenvironment{envForCaption}{\captionsetup{type=mytype} }{}
577
f47fc4840579 thesis chap2
Chengsong
parents: 568
diff changeset
   116
590
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   117
\pgfplotsset{
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   118
    myplotstyle/.style={
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   119
    legend style={draw=none, font=\small},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   120
    legend cell align=left,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   121
    legend pos=north east,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   122
    ylabel style={align=center, font=\bfseries\boldmath},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   123
    xlabel style={align=center, font=\bfseries\boldmath},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   124
    x tick label style={font=\bfseries\boldmath},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   125
    y tick label style={font=\bfseries\boldmath},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   126
    scaled ticks=true,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   127
    every axis plot/.append style={thick},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   128
    },
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   129
}
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   130
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   131
\definecolor{dkgreen}{rgb}{0,0.6,0}
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   132
\definecolor{gray}{rgb}{0.5,0.5,0.5}
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   133
\definecolor{mauve}{rgb}{0.58,0,0.82}
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   134
\lstdefinestyle{myScalastyle}{
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   135
  frame=tb,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   136
  language=scala,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   137
  aboveskip=3mm,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   138
  belowskip=3mm,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   139
  showstringspaces=false,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   140
  columns=flexible,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   141
  basicstyle={\small\ttfamily},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   142
  numbers=none,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   143
  numberstyle=\tiny\color{gray},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   144
  keywordstyle=\color{blue},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   145
  commentstyle=\color{dkgreen},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   146
  stringstyle=\color{mauve},
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   147
  frame=single,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   148
  breaklines=true,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   149
  breakatwhitespace=true,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   150
  tabsize=3,
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   151
}
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   152
988e92a70704 more chap5 and chap6 bsimp_idem
Chengsong
parents: 585
diff changeset
   153
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   154
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   155
%	MARGIN SETTINGS
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   156
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   157
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   158
\geometry{
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   159
	paper=a4paper, % Change to letterpaper for US letter
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   160
	inner=2.5cm, % Inner margin
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   161
	outer=3.8cm, % Outer margin
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   162
	bindingoffset=.5cm, % Binding offset
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   163
	top=1.5cm, % Top margin
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   164
	bottom=1.5cm, % Bottom margin
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   165
	%showframe, % Uncomment to show how the type block is set on the page
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   166
}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   167
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   168
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   169
%	THESIS INFORMATION
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   170
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   171
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   172
\thesistitle{POSIX Regular Expression Matching and Lexing} % Your thesis title, this is used in the title and abstract, print it elsewhere with \ttitle
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   173
\supervisor{Dr. Christian \textsc{Urban}} % Your supervisor's name, this is used in the title page, print it elsewhere with \supname
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   174
\examiner{} % Your examiner's name, this is not currently used anywhere in the template, print it elsewhere with \examname
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   175
\degree{Doctor of Philosophy} % Your degree name, this is used in the title page and abstract, print it elsewhere with \degreename
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   176
\author{Chengsong \textsc{Tan}} % Your name, this is used in the title page and abstract, print it elsewhere with \authorname
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   177
\addresses{} % Your address, this is not currently used anywhere in the template, print it elsewhere with \addressname
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   178
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   179
\subject{Computer Science} % Your subject area, this is not currently used anywhere in the template, print it elsewhere with \subjectname
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   180
\keywords{} % Keywords for your thesis, this is not currently used anywhere in the template, print it elsewhere with \keywordnames
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   181
\university{\href{https://www.kcl.ac.uk}{King's College London}} % Your university's name and URL, this is used in the title page and abstract, print it elsewhere with \univname
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   182
\department{\href{https://www.kcl.ac.uk/informatics}{Department or Informatics}} % Your department's name and URL, this is used in the title page and abstract, print it elsewhere with \deptname
471
Chengsong
parents: 468
diff changeset
   183
\group{\href{https://www.kcl.ac.uk/research/ssy}{Software Systems Group}} % Your research group's name and URL, this is used in the title page, print it elsewhere with \groupname
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   184
\faculty{\href{http://faculty.university.com}{Chengsong Tan}} % Your faculty's name and URL, this is used in the title page and abstract, print it elsewhere with \facname
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   185
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   186
\AtBeginDocument{
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   187
\hypersetup{pdftitle=\ttitle} % Set the PDF's title to your title
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   188
\hypersetup{pdfauthor=\authorname} % Set the PDF's author to your name
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   189
\hypersetup{pdfkeywords=\keywordnames} % Set the PDF's keywords to your keywords
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   190
}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   191
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   192
\begin{document}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   193
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   194
\frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the pre-content pages
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   195
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   196
\pagestyle{plain} % Default to the plain heading style until the thesis style is called for the body content
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   197
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   198
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   199
%	TITLE PAGE
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   200
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   201
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   202
\begin{titlepage}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   203
\begin{center}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   204
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   205
\vspace*{.06\textheight}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   206
{\scshape\LARGE \univname\par}\vspace{1.5cm} % University name
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   207
\textsc{\Large Doctoral Thesis}\\[0.5cm] % Thesis type
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   208
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   209
\HRule \\[0.4cm] % Horizontal line
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   210
{\huge \bfseries \ttitle\par}\vspace{0.4cm} % Thesis title
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   211
\HRule \\[1.5cm] % Horizontal line
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   212
 
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   213
\begin{minipage}[t]{0.4\textwidth}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   214
\begin{flushleft} \large
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   215
\emph{Author:}\\
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   216
\href{https://kclpure.kcl.ac.uk/portal/en/persons/chengsong-tan(a63b381b-04bc-4cd7-beea-beb3e96cb153).html}{\authorname} % Author name - remove the \href bracket to remove the link
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   217
\end{flushleft}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   218
\end{minipage}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   219
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   220
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   221
\begin{minipage}[t]{0.4\textwidth}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   222
\begin{flushright} \large
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   223
\emph{Supervisor:} \\
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   224
\href{https://www.kcl.ac.uk/people/christian-urban}{\supname} % Supervisor name - remove the \href bracket to remove the link  
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   225
\end{flushright}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   226
\end{minipage}\\[3cm]
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   227
 
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   228
\vfill
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   229
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   230
\large \textit{A thesis submitted in fulfillment of the requirements\\ for the degree of \degreename}\\[0.3cm] % University requirement text
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   231
\textit{in the}\\[0.4cm]
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   232
\groupname\\\deptname\\[2cm] % Research group name and department name
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   233
 
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   234
\vfill
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   235
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   236
{\large \today}\\[4cm] % Date
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   237
%\includegraphics{Logo} % University/department logo - uncomment to place it
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   238
 
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   239
\vfill
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   240
\end{center}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   241
\end{titlepage}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   242
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   243
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   244
%	DECLARATION PAGE
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   245
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   246
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   247
\begin{declaration}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   248
\addchaptertocentry{\authorshipname} % Add the declaration to the table of contents
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   249
\noindent I, \authorname, declare that this thesis titled, \enquote{\ttitle} and the work presented in it are my own. I confirm that:
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   250
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   251
\begin{itemize} 
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   252
\item This work was done wholly or mainly while in candidature for a research degree at this University.
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   253
\item Where any part of this thesis has previously been submitted for a degree or any other qualification at this University or any other institution, this has been clearly stated.
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   254
\item Where I have consulted the published work of others, this is always clearly attributed.
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   255
\item Where I have quoted from the work of others, the source is always given. With the exception of such quotations, this thesis is entirely my own work.
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   256
\item I have acknowledged all main sources of help.
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   257
\item Where the thesis is based on work done by myself jointly with others, I have made clear exactly what was done by others and what I have contributed myself.\\
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   258
\end{itemize}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   259
 
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   260
\noindent Signed:\\
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   261
\rule[0.5em]{25em}{0.5pt} % This prints a line for the signature
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   262
 
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   263
\noindent Date:\\
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   264
\rule[0.5em]{25em}{0.5pt} % This prints a line to write the date
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   265
\end{declaration}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   266
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   267
\cleardoublepage
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   268
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   269
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   270
%	QUOTATION PAGE
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   271
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   272
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   273
\vspace*{0.2\textheight}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   274
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   275
\noindent\enquote{\itshape Thanks to my solid academic training, today I can write hundreds of words on virtually any topic without possessing a shred of information, which is how I got a good job in journalism.}\bigbreak
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   276
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   277
\hfill Dave Barry
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   278
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   279
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   280
%	ABSTRACT PAGE
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   281
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   282
519
Chengsong
parents: 518
diff changeset
   283
%\begin{abstract}
Chengsong
parents: 518
diff changeset
   284
Chengsong
parents: 518
diff changeset
   285
 
Chengsong
parents: 518
diff changeset
   286
%\end{abstract}
Chengsong
parents: 518
diff changeset
   287
Chengsong
parents: 518
diff changeset
   288
527
2c907b118f78 all chapters put in
Chengsong
parents: 526
diff changeset
   289
\begin{abstract}
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   290
\addchaptertocentry{\abstractname} % Add the abstract to the table of contents
527
2c907b118f78 all chapters put in
Chengsong
parents: 526
diff changeset
   291
%\addchap{Abstract} 
568
7a579f5533f8 more chapter2 modifications
Chengsong
parents: 564
diff changeset
   292
This thesis is about regular expressions and derivatives. It combines functional algorithms and their formal verification in the Isabelle/HOL theorem prover. 
7a579f5533f8 more chapter2 modifications
Chengsong
parents: 564
diff changeset
   293
7a579f5533f8 more chapter2 modifications
Chengsong
parents: 564
diff changeset
   294
Theoretical results say that regular expression matching should be linear with respect to the input. Under a certain class of regular expressions and inputs though, practical implementations often suffer from non-linear or even exponential running time, allowing ReDoS (regular expression denial-of-service ) attacks. This makes levers with formalised properties such as correctness and time complexity appealing.
7a579f5533f8 more chapter2 modifications
Chengsong
parents: 564
diff changeset
   295
7a579f5533f8 more chapter2 modifications
Chengsong
parents: 564
diff changeset
   296
Sulzmann and Lu describe a lexing algorithm that calculates Brzozowski derivatives using bitcodes annotated to regular expressions. Their algorithm generates POSIX values which encode the information of how a regular expression matches a string—that is, which part of the string is matched by which part of the regular expression. This information is needed in the context of lexing in order to extract and to classify tokens. The purpose of the bitcodes is to generate POSIX values incrementally while derivatives are calculated. They also help with designing an “aggressive” simplification function that keeps the size of derivatives finitely bounded. Without simplification the size of some derivatives can grow arbitrarily big resulting in an extremely slow lexing algorithm. 
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   297
568
7a579f5533f8 more chapter2 modifications
Chengsong
parents: 564
diff changeset
   298
In this thesis we describe a variant of Sulzmann and Lu’s algorithm: Our variant is a recursive functional program, whereas Sulzmann and Lu’s version involves a fixpoint construction. We (i) prove in Isabelle/HOL that our algorithm is correct and generates unique POSIX values; we also (ii) establish a finite bound for the size of the derivatives. 
7a579f5533f8 more chapter2 modifications
Chengsong
parents: 564
diff changeset
   299
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   300
568
7a579f5533f8 more chapter2 modifications
Chengsong
parents: 564
diff changeset
   301
7a579f5533f8 more chapter2 modifications
Chengsong
parents: 564
diff changeset
   302
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   303
527
2c907b118f78 all chapters put in
Chengsong
parents: 526
diff changeset
   304
\end{abstract}
519
Chengsong
parents: 518
diff changeset
   305
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   306
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   307
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   308
%	ACKNOWLEDGEMENTS
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   309
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   310
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   311
\begin{acknowledgements}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   312
\addchaptertocentry{\acknowledgementname} % Add the acknowledgements to the table of contents
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   313
The acknowledgments and the people to thank go here, don't forget to include your project advisor\ldots
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   314
\end{acknowledgements}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   315
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   316
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   317
%	LIST OF CONTENTS/FIGURES/TABLES PAGES
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   318
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   319
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   320
\tableofcontents % Prints the main table of contents
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   321
518
ff7945a988a3 more to thesis
Chengsong
parents: 506
diff changeset
   322
%\listoffigures % Prints the list of figures
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   323
518
ff7945a988a3 more to thesis
Chengsong
parents: 506
diff changeset
   324
%\listoftables % Prints the list of tables
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   325
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   326
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   327
%	ABBREVIATIONS
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   328
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   329
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   330
\begin{abbreviations}{ll} % Include a list of abbreviations (a table of two columns)
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   331
500
Chengsong
parents: 472
diff changeset
   332
Chengsong
parents: 472
diff changeset
   333
\newtheorem{theorem}{Theorem}
Chengsong
parents: 472
diff changeset
   334
\newtheorem{lemma}{Lemma}
528
28751de4b4ba revised according to comments
Chengsong
parents: 527
diff changeset
   335
\newtheorem{definition}{Definition}
542
a7344c9afbaf chapter3 finished
Chengsong
parents: 538
diff changeset
   336
\newtheorem{conjecture}{Conjecture}
554
Chengsong
parents: 542
diff changeset
   337
\newtheorem{corollary}{Corollary}
Chengsong
parents: 542
diff changeset
   338
\newtheorem{property}{Property}
Chengsong
parents: 542
diff changeset
   339
\newtheorem{proposition}{Proposition}
505
5ce3bd8e5696 thesis chapter2 section 2.4
Chengsong
parents: 503
diff changeset
   340
%proof
5ce3bd8e5696 thesis chapter2 section 2.4
Chengsong
parents: 503
diff changeset
   341
500
Chengsong
parents: 472
diff changeset
   342
503
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   343
\newcommand\sflat[1][]{\textit{sflat} \, #1}
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   344
\newcommand{\ASEQ}[3]{\textit{ASEQ}_{#1} \, #2 \, #3}
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   345
\newcommand{\bderssimp}[2]{#1 \backslash_{bsimp} #2}
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   346
\newcommand{\rderssimp}[2]{#1 \backslash_{rsimp} #2}
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   347
\newcommand{\sflataux}[1]{\lbracket #1 \rbracket}
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   348
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}%
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   349
\newcommand{\ZERO}{\mbox{\bf 0}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   350
\newcommand{\ONE}{\mbox{\bf 1}}
503
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   351
\newcommand{\AALTS}[2]{\XOR {\scriptstyle #1}\, #2}
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   352
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   353
\def\lexer{\mathit{lexer}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   354
\def\mkeps{\mathit{mkeps}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   355
500
Chengsong
parents: 472
diff changeset
   356
\def\AZERO{\textit{AZERO}}
Chengsong
parents: 472
diff changeset
   357
\def\AONE{\textit{AONE}}
Chengsong
parents: 472
diff changeset
   358
\def\ACHAR{\textit{ACHAR}}
503
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   359
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   360
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   361
\def\ALTS{\textit{ALTS}}
500
Chengsong
parents: 472
diff changeset
   362
\def\ASTAR{\textit{ASTAR}}
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   363
\def\DFA{\textit{DFA}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   364
\def\bmkeps{\textit{bmkeps}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   365
\def\retrieve{\textit{retrieve}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   366
\def\blexer{\textit{blexer}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   367
\def\flex{\textit{flex}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   368
\def\inj{\mathit{inj}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   369
\def\Empty{\mathit{Empty}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   370
\def\Left{\mathit{Left}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   371
\def\Right{\mathit{Right}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   372
\def\Stars{\mathit{Stars}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   373
\def\Char{\mathit{Char}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   374
\def\Seq{\mathit{Seq}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   375
\def\Der{\mathit{Der}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   376
\def\nullable{\mathit{nullable}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   377
\def\Z{\mathit{Z}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   378
\def\S{\mathit{S}}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   379
\def\rup{r^\uparrow}
500
Chengsong
parents: 472
diff changeset
   380
%\def\bderssimp{\mathit{bders}\_\mathit{simp}}
Chengsong
parents: 472
diff changeset
   381
\def\distinctWith{\textit{distinctWith}}
Chengsong
parents: 472
diff changeset
   382
503
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   383
\def\rexp{\mathbf{rexp}}
500
Chengsong
parents: 472
diff changeset
   384
\def\simp{\mathit{simp}}
Chengsong
parents: 472
diff changeset
   385
\def\simpALTs{\mathit{simp}\_\mathit{ALTs}}
Chengsong
parents: 472
diff changeset
   386
\def\map{\mathit{map}}
Chengsong
parents: 472
diff changeset
   387
\def\distinct{\mathit{distinct}}
Chengsong
parents: 472
diff changeset
   388
\def\blexersimp{\mathit{blexer}\_\mathit{simp}}
Chengsong
parents: 472
diff changeset
   389
\def\map{\textit{map}}
Chengsong
parents: 472
diff changeset
   390
\def\vsuf{\textit{vsuf}}
Chengsong
parents: 472
diff changeset
   391
\def\sflataux{\textit{sflat}\_\textit{aux}}
Chengsong
parents: 472
diff changeset
   392
\def\rrexp{\textit{rrexp}}
Chengsong
parents: 472
diff changeset
   393
\def\rsize{\textit{rsize}}
Chengsong
parents: 472
diff changeset
   394
\def\asize{\textit{asize}}
Chengsong
parents: 472
diff changeset
   395
\def\rerase{\textit{rerase}}
Chengsong
parents: 472
diff changeset
   396
\def\erase{\textit{erase}}
Chengsong
parents: 472
diff changeset
   397
\def\STAR{\textit{STAR}}
Chengsong
parents: 472
diff changeset
   398
\def\flts{\textit{flts}}
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   399
503
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   400
35b80e37dfe7 new writing
Chengsong
parents: 500
diff changeset
   401
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   402
\end{abbreviations}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   403
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   404
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   405
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   406
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   407
%	SYMBOLS
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   408
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   409
528
28751de4b4ba revised according to comments
Chengsong
parents: 527
diff changeset
   410
%\begin{symbols}{lll} % Include a list of Symbols (a three column table)
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   411
528
28751de4b4ba revised according to comments
Chengsong
parents: 527
diff changeset
   412
%$a$ & distance & \si{\meter} \\
28751de4b4ba revised according to comments
Chengsong
parents: 527
diff changeset
   413
%$P$ & power & \si{\watt} (\si{\joule\per\second}) \\
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   414
%Symbol & Name & Unit \\
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   415
528
28751de4b4ba revised according to comments
Chengsong
parents: 527
diff changeset
   416
%\addlinespace % Gap to separate the Roman symbols from the Greek
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   417
528
28751de4b4ba revised according to comments
Chengsong
parents: 527
diff changeset
   418
%$\omega$ & angular frequency & \si{\radian} \\
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   419
528
28751de4b4ba revised according to comments
Chengsong
parents: 527
diff changeset
   420
%\end{symbols}
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   421
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   422
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   423
%	DEDICATION
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   424
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   425
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   426
\dedicatory{For/Dedicated to/To my\ldots} 
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   427
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   428
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   429
%	THESIS CONTENT - CHAPTERS
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   430
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   431
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   432
\mainmatter % Begin numeric (1,2,3...) page numbering
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   433
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   434
\pagestyle{thesis} % Return the page headers back to the "thesis" style
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   435
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   436
% Include the chapters of the thesis as separate files from the Chapters folder
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   437
% Uncomment the lines as you write the chapters
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   438
532
cc54ce075db5 restructured
Chengsong
parents: 528
diff changeset
   439
\include{Chapters/Introduction}
cc54ce075db5 restructured
Chengsong
parents: 528
diff changeset
   440
\include{Chapters/Inj} 
cc54ce075db5 restructured
Chengsong
parents: 528
diff changeset
   441
\include{Chapters/Bitcoded1}
cc54ce075db5 restructured
Chengsong
parents: 528
diff changeset
   442
\include{Chapters/Bitcoded2}
cc54ce075db5 restructured
Chengsong
parents: 528
diff changeset
   443
\include{Chapters/Finite} 
cc54ce075db5 restructured
Chengsong
parents: 528
diff changeset
   444
\include{Chapters/Cubic}
cc54ce075db5 restructured
Chengsong
parents: 528
diff changeset
   445
\include{Chapters/Further}
468
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   446
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   447
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   448
%	THESIS CONTENT - APPENDICES
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   449
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   450
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   451
\appendix % Cue to tell LaTeX that the following "chapters" are Appendices
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   452
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   453
% Include the appendices of the thesis as separate files from the Appendices folder
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   454
% Uncomment the lines as you write the Appendices
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   455
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   456
\include{Appendices/AppendixA}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   457
%\include{Appendices/AppendixB}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   458
%\include{Appendices/AppendixC}
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   459
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   460
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   461
%	BIBLIOGRAPHY
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   462
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   463
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   464
\printbibliography[heading=bibintoc]
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   465
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   466
%----------------------------------------------------------------------------------------
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   467
a0f27e21b42c all texrelated
Chengsong
parents:
diff changeset
   468
\end{document}