For a set of colored points, a region is called color-spanning if it contains at least one point of each color. In this paper, we rst consider the problem of maintaining the smallest color-spanning interval for a set of n points with k colors on the real line, such that the insertion and deletion of an arbitrary point takes O(log2 n) the worst-case time. Then, we exploit the data structure to show that there is O(n log2 n) time algorithm to compute the smallest color-spanning square for a set of n points with k colors in the plane. This is a new way to improve O(nk log n) time algorithm presented by Abellanas et al. [1] when k = !(log n). We also consider the problem of computing the smallest color-spanning square in a special case in which we have, at most, two points from each color. We present O(n log n) time algorithm to solve the problem which improves the result presented by Arkin et al. [2] by a factor of log n.
Khanteimouri,P , Mohades,A , Abam,M , Kazemi,M and Sedighin,S . (2017). Effiiently computing the smallest axis-parallel squares spanning all colors. Scientia Iranica, 24(3), 1325-1334. doi: 10.24200/sci.2017.4115
MLA
Khanteimouri,P , , Mohades,A , , Abam,M , , Kazemi,M , and Sedighin,S . "Effiiently computing the smallest axis-parallel squares spanning all colors", Scientia Iranica, 24, 3, 2017, 1325-1334. doi: 10.24200/sci.2017.4115
HARVARD
Khanteimouri P, Mohades A, Abam M, Kazemi M, Sedighin S. (2017). 'Effiiently computing the smallest axis-parallel squares spanning all colors', Scientia Iranica, 24(3), pp. 1325-1334. doi: 10.24200/sci.2017.4115
CHICAGO
P Khanteimouri, A Mohades, M Abam, M Kazemi and S Sedighin, "Effiiently computing the smallest axis-parallel squares spanning all colors," Scientia Iranica, 24 3 (2017): 1325-1334, doi: 10.24200/sci.2017.4115
VANCOUVER
Khanteimouri P, Mohades A, Abam M, Kazemi M, Sedighin S. Effiiently computing the smallest axis-parallel squares spanning all colors. Scientia Iranica. 2017;24(3):1325-1334. doi: 10.24200/sci.2017.4115