Changes to JFLAP to Increase Its Use in Courses Susan H. Rodger Duke University ITiCSE 2011 Darmstadt, Germany June 29, 2011 NSF Grants.

Slides:



Advertisements
Similar presentations
Nondeterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.3 & 2.5)
Advertisements

Theory Of Automata By Dr. MM Alam
Decidable languages Sipser 4.1 (pages ). CS 311 Mount Holyoke College 2 Hierarchy of languages All languages Turing-recognizable Turing-decidable.
Applied Computer Science II Chapter 2 : Context-free languages Prof. Dr. Luc De Raedt Institut für Informatik Albert-Ludwigs Universität Freiburg Germany.
January 14, 2015CS21 Lecture 51 CS21 Decidability and Tractability Lecture 5 January 14, 2015.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
1 CSCI 3130: Formal Languages and Automata Theory Tutorial 4 Hung Chun Ho Office: SHB 1026 Department of Computer Science & Engineering.
1 Non-Deterministic Automata Regular Expressions.
January 23, 2015CS21 Lecture 81 CS21 Decidability and Tractability Lecture 8 January 23, 2015.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 The Pumping Lemma for Context-Free Languages. 2 Take an infinite context-free language Example: Generates an infinite number of different strings.
MATLAB objects using nested functions MathWorks Compiler Course – Day 2.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
An Interactive Approach to Formal Languages and Automata with JFLAP
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Computer Science Concepts Come Alive Susan H. Rodger Duke University Haverford College Philadelphia, PA April 18, 2010 Supported by.
Concepts Come Alive through Visualization and Interaction University of Wisconsin Oshkosh July 16-17, 2009 Susan Rodger Professor of the Practice Duke.
Increasing Engagement in Automata Theory with JFLAP Susan H. Rodger Duke University Visual Thinking Workshop – Duke University May 4,
Increasing Engagement in Automata Theory with JFLAP Susan H. Rodger Duke University SIGCSE 2009 March 7, 2009 Supported by NSF Grant.
Nondeterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.3 & 2.5)
An Interactive and Visual Approach to Learning Computer Science Susan H. Rodger Department of Computer Science Duke University November 30, 2004 This work.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
Teaching Strategies and Learning Styles CRA-W Workshop Feb 23, 2005 Susan Rodger Associate Professor of the Practice Duke University
An Interactive Approach to Formal Languages and Automata with JFLAP Susan H. Rodger Duke University NSF CCLI Showcase March 9, 2007 Supported by NSF Grant.
Computer Science Concepts Come Alive Susan H. Rodger Duke University February 20, 2007.
Jianguo Lu : regular expression and automata.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 11 Midterm Exam 2 -Context-Free Languages Mälardalen University 2005.
Increasing Interaction and Support in the Formal Languages and Automata Theory Course Susan H. Rodger Duke University ITiCSE 2007 June 25, 2007 Supported.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 6 Mälardalen University 2010.
Increasing the Use of JFLAP in Courses Susan H. Rodger Duke University Durham, NC USA Program Visualization Workshop June 30, 2011 NSF.
Saeid Pashzadeh Jan 2009 Theory of Computation 1.
Pushdown Automata Chapters Generators vs. Recognizers For Regular Languages: –regular expressions are generators –FAs are recognizers For Context-free.
Decidable languages Section 4.1 CSC 4170 Theory of Computation.
Review for final pm. 2 Review for Midterm Induction – On integer: HW1, Ex 2.2.9b p54 – On length of string: Ex p53, HW2, HW3.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 9 Mälardalen University 2006.
CSCI 3130: Formal languages and automata theory Tutorial 3 Chin.
Theory of Computing CSCI 356/541 Lab Session. Outline Lab 1: Finite Automata  Construct and Run Construct and Run  Manipulating Transitions Manipulating.
CS130: Theory of Computation An introductory course on the theory of automata and formal languages: models of machines, languages and grammars, relationship.
Formal Languages, Automata and Models of Computation
Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Chapter 2 Context-Free Languages Some slides are in courtesy.
CS 154 Formal Languages and Computability February 11 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 8 Mälardalen University 2011.
CSCI 3130: Formal languages and automata theory Andrej Bogdanov The Chinese University of Hong Kong Decidable.
CS 154 Formal Languages and Computability May 12 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
Theory of Computation. Introduction to The Course Lectures: Room ( Sun. & Tue.: 8 am – 9:30 am) Instructor: Dr. Ayman Srour (Ph.D. in Computer Science).
2016/7/9Page 1 Lecture 11: Semester Review COMP3100 Dept. Computer Science and Technology United International College.
Topic 3: Automata Theory 1. OutlineOutline Finite state machine, Regular expressions, DFA, NDFA, and their equivalence, Grammars and Chomsky hierarchy.
Review : Theory of Computation. Regular Language and Finite Automata Context-free Language and Pushdown Automata Turing Machine and Recursive Enumerable.
6. Pushdown Automata CIS Automata and Formal Languages – Pei Wang.
Closed book, closed notes
50/50 rule You need to get 50% from tests, AND
Review : Theory of Computation
Linear Bounded Automata LBAs
CSCE 355 Foundations of Computation
PDAs Accept Context-Free Languages
Non-Context-Free Languages Sections: 2.3 page 123 October 17, 2008
An Interactive Approach to Formal Languages and Automata with JFLAP
Non Deterministic Automata
Context-Free Languages
Deterministic PDAs - DPDAs
Department of Computer Science & Engineering
CS21 Decidability and Tractability
Decidability and Tractability
LR(1) grammars The Chinese University of Hong Kong Fall 2011
Pushdown automata The Chinese University of Hong Kong Fall 2011
Sub: Theoretical Foundations of Computer Sciences
Theoretical Foundations of Computer Sciences
Review for the Midterm. Overview (Chapter 1):
CFL Big Picture.
Presentation transcript:

