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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:43:35+00:00 2026-05-25T19:43:35+00:00

This was a homework assignment problem which I know I have incorrectly answered. I

  • 0

This was a homework assignment problem which I know I have incorrectly answered. I gave:

S -> ''

meaning that S yields the empty string. I know that the empty set and empty string are not the same. According to my professor, the answer is:

S -> S

Now, that answer seems strange to me:

  1. It will never terminate.
  2. It isn’t so much a language as the absence of one.

I understand from a strictly mathematical standpoint, I’m not going to get anywhere with number two. However, is it required for a language to terminate? Having a language that CAN go on forever sounds okay, but one that never will terminate sounds wrong enough that I thought I’d ask if anyone knows if that’s a language requirement or not.

  • 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-25T19:43:36+00:00Added an answer on May 25, 2026 at 7:43 pm

    From the Formal Grammar Wikipedia page:

    the language of G, denoted as L(G), is defined as all those sentences that can be derived in a finite number of steps from the start symbol S.

    Starting with S, applying the production rule once to S gives S. Applying the rule twice gives S. By induction, applying the rule any finite number still gives S. Since no sentences can be derived in a finite number of steps, the language is empty, so your professor is correct.

    Alternative ways to define a grammar that accepts the empty set are L(G) = {} (the language is empty) or P = {} (the set of production rules is empty).

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

Sidebar

Related Questions

This is a homework assignment, just for all that want to know. I'm writing
Continuing on this problem , but I'll reiterate: For a homework assignment I have
I'm doing a basic homework assignment which looks like this: While input <> -1
I know this sounds like a homework assignment, but it isn't. Lately I've been
(this is indirectly a part of a much larger homework assignment) I have something
Note: This is a homework assignment. I have two classes, one inherits from the
I want to preface this by saying that this is a homework assignment. I
A recent homework assignment I have received asks us to take expressions which could
We've gotten a homework assignment in Java, which relates to inheritance. I don't have
I have a homework assignment to write a multi-threaded sudoku solver, which finds all

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.