Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Automata-based Algorithm for Multiple Word Matching

Author 1: Majed AbuSafiya
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 12, No. 3 · Published 2021

DOI: https://doi.org/10.14569/IJACSA.2021.0120358

Abstract

In this paper, an automata-based algorithm that finds the valid shifts of a given set of words W in text T is presented. Unlike known string matching algorithms, a preprocessing phase is applied to T and not to the words being searched for. In this phase, a deterministic finite state automaton (DFA) that recognizes the words in T is built and is augmented with their shifts in T. The preprocessing phase is relatively expensive in terms of time and space. However, it needs to be done once for any number of words to match in a given text document. The algorithm is analyzed for complexity, implemented and compared with an adjusted version of KMP algorithm. It showed better performance than KMP algorithm for large number of words to match in T.

Keywords

How to Cite this Article

AbuSafiya, M. (2021). Automata-based Algorithm for Multiple Word Matching. International Journal of Advanced Computer Science and Applications, 12(3). https://doi.org/10.14569/IJACSA.2021.0120358

AbuSafiya, Majed. "Automata-based Algorithm for Multiple Word Matching." International Journal of Advanced Computer Science and Applications, vol. 12, no. 3, 2021, https://doi.org/10.14569/IJACSA.2021.0120358.

@article{AbuSafiya2021,
  title     = {Automata-based Algorithm for Multiple Word Matching},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {12},
  number    = {3},
  year      = {2021},
  publisher = {The Science and Information Organization},
  author    = {Majed AbuSafiya},
  doi       = {10.14569/IJACSA.2021.0120358},
  url       = {https://doi.org/10.14569/IJACSA.2021.0120358}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.