Generating sets based on a recursive language definition

Click For Summary
SUMMARY

The discussion revolves around generating sets from a recursive language definition over the alphabet {a, b}. The language L is defined with a basis of λ (the empty string) and a recursive step that adds the string awbb for any string w in L. The participants identify the sets L1, L2, and L3, concluding that L1 = {λ, awbb} and L2 = {λ, awbb, aawbbwbb}. The clarification that 'w' serves as a variable rather than an element of the language is also emphasized.

PREREQUISITES
  • Understanding of recursive language definitions
  • Familiarity with formal language theory
  • Knowledge of set notation and operations
  • Basic concepts of string manipulation in theoretical computer science
NEXT STEPS
  • Study recursive language definitions in formal language theory
  • Explore examples of generating sets from recursive definitions
  • Learn about closure properties in formal languages
  • Investigate the implications of variable notation in language definitions
USEFUL FOR

The discussion is beneficial for students and enthusiasts of theoretical computer science, particularly those studying formal languages, recursion, and set theory.

nuguns
Messages
1
Reaction score
0
I've searched the internet and the forums for any help on this, but I can't seem to find a topic that details what the successive sets will contain. Here is an example question: (I have many HW problems like this, I just don't know where to start)

Let L be the language over {a,b} generated by the following recursive definition
basis: λ ∈ L
recursive step: If w ∈ L then awbb is in L.
closure: A string w ∈ L only if it can be obtained from the basis set by a finite number
of applications of the recursive step.
Part a. Give the sets L1; L2; and L3 generated by the recursive definition. Note that L0 = λ

I get that The alphabet is {a,b}, Lo = the empty string, and if a string w is contained in L, then awbb is in L. But what does that mean for the next couple sets?

I think L1 = {λ ,awbb} and then L2={λ , awbb, aawbbwbb}?

Any help you could offer on this would be appreciated.
 
Physics news on Phys.org
nuguns said:
I think L1 = {λ ,awbb} and then L2={λ , awbb, aawbbwbb}?

.

I'm not an expert on this topic, but I don't think 'w' is intended to be a an element of the language. It is a variable. Since 'a' an element of the language then the rule that mentions 'awbb' allows you to say that 'aabb' is in the language. It also let's you say that 'abbb' is in the language. Is that what you meant by the notation 'awbb'?
 

Similar threads

Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K