Show that the function K(x) is not a computable function.

Short Answer

Expert verified

The given statement is proved.

Step by step solution

01

Turing Recognizable

A language L is said to be Turing Recognizable if and only if there exist any Turing Machine (TM) which recognize it i.e., Turing Machine halt and accept strings belong to language L and will reject or not halt on the input strings that doesn’t belong to language L.

02

Proof of the statement.

Let as assume ya be the lexicographical 1st string s which satisfy n < K(y)

Let us assume to have Turing Machine M in which if the input is ‘n’, then we are able to generate binary strings x0, x1, x2.....

So, M will work as follows:

  • M compute K(xi)
  • If K(x) > n
  • Output: xi

Halt

  • If Not Halt

Then check other lexicographical string xi+1

So, TM M will encounter a string x which will satisfy K(x) > n

For input n, the output generated is ya whereas the input string length would be: log2(n). For all n K(x)>n, length would be n < log2(n) + c

But this is not true for sufficiently large value of n. This is contradicting as M will never compute K(xi), which clearly states that K(xi) is not computable function.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

A queue automaton is like a push-down automaton except that the stack is replaced by a queue. A queue is a tape allowing symbols to be written only on the left-hand end and read only at the right-hand end. Each write operation (we’ll call it a push) adds a symbol to the left-hand end of the queue and each read operation (we’ll call it a pull) reads and removes a symbol at the right-hand end. As with a PDA, the input is placed on a separate read-only input tape, and the head on the input tape can move only from left to right. The input tape contains a cell with a blank symbol following the input, so that the end of the input can be detected. A queue automaton accepts its input by entering a special accept state at any time. Show that a language can be recognized by a deterministic queue automaton iff the language is Turing-recognizable.

Consider the problem of determining whether a Turing machine M on an input w ever attempts to move its head left when its head is on the left-most tape cell. Formulate this problem as a language and show that it is undecidable.

Letxandy be strings and let L be any language. We say that x and y are distinguishable by L if some string Z exists whereby exactly one of the stringsxzandyz is a member of L ; otherwise, for every string z , we have xzLwhenever yzLand we say that are indistinguishable by L. If xandyare indistinguishable by L, we write x ≡L y. Show thatLis an equivalence relation.

Let. ={0,1}LetC1 be the language of all strings that contain a 1 in their middle third.

Let C2be the language of all strings that contain two 1s in their middle third. So C1={xyz|x,z*andy*1*,where|x|=|z||y|}and C2={xyz|x,z*andy*1*1*,  where|x|=|z||y|}.

a.Show that C1is a CFL.

b. Show thatC2 is not a CFL

Give a counter example to show that the following construction fails to prove that the class of context-free languages is closed under star. Let A be a CFL G=(V,,R,S)that is generated by the CFG . Add the new rule SSSand call the resulting grammar. This grammar is supposed to generate A* .

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free