8/29 - Languages Flashcards

1
Q

Let A and B be two languages over the same alphabet.

What is the union of A and B defined as?

A

The union of A and B is defined as

A ∪ B = {w: w ∈ A or w ∈ B}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Let A and B be two languages over the same alphabet.

What is the concatenation of A and B defined as?

A

AB = {ww′ : w ∈ A and w′ ∈ B}.
In words, AB is the set of all strings obtained by taking an arbitrary string w in A and an arbitrary string w′ in B, and gluing them together (such that w is to the left of w′).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Let A and B be two languages over the same alphabet.

What is the star of A defined as?

A

A^∗ = {u1u2 … uk : k ≥ 0 and ui ∈A for all i=1, 2,…,k}.
In words, A^∗ is obtained by taking any finite number of strings in A, and gluing them together. Observe that k = 0 is allowed; this corresponds to the empty string Ee. Thus, Ee ∈ A^∗.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Star in the language of A (A^*)

A
Define A^0 = {Ee},
and, for k ≥ 1,
A^k = AA^(k-1),
i.e., A^k is the concatenation of the two languages A and A^(k−1). Then we have
A^∗ = (inf//U//k=0) A^k.
// means on top of (visual description)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly