StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

JFLAP Implementation of a DFA - Essay Example

Cite this document
Summary
This essay "JFLAP Implementation of a DFA" presents a JFLAP implementation of a DFA that recognizes this language, and tests it on a suitable set of test data. It does not include screenshots for each test screen, just gives the trace of the DFA's behavior on each…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER98% of users find it useful
JFLAP Implementation of a DFA
Read Text Preview

Extract of sample "JFLAP Implementation of a DFA"

1. Consider the language given by the regular expression a*bc*.
(a) Give a JFLAP implementation of a DFA that recognizes this language, and tests it on a suitable set of test data. (You need not include screenshots for each test screen, just give the trace of the DFA's behavior on each.) (4 marks)

(b) Give a Type 3 grammar for this language and show how it produces those strings in your test data, which are accepted by your DFA. (4 marks)

S => 
=> aA
=> bB
=> bC
=> b
A => bB
=> bC
=> b
B => aA
=> bB
=> bC
C => b
=> aA
=> bB
=> cC
=> b

2. Consider the language {anbcn|n>=1}.
(a) State the pumping lemma for regular languages and use it to show that this language is not regular. (4 marks)

• Assume L={anbcn|n>=1} is a regular language. Then pumping lemma holds.
• Let p be the pumping length for L given by the lemma.
• We choose S=apbcp {in L of length >= p}
• Consider all cases s can be divided into x,y,z such that s=xyz satisfying conditions of the pumping lemma |y| > 0 and |xy| <= p
• For s= a1bc1 ==> s= abic for all i >=0, lets take i=0
s= ab0c ==> s= ac
Therefore, L is not a regular language because s= ac does not satisfy the pumping lemma.

(b) Show that this language is context-free by giving a CFG for this language. (3 marks)

• L = {anbcn|n>=1}
• CFG = {V,{a,b,c},P,S}
• P:
S => abc
S => aSc


The lemma does not satisfy the language as context-free grammar.


3. Consider the language {anb2ncn}.
(a) State the pumping lemma for context-free languages and use it to show that this language is not context-free. (7 marks)
• L= {anb2nc}
• CFG = { V, {a,b,c}, P, S }
P:
S => abbc
S => aSbbc
S => aSbc
• The lemma does not satisfy the language as a context-free grammar.

(b) Give a JFLAP implementation of a Turing Machine that decides this language, and tests it on a suitable set of test data. Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“COMPUTABILITY Essay Example | Topics and Well Written Essays - 500 words”, n.d.)
COMPUTABILITY Essay Example | Topics and Well Written Essays - 500 words. Retrieved from https://studentshare.org/miscellaneous/1527777-computability
(COMPUTABILITY Essay Example | Topics and Well Written Essays - 500 Words)
COMPUTABILITY Essay Example | Topics and Well Written Essays - 500 Words. https://studentshare.org/miscellaneous/1527777-computability.
“COMPUTABILITY Essay Example | Topics and Well Written Essays - 500 Words”, n.d. https://studentshare.org/miscellaneous/1527777-computability.
  • Cited: 0 times

CHECK THESE SAMPLES OF JFLAP Implementation of a DFA

The Lewin's Theory and Different Kinds of Management Models

The case study "The Lewin's Theory and Different Kinds of Management Models" have discussed the various elements of the use of personal power and the implementation of the policies as one of the primary areas of application of the various kinds of theories of change management.... - The major positions had been given a 90 day period by teaching staff, and rapid progress was made in its implementation....
11 Pages (2750 words) Case Study

Important Data Mining Techniquesning

The paper "Important Data Mining Techniques" highlights that information has become a very important asset for almost every organization.... In this scenario, the techniques of data mining could be very helpful in making the best use of this information.... ... ... ... Wal-Mart established its data mining software in the production support infrastructure....
19 Pages (4750 words) Essay

Situational Awareness of Shared Leadership in a Self-Managing Team

The paper "Situational Awareness of Shared Leadership in a Self-Managing Team" focuses on the critical analysis of the context of shared organizational leadership wherein an attempt has been made to determine as to how many degrees of situational awareness has to be exhibited by the leaders.... ... ...
37 Pages (9250 words) Dissertation

Investigation Forensics - How to Find Evidence from Oracle Data Base

According to research findings of the paper 'Investigation Forensics - How to Find Evidence from Oracle Data Base', by analyzing all the functions of a powerful forensic tool named 'Logminer', data can be retrieved to an extent.... Moreover, the forensic tool kit also provides efficient data recovery....
5 Pages (1250 words) Research Paper

Legal Aspects of Terrorism

he project advisory group reviewed the draft survey in December 2003, and their suggestions were incorporated into the survey before the implementation in 2004.... The essay "Legal Aspects of Terrorism" focuses on the critical analysis of the major legal aspects of terrorism.... Within the varying constitutional forums, the word terrorism can begin to seem ambiguous....
5 Pages (1250 words) Essay

Maritime Law and International Port Security

The paper 'Maritime Law and International Port Security' discusses the ISPS Code and its implementation particularly in the UK, the ISP's impact on national law, and other provisions of the UK in order to make its ports and ships more secure.... Let us make an analysis of the Code and its implementation.... ISPS Code and its implementation What is ISPS Code From the beginning of the 1980s the problem of safety at sea has become a subject of constant attention of the international governmental and non-governmental organizations....
18 Pages (4500 words) Essay

Denvor Airport Case

The present study investigates the possible relationship between the planning and resource management capabilities of BAE in installation of an automated baggage handling system and the problems faced by the stakeholders in implementing the project which ended up in a great.... ... ... The focus of the study will be on the role planning and control aspects of the automated baggage handling system project that seem to have contributed greatly towards the failure of the system....
16 Pages (4000 words) Essay

Database Administration Aspects

ake care of the Database design and implementation.... The purpose of this paper "The Role of Database Administration" is to discuss different database administration aspects for a new IT system installed in Pick and Go Company.... PICK and GO supermarket chain in the UAE that provides organic products only....
10 Pages (2500 words) Assignment
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us