Increasing Engagement in Automata Theory with JFLAP Susan H. Rodger Duke University SIGCSE 2009 March 7, 2009 Supported by NSF Grant.

Slides:



Advertisements
Similar presentations
Lecture 23UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 23.
Advertisements

Nondeterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.3 & 2.5)
Theory Of Automata By Dr. MM Alam
Goran Šuković, University of Montenegro 1/21 Compiler Construction Course at University of Montenegro 7 th Workshop on “Software Engineering Education.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture5: Context Free Languages Prof. Amos Israeli.
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.
CS 302: Discrete Math II A Review. An alphabet Σ is a finite set (e.g., Σ = {0,1}) A string over Σ is a finite-length sequence of elements of Σ For x.
1 CSC 3130: Automata theory and formal languages Tutorial 4 KN Hung Office: SHB 1026 Department of Computer Science & Engineering.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 4 Context-free grammars Jan Maluszynski, IDA, 2007
CHAPTER 3 The Church-Turing Thesis
January 12, Compiler Design Hongwei Xi Comp. Sci. Dept. Boston University.
January 19, Compiler Design Hongwei Xi Comp. Sci. Dept. Boston University.
January 14, 2015CS21 Lecture 51 CS21 Decidability and Tractability Lecture 5 January 14, 2015.
CS 490: Automata and Language Theory Daniel Firpo Spring 2003.
Compiler Construction
1 CSCI 3130: Formal Languages and Automata Theory Tutorial 4 Hung Chun Ho Office: SHB 1026 Department of Computer Science & Engineering.
CS 310 – Fall 2006 Pacific University CS310 Variants of Turing Machines Section 3.2 November 8, 2006.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
An Interactive Approach to Formal Languages and Automata with JFLAP
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,
CS 454 Theory of Computation Sonoma State University, Fall 2012 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall.
Nondeterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.3 & 2.5)
CS 390 Introduction to Theoretical Computer Science.
An Interactive and Visual Approach to Learning Computer Science Susan H. Rodger Department of Computer Science Duke University November 30, 2004 This work.
© M. Winter COSC/MATH 4P61 - Theory of Computation COSC/MATH 4P61 Theory of Computation Michael Winter –office: J323 –office hours: Mon & Fri, 10:00am-noon.
CS-5800 Theory of Computation II PROJECT PRESENTATION By Quincy Campbell & Sandeep Ravikanti.
Teaching Strategies and Learning Styles CRA-W Workshop Feb 23, 2005 Susan Rodger Associate Professor of the Practice Duke University
An Innovative Approach with Alice for Attracting K-12 Students to Computing Susan H. Rodger Duke University IBM University Days May 7, 2007 Supported by.
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.
Teaching Strategies and Learning Styles CRA-W Workshop Mar 7, 2007 Susan Rodger Associate Professor of the Practice Duke University
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.
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.
Decidable languages Section 4.1 CSC 4170 Theory of Computation.
Career Path and Passions - So many decisions along the way Susan H. Rodger Professor of the Practice Duke University Nov. 13, 2015 IBM Research Triangle.
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.
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.
SIGCSE 06: NSF Showcase A Visual & Interactive Computability Course Emphasizing Breadth of Automata Rakesh Verma Computer Science Department University.
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
Costas Busch - LSU1 Parsing. Costas Busch - LSU2 Compiler Program File v = 5; if (v>5) x = 12 + v; while (x !=3) { x = x - 3; v = 10; } Add v,v,5.
CS 154 Formal Languages and Computability February 11 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron.
CS 154 Formal Languages and Computability February 11 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron.
C Sc 132 Computing Theory Professor Meiliu Lu Computer Science Department.
Mid-Terms Exam Scope and Introduction. Format Grades: 100 points -> 20% in the final grade Multiple Choice Questions –8 questions, 7 points each Short.
CS 154 Formal Languages and Computability March 8 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
CS416 Compiler Design1. 2 Course Information Instructor : Dr. Ilyas Cicekli –Office: EA504, –Phone: , – Course Web.
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.
CS 154 Formal Languages and Computability March 22 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.
Changes to JFLAP to Increase Its Use in Courses Susan H. Rodger Duke University ITiCSE 2011 Darmstadt, Germany June 29, 2011 NSF Grants.
Review : Theory of Computation. Regular Language and Finite Automata Context-free Language and Pushdown Automata Turing Machine and Recursive Enumerable.
50/50 rule You need to get 50% from tests, AND
Review : Theory of Computation
PDAs Accept Context-Free Languages
CS416 Compiler Design lec00-outline September 19, 2018
An Interactive Approach to Formal Languages and Automata with JFLAP
Parsing Costas Busch - LSU.
CS416 Compiler Design lec00-outline February 23, 2019
Sub: Theoretical Foundations of Computer Sciences
Theoretical Foundations of Computer Sciences
Presentation transcript:

Increasing Engagement in Automata Theory with JFLAP Susan H. Rodger Duke University SIGCSE 2009 March 7, 2009 Supported by NSF Grant DUE

Co-Authors Evaluators - NCSU – Eric Wiebe – Kareem Omar Undergraduates - Duke – Kyung Min Lee – Chris Morgan – Jonathan Su

