Question

Give a Deterministic Finite State Automata that accepts Roman numerals.

Give a Deterministic Finite State Automata that accepts Roman numerals.

Homework Answers

Answer #1
The DFA for strictly ordered Roman numerals is defined below.
Transitions not indicated go to a rejecting state.  All states, except the start state, are final (accepting) states.

    delta(s,C) = C    delta(s,L) = L          delta(s,X) = X
    delta(s,V) = V    delta(s,I) = I
    delva(L,X) = X    delta(L,V) = V          delta(L,I) = I
    delta(X,X) = XX   delta(X,V) = V          delta(X,I) = I
    delta(XX,X) = XXX delta(XX,V) = V         delta(XX,I) = I
    delta(XXX,X) = XXXX delta(XXX,V) = V      delta(XXX,I) = I
    delta(V, I) = I
    delta(I, I) = II  delta(II, I) = III      delta(III, I) = IIII
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Σ = { a, b, c } Create deterministic finite automata with the language of all...
Σ = { a, b, c } Create deterministic finite automata with the language of all strings that … end with 'abc'
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.
1. Define a deterministic finite automaton over the alphabet {a, b} which accepts the set of...
1. Define a deterministic finite automaton over the alphabet {a, b} which accepts the set of all strings that end with the substring ab or ba.
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA in which start and end symbol must be different Design a DFA in which start and end symbol must be same DFA in which every 'a' should be followed by 'b' DFA in which every 'a' should never followed by 'b' DFA in which every 'a' should followed by 'bb' DFA in which every 'a' should never followed by 'bb' DFA for anbm| n,m...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA which accepts strings of odd length Design a DFA over w ∈ {a,b}*such that number of a = 2 and there is no restriction over length of b DFA for Number of a(w) mod 2 = 0 and Number of b(w) mod 2 = 0 DFA for Number of a(w) mod 2 = 0 orNumber of b(w) mod 2 = 0 DFA for Number...
Draw a deterministic finite state machine for the input alphabet A where A = {1, 2,...
Draw a deterministic finite state machine for the input alphabet A where A = {1, 2, 3, 4, 5} that recognises exactly all strings that include the 2 letter string 42 exactly once. For example, the machine will accept the string 54214 but reject the strings 432 and 421421.
Design state transition diagram (finite automata) for the following 1. Key words (else, while, begin, main,...
Design state transition diagram (finite automata) for the following 1. Key words (else, while, begin, main, switch, struct) 2. Identifiers 3. Integers 4. White spaces 5. Phone number 6. Email address 7. Unsigned numbers
Construct a non-deterministic finite state automaton (show the answer in a state machine diagram), where V...
Construct a non-deterministic finite state automaton (show the answer in a state machine diagram), where V = { S, A, B, 0, 1, λ}, T = { 0, 1 }, and G = ( V, T, S, P }, when the set of productions consists of: S → 1A, A → 0B, A → 1, B → 0. S → 0A, S → 1B, S → λ, A → 1A, A → 0, B → 0B, B → 1. S...
The decimal values of the Roman numerals are: M D C L X V I 1000...
The decimal values of the Roman numerals are: M D C L X V I 1000 500 100 50 10 5 1 Remember, a larger numeral preceding a smaller numeral means addition, so LX is 60. A smaller numeral preceding a larger numeral means subtraction, so XL is 40. Assignment: Begin by creating a new project in the IDE of your choice. Your project should contain the following: Write a class romanType. An object of romanType should have the following...
Write a reflective journal on Grammars, Finite Automata (NFA and DFA), PDA, and Turing Machine (TM)...
Write a reflective journal on Grammars, Finite Automata (NFA and DFA), PDA, and Turing Machine (TM) for about one to one and half pages
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT