A logarithmic time complexity algorithm for pattern searching using product-sum property

  • Authors:
  • Khalid Mahmood Aamir;Mujahid Abbas;Stojan Radenović

  • Affiliations:
  • Department of Computer Sciences, Rachna College of Engineering and Technology, Gujranwala, Pakistan;Center for Advanced Studies in Mathematics, Lahore University of Management Sciences, Lahore, Pakistan;Faculty of Mechanical Engineering, University of Belgrade, Kraljice Marije 16, 11 120 Beograd, Serbia

  • Venue:
  • Computers & Mathematics with Applications
  • Year:
  • 2011

Quantified Score

Hi-index 0.12

Visualization

Abstract

Product-sum property states that an ordered pair (s"n,p"n) is unique for any ordered set a"1,a"2,...,a"n where a"i,n@?N, and s"n and p"n are the sum and product of the elements of the set, respectively. This fact has been exploited to develop an O(log(M)) time complexity algorithm for pattern searching in a large dataset, where M is the number of records in the dataset. Two potential applications (from databases and computational biology) of this property have been demonstrated to show the effectiveness and working of the proposed algorithm. The space complexity of the algorithm rises to the quadratic order.