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]  
Adeel Muhammad, 2008, Journal of Applied Information Technology, V4, P1002
[2]  
Adeel Muhammad, 2012, World Applied Sciences Journal, V17, P611
[3]  
Cormen T., 1989, INTRO ALGORITHMS
[4]   OpenMP Parallelization Strategies for a Discontinuous Galerkin Solver [J].
Crivellini, Andrea ;
Franciolini, Matteo ;
Colombo, Alessandro ;
Bassi, Francesco .
INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 2019, 47 (5-6) :838-873
[5]   Parallel Programming Paradigms and Frameworks in Big Data Era [J].
Dobre, Ciprian ;
Xhafa, Fatos .
INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 2014, 42 (05) :710-738
[6]  
Drews F., 2004, PARALLEL PROCESS LET, V14, P33
[7]   PARALLEL PROCESSING OF BIOLOGICAL SEQUENCE COMPARISON ALGORITHMS [J].
EDMISTON, EW ;
CORE, NG ;
SALTZ, JH ;
SMITH, RM .
INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 1988, 17 (03) :259-275
[8]   A Study of Integer Sorting on Multicores [J].
Gerbessiotis, Alexandros, V .
PARALLEL PROCESSING LETTERS, 2018, 28 (04)
[9]  
Graf P., 1995, Rewriting Techniques and Applications. 6th International Conference, RTA-95. Proceedings, P117
[10]   NESTED OPENMP PARALLELIZATION OF A HIERARCHICAL DATA CLUSTERING ALGORITHM [J].
Hadjidoukas, Panagiotis E. ;
Amsaleg, Laurent .
PARALLEL PROCESSING LETTERS, 2010, 20 (02) :187-208