A Simple and Compact Algorithm for the RMQ and Its Application to the Longest Common Repeat Problem

  • Authors:
  • Inbok Lee;Ha Yoon Song

  • Affiliations:
  • School of Electronic, Telecommunication, and Computer Engineering, Hankuk Aviation University, Republic of Korea;Department of Computer Engineering, Hongik University, Republic of Korea

  • Venue:
  • ICANNGA '07 Proceedings of the 8th international conference on Adaptive and Natural Computing Algorithms, Part I
  • Year:
  • 2007

Quantified Score

Hi-index 0.07

Visualization

Abstract

The Range Minimum Query (RMQ) problem is to find the smallest element in an array for given range (a, b). We propose a simple and compact algorithm for this problem when the queries are sorted in ascending order. Then we show how to use this algorithm for the generalised longest common repeat problem [14]. Our algorithm is easy to understand and implement and requires much smaller memory.