skip to main content
10.1145/2016656.2016666acmotherconferencesArticle/Chapter ViewAbstractPublication PagesvinciConference Proceedingsconference-collections
research-article

Visualizing inference process of a rule engine

Published:04 August 2011Publication History

ABSTRACT

In this paper, we introduce an approach to visualize the inference process in a rule engine -- Drools, which employs Rete as its pattern matching algorithm. As a software visualization work, our approach is focused on both static structure of the Rete network and dynamic behavior of the inference process. Since logic programming is distinct from other traditional programming paradigms, our approach is also different from traditional program/algorithm visualization methods. In this paper, we first introduce the target we choose to visualize, and then provide a description of the problem and our visualization approach. Finally, with an implementation and an interesting case -- sudoku solving, we show that the visualization work is helpful to understanding not only the Rete algorithm, but also the rules used in the inference. Besides, our work supports debugging, tracing and analyzing the rule engine, which is useful in finding errors and optimization.

References

  1. Y. Adachi. Prolog visualization system using logichart diagrams. CoRR, abs/0903.2207, 2009.Google ScholarGoogle Scholar
  2. T. Ball and S. G. Eick. Software visualization in the large. Computer, 29:33--43, April 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. M. H. Brown. Algorithm Animation. MIT Press, Cambridge, Massachussets, 1988.Google ScholarGoogle Scholar
  4. S. Diehl. Software Visualization: Visualizing the Structure, Behaviour, and Evolution of Software. Springer-Verlag New York, Inc., Secaucus, NJ, USA, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. S. G. Eick, J. L. Steffen, and E. E. Sumner, Jr. Seesoft-a tool for visualizing line oriented software statistics. IEEE Trans. Softw. Eng., 18:957--968, November 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. J. Flower and G. Stapleton. Automated theorem proving with spider diagrams. Electronic Notes in Theoretical Computer Science, 91:246--263, 2004. Proceedings of Computing: The Australasian Theory Symposium (CATS) 2004.Google ScholarGoogle ScholarCross RefCross Ref
  7. C. L. Forgy. Rete: A fast algorithm for the many pattern/many object pattern match problem. Artificial Intelligence, 19(1):17--37, 1982.Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. C. Grant. Software Visualization in Prolog. PhD thesis, University of Zurich, 2001.Google ScholarGoogle Scholar
  9. S. Grissom, M. F. McNally, and T. Naps. Algorithm visualization in cs education: comparing levels of student engagement. In Proceedings of the 2003 ACM symposium on Software visualization, SoftVis '03, pages 87--94, New York, NY, USA, 2003. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. A. Marcus, L. Feng, and J. I. Maletic. 3d representations for software visualization. In Proceedings of the 2003 ACM symposium on Software visualization, SoftVis '03, pages 27--ff, New York, NY, USA, 2003. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. R. Mazza. Introduction to Information Visualization. Springer, London, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. L. Mondshein, A. Sattar, and T. Lorenzen. Visualizing prolog: a "jigsaw puzzle" approach. ACM Inroads, 1:43--48, December 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. B. A. Myers. Taxonomies of visual programming and program visualization. Journal of Visual Languages & Computing, 1(1):97--123, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. S. J. Russell and P. Norvig. Artificial Intelligence: a modern approach. Prentice Hall, 2nd international edition edition, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. C. A. Shaffer, M. Cooper, and S. H. Edwards. Algorithm visualization: a report on the state of the field. In Proceedings of the 38th SIGCSE technical symposium on Computer science education, SIGCSE '07, pages 150--154, New York, NY, USA, 2007. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. C. A. Shaffer, M. L. Cooper, A. J. D. Alon, M. Akbar, M. Stewart, S. Ponce, and S. H. Edwards. Algorithm visualization: The state of the field. Trans. Comput. Educ., 10:9:1--9:22, August 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. J. Stasko, J. Domingue, M. H. Brown, and B. A. Price, editors. Software Visualization: Programming as a Multimedia Experience. MIT Press, Cambridge, MA, 1998.Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Visualizing inference process of a rule engine

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in
          • Published in

            cover image ACM Other conferences
            VINCI '11: Proceedings of the 2011 Visual Information Communication - International Symposium
            August 2011
            146 pages
            ISBN:9781450307864
            DOI:10.1145/2016656

            Copyright © 2011 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 4 August 2011

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • research-article

            Acceptance Rates

            Overall Acceptance Rate71of193submissions,37%

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader