Code: Select all
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%% THIS DOCUMENT IS GENERATED USING TEXLIVE XETEX PACKAGE %%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt,fleqn]{book}
% The main typesetting template for the book
\input{structure}
\begin{document}
%%%%%%%% DOCUMENT TITLE %%%%%%%%
\begingroup
\thispagestyle{empty}
\begin{tikzpicture}[remember picture,overlay]
\coordinate [below=5.025in, left=-1in] (midpoint) at (current page.north); % position in the page where title box appears
\node at (current page.north west)
{\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north west,inner sep=0pt] at (0,0) {\includegraphics[height=\paperheight,width=\paperwidth]{background}}; % Background image
\draw[anchor=north] (midpoint) node [fill=ocre!30!white,fill opacity=0.6,text opacity=1,inner sep=1.175in]
{\Huge\centering\bfseries\parbox[c][][t]{\paperwidth}
{\centering \textsc{Computer Science Notes \& Primers}\\[20pt] % Book title
{\huge My Name}}}; % Author name
\end{tikzpicture}};
\end{tikzpicture}
\vfill
\endgroup
%%%%%%%% TABLE OF CONTENTS %%%%%%%%
\chapterimage{chapter_head_2.pdf} % Table of contents heading image
\pagestyle{empty} % No headers
\tableofcontents % Print the table of contents itself
\cleardoublepage % Forces the first chapter to start on an odd page so it's on the right
\pagestyle{fancy} % Print headers again
%%%%%%%% DOCUMENT BODY %%%%%%%%
%\part{Algorithm and Data-Structure Notes}
%\input{Algorithms}
\part{Coding Questions}
\input{Coding}
%\part{Game Design Notes}
%\input{Gaming}
%\part{Linear Algebra Notes}
%\input{LinearAlgebra}
%\part{Finite Element Method}
%\input{FiniteElements}
\begin{appendices}
\part{Mathematical Concepts in Algorithms}
\input{AppendixAlgoMaths}
\end{appendices}
\end{document}
Code: Select all
\chapter{Mathematical Concepts in Algorithms}
\markright{}
\label{algomaths}
\section{Summations}
\label{algo-summations}
When an algorithm contains iterative control constructs like \texttt{while} or \texttt{for} loops, we can express its running times in terms of sum of times spent in the loops. When we evaluate these summations, we obtain performance bounds ($O$, $\Theta$ or $\Omega$). This section contains some of the concepts of these summations. For a list of $n$ numbers $a_0, a_1, a_2, \dots, a_{n-1}$, we can designate their sum as $\sum\limits_{i=0}^{n-1} a_i$. When the sequence is infinite, the sum becomes $\sum\limits_{i=0}^{\infty} a_i$ or $$\lim_{i\to\infty}$$ $\sum\limits_{i=0}^{n-1} a_i$. If the limit exists, then the series \textbf{converges}; otherwise, it \textbf{diverges}.\\
\textbf{Linearity}\\
For any real number $c$ and finite sequences $a_0, a_1, a_2, \dots, a_{n-1}$ and $b_0, b_1, b_2, \dots, b_{n-1}$,
\begin{equation}
\sum\limits_{i=0}^{n-1} (ca_i + b_i) = c\sum\limits_{i=0}^{n-1} a_i + \sum\limits_{i=0}^{n-1} b_i
\end{equation}
Code: Select all
No file Notes.ptc.
[21] [22] (./AppendixAlgoMaths.tex
Appendix A.
<use "Pictures/chapter_head_2.pdf" >
! Missing number, treated as zero.
<to be read again>
A
l.1 \chapter{Mathematical Concepts in Algorithms}
If someone can shed some light on this, I would be much obliged.