subject
Computers and Technology, 13.11.2019 19:31 goofy44

This assignment must be submitted on gradescope. for part i, you must submit a zip folder with jflap files for problem 1 clearly labelled (e. g., 1a. jff). for part ii, you must submit answers for problems 2, 3, and 4. handwritten answers are allowed as long as they are legible. answers typed in latex or word are preferred. each problem must be clearly labelled and answered on a separate page. a 5-point penalty will be applied to submissions that do not follow these guidelines. for more instructions on how to submit assignments on gradescope see this guide. late submissions will be accepted within 0-12 hours after the deadline with a 5-point penalty and within 12-24 hours after the deadline with a 20-point penalty. no late submissions will be accepted more than 24 hours after the deadline. this assignment is individual. offering or receiving any kind of unauthorized or unacknowledged assistance is a violation of the university's academic integrity policies, will result in a grade of zero for the assignment, and will be subject to disciplinary action. part i: turing machines (30 pt.) 1. (30 pt., 10 pt. each) construct a turing machine in jflap (version 7.1) that decides each of the following languages. for each language, you must submit one jflap file clearly labelled (e. g., 1a. jff). note: there is no explicit reject state for turing machines in jflap. we assume that there is a transition to the reject state whenever a state is missing a transition for a particular symbol. a. a = {0"1" m is a multiple of n} b. b = {w e {0,1}' l w does not have the same number of o's and 1's c. c = {w#w#ww€ {0,1}} part ii: proofs (70 pt.) 2. (20 pt.) prove that the following language is not context-free using the pumping lemma: d = {a"bºck | n, m, k 0 and m s min(n, k)} hint: min(n, k) is a function that returns the minimum value out of n and k.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
File account.java (see previous exercise) contains a definition for a simple bank account class with methods to withdraw, deposit, get the balance and account number, and return a string representation. note that the constructor for this class creates a random account number. save this class to your directory and study it to see how it works. then write the following additional code: 1. suppose the bank wants to keep track of how many accounts exist. a. declare a private static integer variable numaccounts to hold this value. like all instance and static variables, it will be initialized (to 0, since it’s an int) automatically. b. add code to the constructor to increment this variable every time an account is created. c. add a static method getnumaccounts that returns the total number of accounts. think about why this method should be static - its information is not related to any particular account. d. file testaccounts1.java contains a simple program that creates the specified number of bank accounts then uses the getnumaccounts method to find how many accounts were created. save it to your directory, then use it to test your modified account class.
Answers: 3
You know the right answer?
This assignment must be submitted on gradescope. for part i, you must submit a zip folder with jflap...
Questions
question
Mathematics, 17.06.2021 20:00
question
Biology, 17.06.2021 20:00
question
Mathematics, 17.06.2021 20:00
question
Mathematics, 17.06.2021 20:00
Questions on the website: 13722362