Changes to JFLAP to Increase Its Use in Courses Susan H. Rodger Duke University ITiCSE 2011 Darmstadt, Germany June 29, 2011 NSF Grants CCLI and TUES

Co-Authors Henry Qin Jonathan Su

Overview of JFLAP Java Formal Languages and Automata Package Instructional tool to learn concepts of Formal Languages and Automata Theory Topics: – Regular Languages – Context-Free Languages – Recursively Enumerable Languages – Lsystems With JFLAP your creations come to life!

JFLAP – Regular Languages Create – DFA and NFA – Moore and Mealy – regular grammar – regular expression Conversions – NFA to DFA to minimal DFA – NFA  regular expression – NFA  regular grammar

JFLAP – Regular languages (more) Simulate DFA and NFA – Step with Closure or Step by State – Fast Run – Multiple Run Combine two DFA Compare Equivalence Brute Force Parser Pumping Lemma

JFLAP – Context-free Languages Create – Nondeterministic PDA – Context-free grammar – Pumping Lemma Transform – PDA  CFG – CFG  PDA (LL & SLR parser) – CFG  CNF – CFG  Parse table (LL and SLR) – CFG  Brute Force Parser

JFLAP – Recursively Enumerable Languages Create – Turing Machine (1-Tape) – Turing Machine (multi-tape) – Building Blocks – Unrestricted grammar Parsing – Unrestricted grammar with brute force parser

JFLAP - L-Systems This L-System renders as a tree that grows larger with each successive derivation step.

JFLAP’s Use Around the World JFLAP web page has over 300,000 hits since 1996 Google Search – JFLAP appears on over 9830 web pages – Note: search only public web pages JFLAP been downloaded in over 160 countries

JFLAP Demos

DFA new features Here is a simple DFA New features: – Added trap state – Curved two of the transitions

Example: Build an NFA for valid integers Example: – Valid integers {-3, 8, 0, 456, 13, 500, …} – Not valid: {006, 3-6, 4.5, …}

Example: NFA for all valid integers

NFA annotated and shortcut New feature: [1-9] on labels

Example : NPDA NPDA for palindromes of even length New feature: asks for multi-char or single char for labels

Example (cont) Run input strings on the NPDA – Shows the nondeterminism

Example Unrestricted Grammar - anbncn

Trace aabbcc

JFLAP Materials JFLAP online tutorial JFLAP book Use with automata theory textbook JFLAP works well with Linz book CD supplement with JFLAP exercises to go with this book JFLAP is FREE

Questions?