{'fraction_non_alphanumeric': 0.01927437641723356, 'fraction_numerical': 0.0, 'mean_word_length': 5.131944444444445, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Novel Algorithm for Pattern Matching Based on Modified Push-Down Automata

In this paper we propose a new algorithm called MEPda (Motif Extraction algorithm based on Push-down automata) to solve the problem of finding patterns containing loops. These loop-patterns or loop-motifs are very known and used in many domains, especially in mathematics and bioinformatics. MEPda meant to find these kinds of patterns by using pushdown automata as a mechanism of matching process alongside with a counter to verify the acceptance length of loop in an optimistic way of looking. The results obtained from MEPda have shown high accuracy and much reduced runtime for finding patterns containing loops compared to using a push-down automata based algorithm without implementing a counter, a regular expression based algorithm, an Aho-Corasick algorithm, a KMP algorithm, and MoTeX algorithm.