Header Ads

  • Highlights

    👩🏻‍💻 Hello Readers 🧑🏻‍💻!!! Would you like to Explore more ? Hit on ⓘ(Ads)... ✨🌹

    What is Parikh Theorem in theory of computation?


    In the theory of computation, the Parikh theorem elaborates something more about Context-Free Languages. According to this theorem for any context-free language L, if we observe only the relative number of occurrences of terminal symbols of strings in language L irrespective of their order, then A is trivial(null) from a regular set.

    Formally, let Σ= {a1.......... ak}. The Parikh map is a function 

    is defined by  -

    ​​​​​​​That is, ψ(x) records the number of occurrences of each symbol in xThe structure Σwith binary operation (·) (concatenation) and constant E forms a monoid, as does the structure Nk with binary operation (+) component-wise addition) and identity = (0, ... , 0), and ψ is a monoid homomorphism:

                                                        ψ(x,y)= ψ(x)+ ψ(y),

    The major thing you find between the monoids Σ* and Nk is that among two Nk is commutative, whereas Σ*  is not, except in the case = 1. In fact, if  is the smallest monoid congruence on Σsuch that ai, aj, ≡aai, , 1 ≤ i, j ≤ k, then Nk is isomorphic to the quotient Σ*/≡ .  The monoid Σ* is sometimes called the free monoid on k generators, and Nk is sometimes called the free commutative monoid on k generators. The word "free" refers to the fact that the structures do not satisfy any equations besides the logical consequences of the monoid or commutative monoid axioms, respectively.

    Theorem: (Parikh) For any context-free language A, ψ(A) is semilinear.
    The converse does not hold: the set {anbncn | n ≥ 0} is not context-free but has a semilinear image under ψ. This is also an image of the CFL {(ab)ncn | n ≥ 0 } and the regular set (abc)*.

     Also, Study about: 

    Also Read, some interview tips

    No comments

    Post Bottom Ad

    Powered by Blogger.