Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Existence of a programming language - guaranteed termination [closed]

Does there exist a programming language, where you always are guaranteed a termination?

If you only have if/else statements can you then be sure that that a program will terminate?

like image 591
user11775 Avatar asked Dec 07 '11 09:12

user11775


People also ask

What makes a programming language Turing complete?

Practically, what you need to know is that a Turing-complete language (also called a universal language) is one where you can compute anything that any other computational method can compute. In other words, a language that's non-universal—or Turing incomplete—has some limits on the set of things that it can compute.

What is considered Turing complete?

Definition(s): A system (computer system, programming language, etc.) that can be used for any algorithm, regardless of complexity, to find a solution.

What is needed for Turing completeness?

In general, for an imperative language to be Turing-complete, it needs: A form of conditional repetition or conditional jump (e.g., while , if + goto ) A way to read and write some form of storage (e.g., variables, tape)

What languages are Turing complete?

Turing Complete refers to a machine that, given enough time and memory along with the necessary instructions, can solve any computational problem, no matter how complex. The term is normally used to describe modern programming languages as most of them are Turing Complete (C++, Python, JavaScript, etc.).


1 Answers

Datalog is an example of a real programming language for which every program terminates.

like image 144
Ryan Culpepper Avatar answered Oct 05 '22 18:10

Ryan Culpepper