The Gateway to Computer Science Excellence

+3 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..**

+2

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.

+6

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..

0

It must be undecidable for a given truing machine. But the explanation is very elaborate. Thank you!

0

@kumar.dilip Because you can convert it to halting problem maybe? Also why should it be decidable?

0

As we know according to the Turing thesis.

Any computation that can be done by the mechanical means can be performed by some Turing.

As we know we can perform the Multiplications from it. there exist an Algorithm for it.

0

What you are saying is right, but its not about the existence, suppose you are given an arbitrary TM and you would like to check if it is computing product of two numbers. Now you give the input and the machine is computing and it could be in loop or something and it is taking some time, now you cannot declare that this TM is not going to compute the product of the numbers since it did not halt, and nor can you declare that it will compute the product at this point of time. Its like halting problem or is it not?

+2 votes

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. ]

[ 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. ]

- All categories
- General Aptitude 1.9k
- Engineering Mathematics 7.5k
- Digital Logic 2.9k
- Programming and DS 4.9k
- Algorithms 4.3k
- Theory of Computation 6.2k
- Compiler Design 2.1k
- Databases 4.1k
- CO and Architecture 3.4k
- Computer Networks 4.1k
- Non GATE 1.5k
- Others 1.5k
- Admissions 595
- Exam Queries 576
- Tier 1 Placement Questions 23
- Job Queries 72
- Projects 17

50,650 questions

56,236 answers

194,264 comments

95,870 users