Professional Documents
Culture Documents
V Module
V Module
Solution
Prime numbers = {2, 3, 5, 7, 11, 13, …………..}
Divide the number ‘m’ by all the numbers between ‘2’ and ‘√m’ starting from ‘2’.
If any of these numbers produce a remainder zero, then it goes to the “Rejected
state”, otherwise it goes to the “Accepted state”. So, here the answer could be
made by ‘Yes’ or ‘No’.
Hence, it is a decidable problem.
Given a regular language L and string w, how can we check if w ∈ L?
Take the DFA that accepts L and check if w is accepted
Undecidable Languages
For an undecidable language, there is no Turing Machine which accepts the
language and makes a decision for every input string w (TM can make decision for
some input string though). A decision problem P is called “undecidable” if the
language L of all yes instances to P is not decidable. Undecidable languages are
not recursive languages, but sometimes, they may be recursively enumerable
languages.
Turing Machines with Stay Option Allow the tape head to stay in place after writing. Modify
Jump Turing machine
The standard Turing machine’s head can move only one step to the right or
left, but in case of jumping Turing machine the head can move not only just
one step to the left or right but it can move more the one, i.e., 2, 3, 4, 5, 6, …
so on, or it can jump to any cell to the right or left of the input tape.
f: Q × X --> Q × X × {Left_shift, Right_shift} x {n}
n, is the number of steps that we wish to move to the right or left. But still the
languages accepted by Turing machine remains the same.
Quantum computers
are machines that use the properties of quantum physics to store data and perform computations. This
can be extremely advantageous for certain tasks where they could vastly outperform even our best
supercomputers.
Classical computers, which include smartphones and laptops, encode information in binary “bits” that
can either be 0s or 1s. In a quantum computer, the basic unit of memory is a quantum bit or qubit.
Qubits are made using physical systems, such as the spin of an electron or the orientation of a photon.
These systems can be in many different arrangements all at once, a property known as
quantum superposition. Qubits can also be inextricably linked together using a phenomenon
called quantum entanglement. The result is that a series of qubits can represent different things
simultaneously.
For instance, eight bits is enough for a classical computer to represent any number between 0 and 255.
But eight qubits is enough for a quantum computer to represent every number between 0 and 255 at
the same time. A few hundred entangled qubits would be enough to represent more numbers than
there are atoms in the universe.
Post Correspondence Problem is a popular undecidable problem that was introduced by Emil Leon
Post in 1946. It is simpler than Halting Problem.
In this problem we have N number of Dominos (tiles). The aim is to arrange tiles in such order that
string made by Numerators is same as string made by Denominators.
In simple words, lets assume we have two lists both containing N words, aim is to find out
concatenation of these words in some sequence such that both lists yield same result.