If you want to make money online : Register now

An imperative program is analogous to how a Turing machine works?

, , No Comments
Problem Detail: 

Since Turing machines has great influence on typical hardware architecture (Von Neumann) and both uses concept of state, is correct to say that an imperative program is analogous to how a Turing machine works?

"Computability via Turing machines gave rise to imperative programming. Computability described via λ-calculus gave rise to functional programming." — Cooper, S. B., Leeuwen, J. (2013) . Alan Turing: His Work and Impact.

And

"Imperative programming languages such as Fortran, Pascal etcetera as well as all the assembler languages are based on the way a Turing machine is instructed: by a sequence of statements." - Barendregt, H., Barendsen, E. (2000) . Introduction to Lambda Calculus

Asked By : Alexandre Thebaldi
Answered By : usul

At a high enough level and when contrasted with functional programming, sure. Turing machine models and imperative programs have in common that they start from an input and take a series of steps that change a state stored in memory, ending with some output.

This contrasts with lambda calculus and functional programming which generally and loosely do not have the above features.

I think reading any more into the comparison than this, or trying to take it any farther, is probably a mistake. As Yuval says, Turing machines are quite different from modern machines and program execution environments.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/65477

3200 people like this

 Download Related Notes/Documents

0 comments:

Post a Comment

Let us know your responses and feedback