-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAlgorithm.tex
More file actions
55 lines (45 loc) · 1.7 KB
/
Algorithm.tex
File metadata and controls
55 lines (45 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
\documentclass[a4paper,12pt]{article}
\usepackage{amssymb, algorithm, fancyhdr, algorithmicx, algpseudocode}
\newcommand{\m}{\mathbb}
\newcommand{\B}{\mathcal}
\newtheorem{name}{Printed output}[section]
\newtheorem{mydef}{Definition}[section]
\newtheorem{mylem}{Lemma}[section]
\newtheorem{mythm}{Theorem}[section]
\newtheorem{mycor}{Corollary}[section]
\pagestyle{fancy}
\setlength{\parindent}{0mm}
\setlength{\headheight}{15.0pt}
\lhead{Angus Gruen, u5561004}
\rhead{Defining an Model of Computation}
\begin{document}
An algorithm is a finite length list of computations.
\vspace{2mm}
A model of computation is a list of computations that an algorithm is allowed to use.
\vspace{2mm}
Some simple examples of models of computations are:
\textbf{
\begin{enumerate}
\item Inputs
\item If statments
\item For Loops
\item Memory Assignment
\end{enumerate}}
This is essesntially a turing machine. If we dropped the ability for Memory Assignment, we get a weaker model known as a Finite State Machine.
\textbf{
\begin{enumerate}
\item Inputs
\item If statments
\item For Loops
\end{enumerate}}
A interesting example of a model of computation is straight edge geometry defined by the following list of allowed computions
\textbf{
\begin{enumerate}
\item You start with 2 points length 1 apart.
\item You can draw a straight line between any 2 points.
\item Given 2 points you can draw the circle centered at one point and passing through another.
\item You can add a point at an intersection of any two points.
\item You can extend any straight line into a ray.
\item You can output the distance between any two points along any line drawn between the points.
\end{enumerate}}
\end{document}