Two simple and efficient algorithms for Jordan sorting and polygon cutting and clipping
| dc.contributor.author | Sojka, Eduard | |
| dc.date.accessioned | 2007-08-31T07:48:21Z | |
| dc.date.available | 2007-08-31T07:48:21Z | |
| dc.date.issued | 1997 | |
| dc.description.abstract-en | This 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.citation | Computer Networks and ISDN Systems. 1997, vol. 29, issue 14, p. 1661-1673. | en |
| dc.identifier.doi | 10.1016/S0169-7552(97)00081-0 | |
| dc.identifier.issn | 0169-7552 | |
| dc.identifier.location | Není ve fondu ÚK | en |
| dc.identifier.uri | http://hdl.handle.net/10084/62388 | |
| dc.identifier.wos | A1997YL08400012 | |
| dc.language.iso | en | en |
| dc.publisher | Elsevier | en |
| dc.relation.ispartofseries | Computer Networks and ISDN Systems | en |
| dc.relation.uri | http://dx.doi.org/10.1016/S0169-7552(97)00081-0 | en |
| dc.subject | computational geometry | en |
| dc.subject | Jordan sorting | en |
| dc.subject | polygon clipping | en |
| dc.title | Two simple and efficient algorithms for Jordan sorting and polygon cutting and clipping | en |
| dc.type | article | en |