SELECTION AND SORTING IN TOTALLY MONOTONE ARRAYS

被引:4
|
作者
KRAVETS, D
PARK, JK
机构
[1] Laboratory for Computer Science, Massachusetts Institute of Technology, Cambridge, 02139, MA
来源
MATHEMATICAL SYSTEMS THEORY | 1991年 / 24卷 / 03期
关键词
D O I
10.1007/BF02090398
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A two-dimensional array A = {a[i,j]} is called totally monotone if, for all i1 < i2 and j1 < j2, a[i1, j1] < a[i1, j2] implies a[i2, j1] < a[i2, j2]. Totally monotone arrays were introduced in 1987 by Aggarwal, Klawe, Moran, Shor, and Wilber, who showed that several problems in computational geometry and VLSI river routing could be reduced to the problem of finding a maximum entry in each row of a totally monotone array. In this paper we consider several selection and sorting problems involving totally monotone arrays and give a number of applications of solutions for these problems. In particular, we obtain the following results for an m x n totally monotone array A: 1. The k largest (or k smallest) entries in each row of A can be computed in O(k(m + n)) time. This result allows us to determine the k farthest (or k nearest) neighbors of each vertex of a convex n-gon in O(kn) time. 2. Provided the transpose of A is also totally monotone, the k largest (or k smallest) entries overall in A can be computed in O(m + n + k lg(mn/k)) time. This result allows us to find the k farthest (or k nearest) pairs of vertices from a convex n-gon in O(n + k lg(n2/k)) time. 3. The rows of A can be sorted in O(mn) time when m greater-than-or-equal-to n and in O(mn(1 + lg(n/m))) time when m < n. This result allows us to solve the following problem in O(n2 lg l) time: given l convex polygons with a total of n vertices, for all vertices upsilon, sort the other vertices by distance from upsilon. 4. Sorting all the entries of A requires OMEGA(mn lg m) time.
引用
收藏
页码:201 / 220
页数:20
相关论文
共 50 条
  • [41] Introspective sorting and selection revisited
    Valois, JD
    SOFTWARE-PRACTICE & EXPERIENCE, 2000, 30 (06): : 617 - 638
  • [42] SORTING BY NATURAL-SELECTION
    FRAZER, WD
    WONG, CK
    COMMUNICATIONS OF THE ACM, 1972, 15 (10) : 910 - &
  • [43] Sorting and selection with structured costs
    Gupta, A
    Kumar, A
    42ND ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 2001, : 416 - 425
  • [44] Sorting, Selection, and Industry Shakeouts
    Thompson, Peter
    Pintea, Mihaela
    REVIEW OF INDUSTRIAL ORGANIZATION, 2008, 33 (01) : 23 - 40
  • [45] Sorting, Selection, and Industry Shakeouts
    Peter Thompson
    Mihaela Pintea
    Review of Industrial Organization, 2008, 33 : 23 - 40
  • [46] Bubble and Selection Sorting with Excel
    Benacka, Jan
    SPREADSHEETS IN EDUCATION, 2013, 6 (03):
  • [47] Selection and Sorting in the "Restore" Model
    Chan, Timothy M.
    Munro, J. Ian
    Raman, Venkatesh
    ACM TRANSACTIONS ON ALGORITHMS, 2018, 14 (02)
  • [48] Sorting and Selection with Imprecise Comparisons
    Ajtai, Miklos
    Feldman, Vitaly
    Hassidim, Avinatan
    Nelson, Jelani
    ACM TRANSACTIONS ON ALGORITHMS, 2016, 12 (02)
  • [49] Sorting and selection with random costs
    Angelov, Stanislav
    Kunal, Keshav
    McGregor, Andrew
    LATIN 2008: THEORETICAL INFORMATICS, 2008, 4957 : 48 - +
  • [50] VARIABLE SELECTION, MONOTONE LIKELIHOOD RATIO AND
    Butucea, Cristina
    Mammen, Enno
    Ndaoud, Mohamed
    Tsybakov, Alexandre B.
    ANNALS OF STATISTICS, 2023, 51 (01): : 312 - 333