Find a regular expression to describe:
The set of all strings over the alphabet {a, b,...
Find a regular expression to describe:
The set of all strings over the alphabet {a, b, c, d}
that contain exactly one a and exactly one b
So, for example, the following strings are in this
language:
ab, ba, cccbad, acbd, cabddddd, ddbdddacccc
and the following strings are NOT in this
language:
a, ccbc, acbcaaacba, acacac, bcbbbbbca, aca, c, d,
b
We have a triangle ABC. a=|BC|, b=|CA|, c=|AB| and ∠A=v , ∠B=r ,
and ∠C=z
Calculate...
We have a triangle ABC. a=|BC|, b=|CA|, c=|AB| and ∠A=v , ∠B=r ,
and ∠C=z
Calculate c, if we know that ∠C is acute and a=8, b=3 and sin (z) =
1/7
String splitting problem in C
A string like
GGB[BD]GB[DC,BD]WGB[BD]B[DC]B[BD]WB[CK,JC,DC,CA,BC]B[FB,EB,BD,BC,AB]
How do I split it to get...
String splitting problem in C
A string like
GGB[BD]GB[DC,BD]WGB[BD]B[DC]B[BD]WB[CK,JC,DC,CA,BC]B[FB,EB,BD,BC,AB]
How do I split it to get only whats inside the bracket with
C?
so i would get BD, DC, BD, BD,DC,BD, CK, JC, DC, CA, BC, FB, EB,
BD, BC, AB
and then get rid of duplicate
and get BD, DC, CK, JC, CA, BC, FB, EB, AB
For each of the following regular expressions, give 2 examples
of strings that are in the...
For each of the following regular expressions, give 2 examples
of strings that are in the language described by the regular
expression, and 2 examples of strings that are not in that
language. In all cases the alphabet is {a,b}.
ab*ba*
(a ∪ ε)b*
(a ∪ b)ε*(aa ∪ bb)
Consider mini-alphabet made of just letters {a, b, c, d, e}. How
many “words” (i.e., strings...
Consider mini-alphabet made of just letters {a, b, c, d, e}. How
many “words” (i.e., strings of letters from that alphabet, whether
they correspond to meaningful words or not) are there of length n,
for n≥1 ? Use mathematical induction to prove your answer.
Please answer True or False on the following:
1. Let L be a set of strings...
Please answer True or False on the following:
1. Let L be a set of strings over the alphabet Σ = { a, b }. If
L is infinite, then L* must be infinite (L* is the Kleene closure
of L)
2. Let L be a set of strings over the alphabet Σ = { a, b }. Let
! L denote the complement of L. If L is finite, then ! L must be
infinite.
3. Let L be...