Cache-Oblivious Red-Blue Line Segment Intersection

  • Authors:
  • Lars Arge;Thomas Mølhave;Norbert Zeh

  • Affiliations:
  • MADALGO, Department of Computer Science, University of Aarhus, Denmark;MADALGO, Department of Computer Science, University of Aarhus, Denmark;Faculty of Computer Science, Dalhousie University, Halifax, Canada

  • Venue:
  • ESA '08 Proceedings of the 16th annual European symposium on Algorithms
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present an optimal cache-oblivious algorithm for finding all intersections between a set of non-intersecting red segments and a set of non-intersecting blue segments in the plane. Our algorithm uses $O(\frac{N}{B}\log_{M/B}\frac{N}{B}+T/B)$ memory transfers, where Nis the total number of segments, Mand Bare the memory and block transfer sizes of any two consecutive levels of any multilevel memory hierarchy, and Tis the number of intersections.