IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v10y2022i12p1954-d833032.html
   My bibliography  Save this article

An Improved Order-Preserving Pattern Matching Algorithm Using Fingerprints

Author

Listed:
  • Youngjoon Kim

    (Department of Computer Engineering, Inha University, Incheon 22212, Korea
    These authors contributed equally to this work.)

  • Youngho Kim

    (Department of Computer Engineering, Inha University, Incheon 22212, Korea
    These authors contributed equally to this work.)

  • Jeong Seop Sim

    (Department of Computer Engineering, Inha University, Incheon 22212, Korea)

Abstract

Two strings of the same length are order isomorphic if their relative orders are the same. The order-preserving pattern matching problem is to find all substrings of text T that are order isomorphic to pattern P when T ( | T | = n ) and P ( | P | = m ) are given. An O ( m n + n q log q + q ! ) -time algorithm using the O ( m + q ! ) space for the order-preserving pattern matching problem has been proposed utilizing fingerprints of q -grams based on the factorial number system and the bad character heuristic. In this paper, we propose an O ( m n + 2 q ) -time algorithm using the O ( m + 2 q ) space for the order-preserving pattern matching problem, but utilizing fingerprints of q -grams converted to binary numbers. A comparative experiment using three types of time series data demonstrates that the proposed algorithm is faster than existing algorithms because it reduces the number of order isomorphism tests.

Suggested Citation

  • Youngjoon Kim & Youngho Kim & Jeong Seop Sim, 2022. "An Improved Order-Preserving Pattern Matching Algorithm Using Fingerprints," Mathematics, MDPI, vol. 10(12), pages 1-10, June.
  • Handle: RePEc:gam:jmathe:v:10:y:2022:i:12:p:1954-:d:833032
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/10/12/1954/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/10/12/1954/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:10:y:2022:i:12:p:1954-:d:833032. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.