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, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
You have been supporting csm tech publishing's windows server 2016 server network for over a year. the office has two windows server 2016 servers running active directory and a number of other roles. management has informed you that a small sales office is opening in the same building three floors up. the sales manager wants to install a sales application on a server located in the sales office. this server will have limited physical security because there's no special room dedicated for it, which means it will be accessible to non-it personnel and visitors. you're considering installing windows server 2016 server core on the new server because accessing its console regularly probably won't be necessary, and this server will be managed from one of the other csm tech publishing servers. what are the benefits and drawbacks of using server core for this branch office? what are some things you should do to set up this server management environment?
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
You know the right answer?
Purpose: To model a DFA (Deterministic Finite Automaton) and use it to accept strings of the associa...
Questions
question
English, 03.12.2020 16:50
question
Computers and Technology, 03.12.2020 16:50
question
Mathematics, 03.12.2020 16:50
question
Arts, 03.12.2020 16:50
Questions on the website: 13722359