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 2011 Publication 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.
[2]
T. Ball and S. G. Eick. Software visualization in the large. Computer, 29:33--43, April 1996.
[3]
M. H. Brown. Algorithm Animation. MIT Press, Cambridge, Massachussets, 1988.
[4]
S. Diehl. Software Visualization: Visualizing the Structure, Behaviour, and Evolution of Software. Springer-Verlag New York, Inc., Secaucus, NJ, USA, 2007.
[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.
[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.
[7]
C. L. Forgy. Rete: A fast algorithm for the many pattern/many object pattern match problem. Artificial Intelligence, 19(1):17--37, 1982.
[8]
C. Grant. Software Visualization in Prolog. PhD thesis, University of Zurich, 2001.
[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.
[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.
[11]
R. Mazza. Introduction to Information Visualization. Springer, London, 2009.
[12]
L. Mondshein, A. Sattar, and T. Lorenzen. Visualizing prolog: a "jigsaw puzzle" approach. ACM Inroads, 1:43--48, December 2010.
[13]
B. A. Myers. Taxonomies of visual programming and program visualization. Journal of Visual Languages & Computing, 1(1):97--123, 1990.
[14]
S. J. Russell and P. Norvig. Artificial Intelligence: a modern approach. Prentice Hall, 2nd international edition edition, 2003.
[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.
[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.
[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.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

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
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]

Sponsors

  • ACM SIGCHI CHINA
  • CCF: China Computer Federation

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 04 August 2011

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Rete
  2. inference visualization
  3. software visualization

Qualifiers

  • Research-article

Funding Sources

Conference

VINCI '11
Sponsor:
  • CCF

Acceptance Rates

Overall Acceptance Rate 71 of 193 submissions, 37%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)8
  • Downloads (Last 6 weeks)0
Reflects downloads up to 03 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media