Proceedings

Automated Grading of DFA Constructions

Download BibTeX Cite

Proceedings of the Twenty-Third International Joint Conference on Artificial Intelligence. Pages 1976-1981.

© 2013 International Joint Conferences on Artificial Intelligence

Abstract

One challenge in making online education more effective is to develop automatic grading software that can provide meaningful feedback. This paper provides a solution to automatic grading of the standard computation-theory problem that asks a student to construct a deterministic finite automaton (DFA) from the given description of its language. We focus on how to assign partial grades for incorrect answers. Each student's answer is compared to the correct DFA using a hybrid of three techniques devised to capture different classes of errors. First, in an attempt to catch syntactic mistakes, we compute the edit distance between the two DFA descriptions. Second, we consider the entropy of the symmetric difference of the languages of the two DFAs, and compute a score that estimates the fraction of the number of strings on which the student answer is wrong. Our third technique is aimed at capturing mistakes in reading of the problem description. For this purpose, we consider a description language Mosel, which adds syntactic sugar to the classical Monadic Second Order Logic, and allows defining regular languages in a concise and natural way. We provide algorithms, along with optimizations, for transforming Mosel descriptions into DFAs and vice-versa. These allow us to compute the syntactic edit distance of the incorrect answer from the correct one in terms of their logical representations. We report an experimental study that evaluates hundreds of answers submitted by (real) students by comparing grades/feedback computed by our tool with human graders. Our conclusion is that the tool is able to assign partial grades in a meaningful way, and should be preferred over the human graders for both scalability and consistency.

  1. [Adam and Laurent, 1980] Anne Adam and Jean-Pierre H. Laurent. Laura, a system to debug student programs. Ar- tificial Intelligence, 15(1-2):75-122, 1980.
  2. Alur et al., ] Rajeev Alur, Loris D'Antoni, Sumit Gulwani, Dileep Kini, and Mahesh Viswanathan. Automated grading of dfa constructions, full version. http://www.cis.upenn.edu/ loris- dan/papers/ijcai13long.pdf. Link
  3. [Aut, 2010] Automata Tutor. http://pub.ist.ac.at/automata tutor/, 2010. Link
  4. [Benedikt et al., 2011] Michael Benedikt, Gabriele Puppis, and Cristian Riveros. Regular repair of specifications. In Proceedings of the 2011 IEEE 26th Annual Symposium on Logic in Computer Science, pages 335-344, Washington, DC, USA, 2011. IEEE Computer Society.
  5. [Bille, 2005] Philip Bille. A survey on tree edit distance and related problems. Theor. Comput. Sci., 337(1-3):217-239, June 2005.
  6. [Bodirsky et al., 2004] Manuel Bodirsky, Tobias Grtner, Timo von Oertzen, and Jan Schwinghammer. Effciently computing the density of regular languages. In Martin Farach-Colton, editor, In Proceedings of the 6th Latin American Symposium, Buenos Aires, Argentina, 2004, vol- ume 2976 of Lecture Notes in Computer Science, pages 262-270. Springer, 2004.
  7. [Büchi and Landweber, 1969] J. Richard Büchi and Lawrence H. Landweber. Definability in the monadic second-order theory of successor. Journal of Symbolic Logic, 34(2):166-170, 1969.
  8. [Gao et al., 2010] Xinbo Gao, Bing Xiao, Dacheng Tao, and Xuelong Li. A survey of graph edit distance. Pattern Anal- ysis and Applications, 13(1):113-129, January 2010.
  9. [Henriksen et al., 1995] Jesper G. Henriksen, Ole J.L. Jensen, Michael E. Jrgensen, Nils Klarlund, Robert Paige, Theis Rauhe, and Anders B. Sandholm. Mona: Monadic second-order logic in practice. In Tools and Algorithms for the Construction and Analysis of Systems, First Inter- national Workshop, LNCS 1019. Springer-Verlag, 1995.
  10. [Hopcroft et al., 2006] John E. Hopcroft, Rajeev Motwani, and Jeffrey D. Ullman. Introduction to Automata The- ory, Languages, and Computation (3rd Edition). Addison- Wesley Longman Publishing Co., Inc., Boston, MA, USA, 2006.
  11. [Kozik, 2005] Jakub Kozik. Conditional densities of regu- lar languages. Electronic Notes in Theoretical Computer Science, 140:67-79, November 2005.
  12. [Murray, 1987] William R. Murray. Automatic program de- bugging for intelligent tutoring systems. Computational Intelligence, 3:1-16, 1987.
  13. [Rodger and Finley, 2006] Susan H. Rodger and Thomas Finley. JFLAP -An Interactive Formal Languages and Automata Package. Jones and Bartlett, 2006.
  14. [Singh et al., 2013] Rishabh Singh, Sumit Gulwani, and Ar- mando Solar-Lezama. Automated feedback generation for introductory programming assignments. 2013.
  15. [Sipser, 1996] Michael Sipser. Introduction to the Theory of Computation. International Thomson Publishing, 1st edi- tion, 1996.
  16. [Thomas, 1996] Wolfgang Thomas. Languages, automata, and logic. In Handbook of Formal Languages, pages 389- 455. Springer, 1996.
  17. [Veanes and Bjørner, 2012] Margus Veanes and Nikolaj Bjørner. Symbolic automata: the toolkit. In Proceedings of the 18th international conference on Tools and Algorithms for the Construction and Analysis of Systems, pages 472- 477, Berlin, Heidelberg, 2012. Springer-Verlag.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards