分隔红点和蓝点的最大面积矩形
Maximum Area Rectangle Separating Red and Blue Points
摘要:
给定n个红点的集合R和m个蓝点的集合B,我们研究了寻找一个包含所有红点、蓝点数量最少且面积最大的矩形的问题。我们称这样的矩形为最大分离矩形。我们解决平面,轴对齐(2D)的版本,并提出了一个O(mlogm+n)的时间,O(m+n)的空间算法。算法的时间复杂度为O(m + n)。我们进一步证明了我们的算法是最优的决策模型的计算。
英文摘要:
Given a set R of n red points and a set B of m blue points, we study the problem of finding a rectangle that contains all the red points, the minimum number of blue points and has the largest area. We call such rectangle a maximum separating rectangle. We address the planar, axis-aligned (2D) version, and present an O(mlogm+n) time, O(m+n) space algorithm. The running time reduces to O(m + n) if the points are pre-sorted by one of the coordinates. We further prove that our algorithm is optimal in the decision model of computation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。