Self Studies

Theory of Computation Test 5

Result Self Studies

Theory of Computation Test 5
  • Score

    -

    out of -
  • Rank

    -

    out of -
TIME Taken - -
Self Studies

SHARING IS CARING

If our Website helped you a little, then kindly spread our voice using Social Networks. Spread our word to your readers, friends, teachers, students & all those close ones who deserve to know what you know now.

Self Studies Self Studies
Weekly Quiz Competition
  • Question 1
    1 / -0

    Recursive languages are closed under which of the following operations?

    I. Union

    II. Complement

    III. Concatenation

    IV. Kleene star

    Solution

    .Concept:

    Recursive languages are closed under Union, Complement,  Concatenation and Kleene star

    Explanation

    Let L1 and L2 be recursive languages.

    • \(L_1 \cup L_2\)

    → Recursively enumerable languages are under union operation, hence \(L_1 \cup L_2\)  is recursive

    • \( \overline {L_1} \)

    → Recursive languages are closed under complementation operation, hence \(\overline {L_1}\) is recursive.

    • \(L_1 .L_2\)

    → Recursively enumerable languages are closed under concatenation operation, hence \(L_1 .L_2\) is recursive.

    • \({L_1}^+\)

    → Recursive languages are closed under Kleene star operation, hence \({L_1}^+\) is recursive

  • Question 2
    1 / -0

    Consider the following statement:

    (i). The class of languages recognized by three stack Turing machines is exactly the class of Turing recognizable languages.

    (ii). Multi-tape Turing machines are more powerful then single tape Turing machines.

    (iii). Non deterministic Turing machines are more powerful than deterministic Turing machines.

    Which of the the above statement/s is/true?

    Solution

    (i). True: Three Stacks is equivalent to two stacks hence the class of languages recognized by three stack Turing machines is exactly the class of Turing recognizable languages.

    (ii). False: Multitape Turing machines has same power as single tape Turing machines.

    (iii). False: Non deterministic Turing machines solves problem faster as they split in different copies of them self at every pass.

  • Question 3
    1 / -0

    Let L1 be recursively enumerable language but not recursive, L2 be recurive language and L3 be context free language and L4 be regular language.

    Which one of the following statements is/are true?

    I. L1 ∩ L2 is recursively enumerable language

    II. L*3 . L*4 is context free language

    III. L2 ∩ L̅2 are recursive language

    Solution

    Statement 1:

    L1: recursively enumerable language

    L2: recursive language

    Every recursive language is recursively enumerable language

    Also, recursively enumerable language is closed under intersection

    Therefore, L1 ∩ L2 is recursively enumerable language

    Statement 2:

    L3: context free language

    L4: regular language

    Every regular language is context free language

    Also, context free language is closed under Kleene closure and concatenation

    Therefore, L*3 . L*4 is context free language

    Statement 3:

    Recursive language is closed under intersection and complementation

    Therefore, L2 ∩ L̅2 are recursive language

  • Question 4
    1 / -0

    Consider the following problems:

    (i) Whether a finite automaton halts on all inputs?

    (ii) Whether a given Context Free Language is Regular?

    (iii) Whether a Turing Machine computes the product of two numbers?

    Which one of the following is correct?
    Solution

    Statement i: Decidable

    A language is decidable when there is a machine which halts for every string in that language and goes to non-final state for string not in the language. A finite automaton is a special case of a Turing machine which halts on all inputs that are in the language, so it is decidable.

    Statement ii: Undecidable

    Regular property of context free languages is undecidable.  This can be proved by taking regular language as Σ*. Assume both G and R as part of input problem. For any family of languages, whether it is equal to other language is decidable if both L1 and L2 are subset of each other.

    Statement iii: Undecidable

    Turing machine is for recursive enumerable languages (for type 0 problems). Type 0 problems are undecidable. If we do not know about the Turing machine, it could possible that result for any two numbers will go into infinite loop and never halt. If it happens, then problem is undecidable.
  • Question 5
    1 / -0

    Let L1 and L2 be recursively enumerable languages over the alphabet Σ such that L1 ∩ L2 = ϕ and L1 ∪ L2 = Σ*  Which of the following statements is/are FALSE?

    I. L1 and L2 are both recursive

    II.The complements of L1 and L2 are both recursively enumerable.

    Solution

    Since L1 ∩ L2 = ϕ and L1 U L2 =Σ*, we get \(\overline {{L_1}} = {L_2}\ and\ \overline {{L_2}} = {L_1}.\)Thus, the complements of L1 and L2 are both recursively enumerable.

    Also, L1 and L̅ 1 are both recursively enumerable, L1 is recursive. Similarly, L2 is also recursive.

    Therefore I and II both are correct

    Hence none of them are false

  • Question 6
    1 / -0

    Let L be a regular language and R be a Turing recognizable but not acceptable language. Which of the following is possible?

    I) Compliment of R can be Turing recognizable.

    II) L ∪ (R)' can be recursive(where ' is complement operation).

    III) Set of all strings common in R' and L can be in not RE.

    IV) L ∪ R can be recursive.

    V) Set of strings common in R' and L can be Recursive.

    Solution

    (I). Compliment of R will be in not-re hence it can not be Turing recognizable.

    (II). Assume L is Σ*

    (III). Again assume L is Σ*

    (IV). Again assume L is Σ*

    (V). Assume L is an empty language.

    Example:

    If a, b, and c are the input symbol present in languages. 

    L = (a + b + c)*, R is RE but R' is not RE (RE is note closed under complementation)

    Statement II:

    L = L ∪ R'

    ∪ Ris regular and hence it is REC in this case

    Statement III:

    Also, the common string of L and R' is not RE

    Statement IV:

    L = L ∪ R

    L = L ∪ R is regular and hence it is REC in this case

    Statement V:

    if L = ϕ 

    L = L  ∩ R' = ϕ  is REC

Self Studies
User
Question Analysis
  • Correct -

  • Wrong -

  • Skipped -

My Perfomance
  • Score

    -

    out of -
  • Rank

    -

    out of -
Re-Attempt Weekly Quiz Competition
Selfstudy
Selfstudy
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now