Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4234232
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:19:30+00:00 2026-05-21T02:19:30+00:00

If a Context-Free Grammar is given, is there a systematic way to find out

  • 0

If a Context-Free Grammar is given, is there a systematic way to find out the generated language and express it as a set using a descriptive and not analytic way, like L(G)={0^n.1^n|n?=1} (and not L(G)={01,0011,000111,…}) ?

I actually ask because if a CFG is given and there is a question like: “Find the language of the grammar.Prove/Justify your answer.” , then how can someone prove/justify his/her answer otherwise?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:19:31+00:00Added an answer on May 21, 2026 at 2:19 am

    In general, no. For example, for an arbitrary context free grammar, the question of whether the language is equivalent to Sigma* is undecidable — and that’s about the simplest
    description of a CFL one might imagine. Another undecidable question is whether
    two context free grammars A and B define the same language, which doesn’t bode well
    for the more general question of whether a grammar and some other alternate presentation define the same language.

    In specific cases, such questions may be decidable — fortunately for formal language theory students! But in light of the above decidability results, you’re not going to find
    a simple algorithm that gets you from a grammar, to a concise description of the sort usually presented in language theory textbooks. It’s more of a trial and error process, where
    you use some intuition to think up a candidate description, then apply the more formal methods like building parse trees, or using closure properties or pumping lemmas, to prove or disprove the equivalence.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an algorithm that generates all strings from a given context-free grammar?
I've inserted the given context free grammar into the database using assert(....) If the
How can I convert some regular language to its equivalent Context Free Grammar? Is
Is there any Grammar editor utility for context-free grammars developed in Java?
I'm designing a context-free grammar to generate this language: { w in {a,b}* |
I'd like to parse a CSV using context free grammar. I arleady have an
I have a problem with the following language: I must write a context-free grammar:
If I have a Context-Free Grammar G such that the language of G is
How to define a grammar (context-free) for a new programming language (imperative programming language)
How can I prove that the language L={w|#a(w)=#b(w)=#c(w)} is not context free using closure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.