Generating sets based on a recursive language definition

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'?
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Back
Top