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 6929459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:19:15+00:00 2026-05-27T11:19:15+00:00

I believe it is a language that starts with an a and ends with

  • 0

I believe it is a language that starts with an a and ends with a b, but I’m not sure.

G = (V,∑,P,S) where V={A,B,S,T}, ∑={a,b},  
P = { S → ε | T | AB, T → aTb | ε, A → aA | Aaa | ε, B → bB | ε }
  • 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-27T11:19:15+00:00Added an answer on May 27, 2026 at 11:19 am

    Look at the start. For the first substitution, there are three possibilities. If it’s S -> ε, you’re finished. So the language contains the empty word ε. If the first substitution is S -> T, what can happen with T? Simple, T can become either ε or aTb, no other nonterminals can ever become involved, so that production produces the sublanguage (I’ll leave that for you to work out, it’s homework). Finally, what if the first substitution is S -> AB? Looking at the productions starting with A resp. B, the right hand sides con only ever contain one nonterminal, the one you started with and substituting A may add one or two a, substituting B either ends (ε) or adds another b. So which combinations of a and b are reachable? Does ba belong to the language? Why resp. why not?

    Hint: S -> AB -> Aε = A -> aA -> aε = a is valid, so a nonempty word need not end with b.

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

Sidebar

Related Questions

Some googling has led me to believe that C++ is the best language for
I found that a strange behavior on C language recently but no idea why
I always believed that when starting to learn a new programming language programmer must
I believe our problem is that we need to run particular builds on a
I believe I have a simple question.... but for me as beginner, I can't
I believe that I did everything necessary to change my app for ipad (was
I believe that one needs to buy a license(?) to use devexpress. I'm currently
I believe this is a fairly simple question but I have no idea where
I have what I believe to be an embarrassingly simple problem, but three hours
I believe my problem is in a settings file somewhere, but I have no

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.