The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
271 views
for

1. given any two specific numbers

2. any two arbitrary numbers
asked in Theory of Computation by Active (2.3k points) | 271 views

2 Answers

+2 votes

If we can have Turing enumerator which can generate strings in lexicographic order , then the set is known as recusive(decidable) one else if order is not maintained but Turing enumeration is possible then it is recursively enumerable..

So in this case the problem is to compute the product of two numbers ..So we can enumerate the results in sequence and hence let Turing enumerator enumerates the string in ordered (lexicographic) manner as every number can be written in the form of product of 2 numbers..

U can also understand like this :

A problem is said to be decidable iff we have an algorithm for it..So for multiplication trivially we have algorithm which can be implemented in a computer..

So equivalently we can also have Halting Turing Machine for this purpose..Hence it is a recursive(decidable) set..

answered by Veteran (96.6k points)
thanks, got it

I think it is undecidable problem. You can check here.

https://gateoverflow.in/84835/gate1990-3-vii#c140267
Because the question is not asking there exist a TM which can do the product of two numbers. Instead, it is asking given any arbitrary TM, does it computes the product of two numbers.

i agree with you, may be turing machine doesnt halt on given input, so how can we say that it will compute product pf two numbers..
+1 vote
A Turing machine can compute product of any two numbers, hence decidable problem. However, if the question is asked to find out whether a given Turing machine can perform product of two numbers, then it is an undecidable problem
[ Proof: design a (halting) Turing machine which can compute product of two number (recursive & decidable). Now give the same input to the given Turing machine and compare the output with your TM's output. If you can enumerate this to all the natural number then you can say the given TM can perform the product of two number. Since the given TM is unknown to us, it could be possible that for any two number given as a input to the TM might cause it to loop infinitely and it might never halt (halting problem). If that happens, then the entire problem of whether a particular TM can perform product of two numbers will become undecidable. ]
answered by (63 points)


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

29,115 questions
36,926 answers
91,928 comments
34,782 users