Questions tagged [turing-machines]

A Turing machine is an idealized model of computation consisting of a finite-state control, an infinite tape holding information, and a read head positioned somewhere over the tape. Turing machines are used in computability theory to reason about the limits of computation, to provide a formal definition for an algorithm, and to provide formal models for nondeterminism.

Wiki

A Turing machine is a device that manipulates symbols on a strip of tape according to a table of rules. Despite its simplicity, a Turing machine can be adapted to simulate the logic of any computer algorithm, and is particularly useful in explaining the functions of a CPU inside a computer.

Turing machines are not physical objects but mathematical ones. A Turing machine is a kind of state machine. At any time the machine is in any one of a finite number of states. Instructions for a Turing machine consist in specified conditions under which the machine will transition between one state and another.

The tape is used to store data. In addition, it can also store a series of transitions (a small programs) and thus, the head can run sub-programs. By analogy with modern computers, the tape is the memory and the head is the microprocessor.

Tag usage

The tag can be used for programming related problems in implementing features of a turing machine. The tag can also be used for algorithmic problems related to turing machine. Try to avoid theoretical and research based questions on Stack Overflow.

Please note https://cstheory.stackexchange.com is another stack exchange website which you can use to ask theoretical and conceptual problems with tag

Source

487 questions
692
votes
14 answers

What is Turing Complete?

What does the expression "Turing Complete" mean? Can you give a simple explanation, without going into too many theoretical details?
dlinsin
  • 19,249
  • 13
  • 42
  • 53
68
votes
6 answers

Turing machine vs Von Neuman machine

Background The Von-Neumann architecture describes the stored-program computer where instructions and data are stored in memory and the machine works by changing its internal state, i.e an instruction operates on some data and modifies the data. So…
Santhosh
  • 6,547
  • 15
  • 56
  • 63
67
votes
5 answers

Why can Conway’s Game of Life be classified as a universal machine?

I was recently reading about artificial life and came across the statement, "Conway’s Game of Life demonstrates enough complexity to be classified as a universal machine." I only had a rough understanding of what a universal machine is, and…
Ziggy
  • 21,845
  • 28
  • 75
  • 104
67
votes
13 answers

When have you come upon the halting problem in the field?

When have you ever personally come upon the halting problem in the field? This can be when a co-worker / boss suggested a solution which would violate the fundamental limits of computation, or when you realized yourself that a problem you were…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
47
votes
11 answers

What's a Turing machine?

What is a Turing machine and why do people keep mentioning it? My IBM PC is all I need to do my computation! Why does anyone care about these machines?
Claudiu
  • 224,032
  • 165
  • 485
  • 680
33
votes
1 answer

I do not understand the concept of Non Deterministic Turing Machine

I do not the understand the concept of Non Deterministic Turing Machine. I guess I understand the term Non deterministic algorithm : (nondeterministic algorithm is an algorithm that can exhibit different behaviors on different runs, as opposed to a…
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
29
votes
24 answers

When is theoretical computer science useful?

In class, we learned about the halting problem, Turing machines, reductions, etc. A lot of classmates are saying these are all abstract and useless concepts, and there's no real point in knowing them (i.e., you can forget them once the course is…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
27
votes
3 answers

What are the six basic primitives in Turing Complete

I am listening the edX lesson, and the professor stresses that every machine able to perform those six basic primitives can be called Turing Complete. But what are the six basic primitives?
YourTeddy
  • 413
  • 2
  • 5
  • 8
24
votes
2 answers

What is meant by "dovetailing"?

While reading the reviews for Stephen Wolfram's "A New Kind of Science" on Amazon, I came across the following statement: Every computer science (CS) student knows the dovetailer, a very simple 2 line program that systematically lists and executes…
Dhruv
  • 952
  • 1
  • 11
  • 26
19
votes
3 answers

Difference between Turing-Decidable and Co-Turing-Decidable

I am really struggling with understanding the difference between these two. From my textbook, it essentially describes the difference by saying a language is co-turing recognizable if it is complement of a turing-recognizable language. I guess…
Jason M.
  • 692
  • 2
  • 8
  • 24
18
votes
5 answers

Is a Turing machine a real device or an imaginary concept?

When I am studying about Turing machines and PDAs, I was thinking that the first computing device was the Turing machine. Hence, I thought that there existed a practical machine called the Turing machine and its states could be represented by some…
Muthu Ganapathy Nathan
  • 3,199
  • 16
  • 47
  • 77
18
votes
3 answers

chomsky hierarchy and programming languages

I'm trying to learn some aspects of the Chomsky Hierarchy which are related to programming languages, and i still have to read the Dragon Book. I've read that most programming languages can be parsed as a context free grammar (CFG). In term of…
16
votes
12 answers

Turing Machine Code Golf

Ok guys, today's goal is to build a Turing machine simulator. For those that don't know what it is, see the Wikipedia article. The state table we are using today is found at the end of the Formal Definition that's part of that page. The code will…
RCIX
  • 38,647
  • 50
  • 150
  • 207
14
votes
2 answers

Turing completeness of lambda calculus?

How do you argue for the fact that lambda calculus is Turing complete (in the simplest way possible) ?
samsamara
  • 4,630
  • 7
  • 36
  • 66
14
votes
2 answers

What it means lambda calculus is equivalent to turing machine

I'm trying to wrap my head around lambda calculus, and how it relates to language, compiler and binary code. What it actually means that lambda calculus is equivalent to turing machine, and where it actually manifest itself? I don't understand how…
1
2 3
32 33