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
Design deterministic finite automata for each of the following
sets:
1) The set of strings x...
Design deterministic finite automata for each of the following
sets:
1) The set of strings x ε {0, 1}* such that
#0(x) is even and #1(x) is a multiple of
three.
2) The set of all strings in {1, 2, 3}* containing 231 as
substring.
3) The set of strings in (a)* whose length is divisible by
either 2 or 7.
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)
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)
1. All questions assume the alphabet Σ = { a , b }.
a) List the...
1. All questions assume the alphabet Σ = { a , b }.
a) List the first 10 strings in canonical order of the
language in question b above (even number of a's or odd
number of b's, where the a's and b's can
occur in any order).
b) List the first 10 strings in canonical order of the language
in question c above (ambn).