File:3Band-Turing-Maschine.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 314 × 110 pixels. Other resolutions: 320 × 112 pixels | 640 × 224 pixels | 1,024 × 359 pixels | 1,280 × 448 pixels | 2,560 × 897 pixels.
Original file (SVG file, nominally 314 × 110 pixels, file size: 41 KB)
File information
Structured data
Captions
Summary
[edit]Description3Band-Turing-Maschine.svg |
Deutsch: 3 Band-Turing-Maschine
Created using the tikz package and compiled with pdflatex. \documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{ifthen}
\usepackage{tikz}
\usetikzlibrary{chains}
\usetikzlibrary{calc, decorations.pathmorphing}
\tikzstyle{tape}=[thick, draw, minimum height=5mm, minimum width=7mm, fill=green!35,outer sep=0pt]
\tikzstyle{head}=[very thick, draw, minimum height=6mm, minimum width=7mm, fill=none,outer sep=0pt]
\def\DrawTape#1{
\begin{scope}[start chain=1 going right,node distance=-0.15mm]
% start tape
\node [on chain=1,tape,draw=none, tape, fill=none, draw=none] at (0,-\i*1) (node\i0){\ldots\ };
\draw [thick,fill=green!35] (node\i0.north east) -- ++(-.07,0) decorate [decoration={zigzag, segment length=.10cm, amplitude=.015cm}]
{-- ($(node\i0.south east)+(-.15,0)$)} -- (node\i0.south east) -- cycle;
% draw tape
\foreach [count=\j] \element in \adlist {
\ifthenelse{\j = \head}{ % read-write heads current position
\node [on chain=1,tape, fill=red!35] (node\i\j){\element};
}
{
\node [on chain=1,tape] (node\i\j) {\element};
}
}
% close tape
\draw [thick,fill=green!35] (node\i\j.north east) -- ++(.15,0) decorate [decoration={zigzag, segment length=.10cm, amplitude=.015cm}]
{-- ($(node\i\j.south east)+(.07,0)$)} -- (node\i\j.south east) -- cycle;
\node [on chain=1,tape, fill=none, draw=none] (end\i) {\ \ldots};
\node [right = of end\i]{\tiny Band~\i};
% draw read-write head
\prevnode=\head
\advance\prevnode by -1
\node [head,right = of node\i\the\prevnode] (head\i){};
\node [above = of head\i]{\tiny LS-Kopf \i};
\end{scope}
}
\newcount\prevnode
\begin{document}
% Define the turing machine as a list of pairs, where each pair consists of the read-writes head position the delimiter "/" and the list of symbols on the tape.
\newcommand{\tapes}{ 3/{, , ,1,1, }, 1/{, 1, 0, 1 , 0,}, 2/{ , 1 , 1, 0, 1,}}
\begin{tikzpicture}
% Draw program node
\draw (-1.5,-2) node [draw, thick, rectangle, minimum height= 2.5cm, minimum width=2cm, fill=white, rounded corners] (program){Programm};
% Draw tapes and heads
\foreach [count=\i] \head/\adlist in \tapes {
% Draw tape and head
\DrawTape{\i,\head,\adlist}
% Draw link to program
\draw[thick, rounded corners=3pt] (program) {-- ($(node\i0.south west) + (0,-0.15)$)}
{-- ($(head\i.south) + (0,-0.1)$)}-- (head\i.south);
}
\end{tikzpicture}
\end{document}
|
Date | |
Source | Own work |
Author | Wdvorak |
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 20:31, 2 September 2016 | 314 × 110 (41 KB) | Wdvorak (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on de.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 251.548pt |
---|---|
Height | 87.777pt |
Structured data
Items portrayed in this file
depicts
1 September 2016
image/svg+xml
f4b1782b70066d72cd60d90c921a062fe59fd54a
42,068 byte
110 pixel
314 pixel
Hidden categories: