Here I am assuming - is start state and + is final state.
(i) First FA will accept all strings that ends with a and are of odd length. Because if even length then for any input it will come back to initial state.
(ii) This is an extension of first case.Since for any input from start state it will come to middle state, So this FA will accept strings of even length and ending with a.
(iii) Since in second state if b is input then it will go to state where FA will stuck.Hence second input must be a.
FA will accept string of type ( e a (e a)n ) where e can be either a or b.
So FA will accept (e a )n+1 where e can be either a or b.
7. Describe in English the languages accepted by the following FAs: (9 points) a, b a,...
given ∑ = {a,b}: 1. describe in English the languages denoted by the regular expression: (a+b)*b(a+b)* 2. Write a regular expression: L(w) = {w | w has exactly a single substring abaa or exactly a single substring babb} 3. Write a regular expression for the following language: L(w) = {w | w ends in bb and does contain the substring aba}
Find regular expressions for the languages accepted by the
following automata(b and c)
(b) (c)
(9) For each of the following languages L, give a simple English description. Show two strings that are in L and two that are not (unless there are fewer than two strings in L or two not in L, in which case show as many as possible). • L = {ω ∈ {a,b}∗| exactly one prefix of ω ends in a }. • L = {ω ∈ {a,b}∗| all prefixes of ω end in a }. • L = {ω...
Find regular expressions for the
languages accepted by the following automata.
Find regular expressions for the languages accepted by the following automata.
Consider the two FAs
(a) Using the algorithm of Kleene’s theorem, Lemma 3, Rule 3,
construct an FA for the product language FA1FA2.
(b) Describe (in English phrases) the language L1L2 (the
language accepted by your answer to part a).
(c) Give an example of a word of length at least 5 that is not
in the language L1L2.
b 4 y
A linguistics professor surveys her class to find out which of the following languages are spoken in the homes of her 25 students: English, Spanish, and Cherokee. English is spoken in the homes of all but 1 of the students, and all three languages are spoken in 2 of the homes. Furthermore, 13 students report that Spanish is spoken at home and 5 report that Cherokee is spoken at home. Finally, suppose we know that exactly two languages are spoken...
(1) A linguistics professor surveys her class to find out which of the following languages are spoken in the homes of her 25 students: English, Spanish, and Cherokee. English is spoken in the homes of all but 1 of the students, and all three languages are spoken in 2 of the homes. Furthermore, 13 students report that Spanish is spoken at home and 5 report that Cherokee is spoken at home. Finally, suppose we know that exactly two languages are...
please describe ur answer
7. (8 points each) Evaluate the following. (a) dr. (b) lim 7-10 In(10.12 +2+1) 2.1 sin's coser 8. (9 points) Find the solution of cos I)} = (sin I Cosz)y if y(0) = 1.
Regular expressions, DFA, NFA, grammars, languages
Regular Languages 4 4 1. Write English descriptions for the languages generated by the following regular expressions: (a) (01... 9|A|B|C|D|E|F)+(2X) (b) (ab)*(a|ble) 2. Write regular expressions for each of the following. (a) All strings of lowercase letters that begin and end in a. (b) All strings of digits that contain no leading zeros. (c) All strings of digits that represent even numbers. (d) Strings over the alphabet {a,b,c} with an even number of a's....