Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

creating JFLAP TM as a . jff file ( 1 2 . 5 points / 5 extra credit points for the minimal correct solution. Submit

creating JFLAP TM as a .jff file
(12.5 points/5 extra credit points for the minimal correct solution. Submit your solution as a modifed version of H1-template.jff, submitted with the HW materials).The input to TM M is s$s, where s and s are strings of 1's and 0's. Neither s or s=. If s=
s, the output is s=s. When s and s are interpreted as the binary numbers n and n respectively, with leading zeroes ignored, the output is s+s if n=2*n+1; ss if n> n. A correct implementation of M will have the transducer results
below for the inputs in test_cases.txt, also included with the HW materials.
Input Output Result
101$0101101=0101 Accept
0101$1010101=101 Accept
101$101101=101 Accept
101$01011101+01011 Accept
0101$010110101+01011 Accept
01$01101+011 Accept
0$10+1 Accept
101$11101>11 Accept
10$110>001 Accept
11$1011>10 Accept
01$100110 Accept
1$10110 Accept
11$10111101 Accept
1$10110 Accept
H1-template.jff encodes a partial implementation of M; the only thing missing is the '+'. Enhance
the template to fully implement M. To run the test cases in transducer mode, select Multiple Run
(Transducer) from the Input menu (or type T on a Mac), and then select Load Inputs from the buttons at the bottom of the right panel.
test_case.txt:
101$0101
0101$101
101$101
101$01011
0101$01011
01$011
0$1
101$11
10$1
11$10
01$10
1$10
11$101
1$10
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions

Question

What is paper chromatography?

Answered: 1 week ago

Question

Explain the cost of capital.

Answered: 1 week ago

Question

Define capital structure.

Answered: 1 week ago