%0 Journal Article %T 数据结构中串的模式匹配算法演示系统的研究
Research of a Demonstration System for Pattern Matching Algorithms of Strings in Data Structure %A 刘城霞 %A 宋泽昊 %J Software Engineering and Applications %P 578-585 %@ 2325-2278 %D 2023 %I Hans Publishing %R 10.12677/SEA.2023.123056 %X 本文研究了数据结构中的朴素模式匹配算法(BF)和快速模式匹配算法(KMP),并将其算法程序、中间变量、结果展示结合到一起,使用JavaSwing等进行相关图形界面开发,使得在同一界面上,不仅能展示BF算法和KMP算法的代码,并且能够显示字符串模式匹配算法执行过程中每一步的操作流程,还可以随时进行暂停、回退、继续等。该演示系统不仅可以帮助学生快速学习理解字符串模式匹配的原理,还可以有效地提高学生的实践能力,所见即所得地快速上手编程。
This article has studied the naive pattern matching algorithm (BF) and the fast pattern matching algorithm (KMP) in data structures, and combined their algorithm programs, intermediate variables, and result display. Using JavaSwing and other related graphical interface development, it is possible to not only display the code of the BF algorithm and KMP algorithm on the same interface, but also display the operation flow of each step in the execution process of the string pattern matching algorithm. It also can be pause, rollback, resume, and so on at any time. The demonstration system can not only help students quickly learn and understand the principles of string pattern matching, but also effectively improve students’ practical abilities, namely, WYSIWYG, and fast hands-on programming. %K 朴素模式匹配算法,快速模式匹配算法,JavaSwing
Naive Pattern Matching Algorithm %K Fast Pattern Matching Algorithm %K JavaSwing %U http://www.hanspub.org/journal/PaperInformation.aspx?PaperID=68218