OpenMP Implementation of Parallel Longest Common Subsequence Algorithm for Mathematical Expression Retrieval

被引:1
|
作者
Perepu, Pavan Kumar [1 ]
机构
[1] Mahindra Ecole Cent Coll Engn, Dept Comp Sci & Engn, Hyderabad, India
关键词
Mathematical expression retrieval; longest common subsequence; time complexity; parallel algorithm; OpenMP; SEARCH;
D O I
10.1142/S0129626421500079
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Given a mathematical expression in LaTeX or MathML format, retrieval algorithm extracts similar expressions from a database. In our previous work, we have used Longest Common Subsequence (LCS) algorithm to match two expressions of lengths, m and n, which takes O(mn) time complexity. If there are T database expressions, total complexity is O(Tmn), and an increase in T also increases this complexity. In the present work, we propose to use parallel LCS algorithm in our retrieval process. Parallel LCS has O(max(m,n)) time complexity with max(m,n) processors and total complexity can be reduced to O(Tmax(m,n)). For our experimentation, OpenMP based implementation has been used on Intel i3 processor with 4 cores. However, for smaller expressions, parallel version takes more time as the implementation overhead dominates the algorithmic improvement. As such, we have proposed to use parallel version, selectively, only on larger expressions, in our retrieval algorithm to achieve better performance. We have compared the sequential and parallel versions of our ME retrieval algorithm, and the performance results have been reported on a database of 829 mathematical expressions.
引用
收藏
页数:18
相关论文
共 46 条
  • [1] PARALLEL ALGORITHMS FOR THE LONGEST COMMON SUBSEQUENCE PROBLEM
    LU, M
    LIN, H
    IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 1994, 5 (08) : 835 - 848
  • [2] An Analysis on Computation of Longest Common Subsequence Algorithm
    Kawade, Gaurav
    Sahu, Santosh
    Upadhye, Sachin
    Korde, Nilesh
    Motghare, Manish
    PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON INTELLIGENT SUSTAINABLE SYSTEMS (ICISS 2017), 2017, : 982 - 987
  • [3] A fast parallel longest common subsequence algorithm based on pruning rules
    Liu, Wei
    Chen, Yixin
    Chen, Ling
    Qin, Ling
    FIRST INTERNATIONAL MULTI-SYMPOSIUMS ON COMPUTER AND COMPUTATIONAL SCIENCES (IMSCCS 2006), PROCEEDINGS, VOL 1, 2006, : 27 - +
  • [5] An efficient systolic algorithm for the longest common subsequence problem
    Lin, YC
    Chen, JC
    JOURNAL OF SUPERCOMPUTING, 1998, 12 (04) : 373 - 385
  • [6] An Efficient Systolic Algorithm for the Longest Common Subsequence Problem
    Yen-Chun Lin
    Jyh-Chian Chen
    The Journal of Supercomputing, 1998, 12 : 373 - 385
  • [7] A coarse-grained parallel algorithm for the all-substrings longest common subsequence problem
    Alves, Carlos E. R.
    Caceres, Edson N.
    Song, Siang Wun
    ALGORITHMICA, 2006, 45 (03) : 301 - 335
  • [8] An improved algorithm for the longest common subsequence problem
    Mousavi, Sayyed Rasoul
    Tabataba, Farzaneh
    COMPUTERS & OPERATIONS RESEARCH, 2012, 39 (03) : 512 - 520
  • [9] A genetic algorithm for the longest common subsequence problem
    Hinkemeyer, Brenda
    Julstrorn, Bryant A.
    GECCO 2006: GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, VOL 1 AND 2, 2006, : 609 - +
  • [10] Another efficient systolic algorithm for the longest common subsequence problem
    Lin, YC
    Chen, JC
    JOURNAL OF THE CHINESE INSTITUTE OF ENGINEERS, 2000, 23 (05) : 607 - 613