Two simple and efficient algorithms for Jordan sorting and polygon cutting and clipping

dc.contributor.authorSojka, Eduard
dc.date.accessioned2007-08-31T07:48:21Z
dc.date.available2007-08-31T07:48:21Z
dc.date.issued1997
dc.description.abstract-enThis paper deals with the Jordan sorting problem: Given n intersection points of a Jordan curve with the x-axis in the order in which they occur along the curve, sort these points into the order in which they occur along the x-axis. The worst-case time complexity of this problem is θ(n). Unfortunately, the known O(n) time algorithms are too complicated, which causes that they are difficult to implement and slow for the inputs of sizes that are of practical interest. In this paper, two algorithms for Jordan sorting are presented. The first algorithm is extremely simple. Although its worst-case time complexity is O(nlogn), it is shown that the worst time is achieved only for special inputs. For most inputs, a better performance can be expected. Furthermore, an improved O(nlog logn) worst-case time algorithm is presented. For the input sequences of size from 4 to 105, the algorithms are compared with Quicksort, with the algorithm based on splay trees and with the O(n) time algorithm proposed by Fung et al. The results show that our algorithms are faster. The relevant implementation details are given.en
dc.identifier.citationComputer Networks and ISDN Systems. 1997, vol. 29, issue 14, p. 1661-1673.en
dc.identifier.doi10.1016/S0169-7552(97)00081-0
dc.identifier.issn0169-7552
dc.identifier.locationNení ve fondu ÚKen
dc.identifier.urihttp://hdl.handle.net/10084/62388
dc.identifier.wosA1997YL08400012
dc.language.isoenen
dc.publisherElsevieren
dc.relation.ispartofseriesComputer Networks and ISDN Systemsen
dc.relation.urihttp://dx.doi.org/10.1016/S0169-7552(97)00081-0en
dc.subjectcomputational geometryen
dc.subjectJordan sortingen
dc.subjectpolygon clippingen
dc.titleTwo simple and efficient algorithms for Jordan sorting and polygon cutting and clippingen
dc.typearticleen

Files