Outline Introduction and Overview of JFLAP JFLAP Two-year Study and Results New Items in JFLAP – User Control Parser – CYK Parser – Expanding Pumping Lemma – Turing machine to Unrestricted Grammar – Others Conclusions and Future Work

Formal Languages and Automata Theory Traditionally taught – Pencil and paper exercises – No immediate feedback Different – More mathematical than most CS courses – Less hands-on than most CS courses – Programming is in most of their CS courses, not here

Why Develop Tools for Automata? Textual Tabular Visual Interactive

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!

Thanks to Students - Worked on JFLAP and Automata Theory Tools NPDA , C++, Dan Caugherty FLAP , C++, Mark LoSacco, Greg Badros JFLAP , Java version Eric Gramond, Ted Hung, Magda and Octavian Procopiuc Pâté, JeLLRap, Lsys Anna Bilska, Jason Salemme, Lenore Ramm, Alex Karweit, Robyn Geer JFLAP 4.0 – 2003, Thomas Finley, Ryan Cavalcante JFLAP 6.0 – Stephen Reading, Bart Bressler, Jinghui Lim, Chris Morgan, Jason Lee, Jonathan Su Over 17 years!

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.

Students love L-Systems

Other Tools for Automata Turing’s World (Barwise and Etchemendy) Deus Ex Machina (Taylor and Savoiu) Theory of Computing Hypertextbook (Ross) Many others – L-System tools – Compiler tools – Finite State machine tools

JFLAP Study Study of JFLAP’s effectiveness in learning – Two year study – Fourteen Faculty Adopters – Two 2-day faculty Adopter Workshops – June 2005, June 2006 – Collect data and Academic years – Pretest/Posttest – Interviews – Team of three evaluators Eric Weibe – Education Rocky Ross – Computer Science Theory Joe Bergin – Computer Science Tools

Fourteen Faculty Adopter Participants Duke UNC-Chapel Hill Emory Winston-Salem State University United States Naval Academy Rensselaer Polytechnic Institute UC Davis Virginia State University Norfolk State University University of Houston Fayetteville State University University of Richmond San Jose State University Rochester Institute of Technology -small, large - public, private - includes minority institutions

We hoped to show with this learning approach… Students gain a better and deeper understanding of FLA Students are happier and more confident in learning FLA Students are more interested in using the tools on their own Instructors can easily use the tools in class Instructors can easily grade electronic submissions

Goals of the JFLAP Study - Formal Languages and Automata (FLA) Present FLA in a visual and interactive manner in addition to the more traditional approach – Integrated Present Applications of FLA Provide a tool for allowing students to explore FLA in a computational manner Provide Materials for instructors to integrate this approach in their courses

Running a Study is hard! Hit by the drop In enrollments in after dot-com burst IRBs are different process at every institution – One page writeup ok’d (simplest) – Full medical IRB (many pages) One institution shut down all IRB research projects – we could not use data already collected. One University - Control Group – different times means different types of students, different professors. Some faculty came to workshop and did not follow through There were also some fantastic faculty!

Year One Instructor Interviews Used JFLAP in their courses – Primary use in class – demonstrations – Some used it to generate the graphics for their lecture – Extensive use – homeworks – includes electronic submission – One used it in office hours

Year One – Software Implementation

Years 1 and 2: Usability Survey

Year 2 – Implementation Survey

Year 2 – Usability Survey

New Items in JFLAP User-Control Parser (UCP) – Allows for more exploration

UCP – select rule, select variable, Step

UCP – final parse tree

CYK Parser Cocke-Younger-Kasami (CYK) How it works in JFLAP – Internally, convert to CNF grammar – Then map back to original grammar

CYK – substantially faster than Brute Force Parser for many grammars Brute Force Parser 8 secs CYK parser 1 sec

Pumping Lemma Game – Linz Book

t ww^R

Turing Machine to Unrestricted Grammar

Other New Items Can automatically add a trap state Additional graph layout choices Can load an input string from a file – This is useful for universal Turing machine Online JFLAP Tutorial JFLAP wiki and listserv

Getting interaction into the automata theory course…… There are lots of ways to get interaction in this course…

Students Work in Groups to Solve Problems – With or W/out JFLAP Lecture some, then stop Students work on problem with JFLAP Bring students back together

Interaction in Class – Props Edible Turing Machine TM for f(x)=2x where x is unary TM is not correct, can you fix it? Then eat it! States are blueberry muffins

Students building DFA with cookies and icing

JFLAP’s Use Around the World JFLAP web page has over 200,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

Conclusions From Study Results of Study showed – All the faculty used JFLAP in their courses, mostly for homework, some in lecture – Students had a high opinion of JFLAP – Majority of students felt access to JFLAP Made learning course concepts easier Made them feel more engaged Made the course more enjoyable – Over half the students used JFLAP to study for exams – Over half the student thought time and effort using JFLAP helped them get a better grade.

Resources/Questions? JFLAP tutorial JFLAP works well with Linz book New CD supplement with JFLAP exercises to go with this book JFLAP book