turing-machines

Is pure Prolog Turing-complete, and if so, why can't it implement list intersection?

∥☆過路亽.° 提交于 2021-02-04 04:58:19
问题 The Wikipedia section on this topic is a mess. It states: Pure Prolog is based on a subset of first-order predicate logic, Horn clauses, which is Turing-complete. Turing completeness of Prolog can be shown by using it to simulate a Turing machine: (emphasis added) And then it goes on to show code that uses things that are not Horn clauses ( ! and once ): turing(Tape0, Tape) :- perform(q0, [], Ls, Tape0, Rs), reverse(Ls, Ls1), append(Ls1, Rs, Tape). perform(qf, Ls, Ls, Rs, Rs) :- !. perform(Q0

Is pure Prolog Turing-complete, and if so, why can't it implement list intersection?

喜夏-厌秋 提交于 2021-02-04 04:56:57
问题 The Wikipedia section on this topic is a mess. It states: Pure Prolog is based on a subset of first-order predicate logic, Horn clauses, which is Turing-complete. Turing completeness of Prolog can be shown by using it to simulate a Turing machine: (emphasis added) And then it goes on to show code that uses things that are not Horn clauses ( ! and once ): turing(Tape0, Tape) :- perform(q0, [], Ls, Tape0, Rs), reverse(Ls, Ls1), append(Ls1, Rs, Tape). perform(qf, Ls, Ls, Rs, Rs) :- !. perform(Q0

Is pure Prolog Turing-complete, and if so, why can't it implement list intersection?

与世无争的帅哥 提交于 2021-02-04 04:56:29
问题 The Wikipedia section on this topic is a mess. It states: Pure Prolog is based on a subset of first-order predicate logic, Horn clauses, which is Turing-complete. Turing completeness of Prolog can be shown by using it to simulate a Turing machine: (emphasis added) And then it goes on to show code that uses things that are not Horn clauses ( ! and once ): turing(Tape0, Tape) :- perform(q0, [], Ls, Tape0, Rs), reverse(Ls, Ls1), append(Ls1, Rs, Tape). perform(qf, Ls, Ls, Rs, Rs) :- !. perform(Q0

Data mining termin “fledged”?

一曲冷凌霜 提交于 2020-01-16 18:18:08
问题 Please tell what is termin "full fledged KI"? As i understand it is part of data mining for text analyzing. Am i right? Some interesting and useful links will be fine! Thank you!!! 回答1: By "full fledged", he likely means "fully fledged", defined as developed or matured to the fullest degree of full rank or status source: thefreedictionary.com Not sure about KI, but possibly it means: http://en.wikipedia.org/wiki/Knowledge_integration 回答2: My guess is that it is a typo of AI or a near-synonym,

Time complexity versus space complexity in Turing machines

戏子无情 提交于 2020-01-03 20:59:23
问题 I think defenitions of time complexity and space complexity for Turing machines are identical and I can't differentiate between them. Please help me. Thanks. 回答1: With regards to a Turing machine, time complexity is a measure of how many times the tape moves when the machine is started on some input. Space complexity refers to how many cells of the tape are written to when the machine runs. The time complexity of a TM is connected to its space complexity. In particular, if tue space

How input string is represented in magnetic tapes?

喜你入骨 提交于 2019-12-25 01:48:48
问题 I know that in turing machines, the (different) tapes are used for both input and output and for stack too. In a problem of adding 2 numbers using turing machine, the input is dealing with many symbols like 1,0,B(blank),+. (Tough this questions is related to physics, I asked here since I thought they mayn't know about turing machines and their inputs.) And my doubt is , If the input is BBBBB1111+111111BB, then in magnetic tape, 1->represented by North polarity(say). 0->represented by south

What's a Turing machine?

被刻印的时光 ゝ 提交于 2019-12-18 09:59:20
问题 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? 回答1: The reason that Turing Machines are a big deal has to do with the study of classical Computing Science or Theory of Computation type stuff. It's basically about analyzing the general properties of a computer, such as what theoretical abilities and limitations a computer has, as well as what we mean when we talk about "computing" something

Design a Turing machine that accepts L={ww^r | w:(0,1)*}?

丶灬走出姿态 提交于 2019-12-14 04:23:42
问题 This question was migrated from Stack Overflow because it can be answered on Computer Science Stack Exchange. Migrated 9 days ago . Can anyone help :( L = {ww^r | w element of (0,1)*} Would it be like in :pseudo code, check if the string is equal to itself in reverse? 回答1: This can be done with a PDA or a TM. I'll assume you need a deterministic TM, for what I'm assuming is homework. The strategy is to find the length of the string to determine where the middle is, then treat the tape as a

Implementing a Turing machine in Erlang

冷暖自知 提交于 2019-12-13 14:02:04
问题 I have a little project which is very similar to implementing a Turing machine. The essential problem I have is to save the current configuration e.g. the position of the head and further information. Important to me is especially saving up the head position to move him forwards or backwards. What would be the Erlang way to solve this problem? I'm new to Erlang but as far as I explored OTP the gen_event behavior is suited for this. My thought was to pass over the initial head position and

L = {T | T is a turing machine that recognizes {00, 01}} Prove L is undecidable

岁酱吖の 提交于 2019-12-12 04:44:37
问题 L = {<T> | T is a turing machine that recognizes {00, 01}} Prove L is undecidable. I am really having difficulties even understanding the reduction to use here. I'm not asking for free lunch, just a push in the right direction. 回答1: A direct application of Rice's theorem will let you prove this without doing any work at all. Some Turing machines recognize {00, 01}. Some don't. The difference is semantic in that it has to do with the strings accepted, not the structure of the automaton. Hence,