I/O Efficient Dynamic Data Structures for Longest Prefix Queries

  • Authors:
  • Moshe Hershcovitch;Haim Kaplan

  • Affiliations:
  • Faculty of Electrical Engineering, ,;School of Computer Science, Tel Aviv University, Tel Aviv, Israel 69978

  • Venue:
  • SWAT '08 Proceedings of the 11th Scandinavian workshop on Algorithm Theory
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present an efficient data structure for finding the longest prefix of a query string pin a dynamic database of strings. When the strings are IP-addresses then this is the IP-lookup problem. Our data structure is I/O efficient. It supports a query with a string pusing $O(\log_{B}(n)+\frac{|p|}{B})$ I/O operations, where Bis the size of a disk block. It also supports an insertion and a deletion of a string pwith the same number of I/O's. The size of the data structure is linear in the size of the database and the running time of each operation is O(log(n) + |p|).