subject

Purpose: To model a DFA (Deterministic Finite Automaton) and use it to accept strings of the associated language. Input: The program should take the DFA description from a text file that is specified as a command line parameter. If this parameter is missing, the user should be prompted for the data file. Strings to be tested for inclusion in the language should be entered interactively by the user.
Output: For each string being tested, the program should indicate whether or not the string is accepted.
DFA input format: line 1: alphabet - eg. {0,1}
line 2: states - eg. {a, b,c, d,e}
line 3: start state - eg. a
line 4: accept states - eg. {d, e}
lines 5-: transition fn - eg. (a,0)->b (a,1)->c etc
Notes: • Assume no spaces in input. • Alphabet must at least allow {0,1}. Please feel free to expand this. • States must at least allow lower case letters, but you are welcome to expand this to numerals and upper case letters. • Transition functions may appear in any order in the input text file. End of the input file indicates the end of transition functions. • Name the source code file Dfa. java.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:00
In the context of the box model, what is the difference between a margin and a padding? a. a padding lies outside a box border, while a margin lies inside it. b. a padding lies inside a box border, while a margin lies outside it. c. a padding can be adjusted independently, while a margin depends on the size of its box. d. a padding depends on the size of its box, while a margin can be adjusted independently.
Answers: 3
question
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
You know the right answer?
Purpose: To model a DFA (Deterministic Finite Automaton) and use it to accept strings of the associa...
Questions
question
Mathematics, 27.07.2019 01:00
question
Spanish, 27.07.2019 01:00
question
Chemistry, 27.07.2019 01:00
Questions on the website: 13722363