| | SLO | ENG | Cookies and privacy

Bigger font | Smaller font

Show document Help

Title:Acceleration of sweep-line technique by employing smart quicksort
Authors:ID Podgorelec, David (Author)
ID Klajnšek, Gregor (Author)
Files:URL http://dx.doi.org/10.1016/j.ins.2004.07.002
 
Language:English
Work type:Unknown
Typology:1.01 - Original Scientific Article
Organization:FERI - Faculty of Electrical Engineering and Computer Science
Abstract:Quicksort is usually the best practical choice for sorting because it is, on average, remarkably efficient. Unfortunately, this popular algorithm has a significant drawback: the slowest performance is obtained in the simplest cases when input data are already initially sorted or only a slight perturbation occurs. In this paper, we propose a combination of quicksort and a new algorithm, which shows excellent time performance in sorting such crucial data arrays, and which is not much slower than quicksort in random cases. Our work was inspired by problems met when sorting polygon vertices in the sweep-line algorithms of computational geometry and, therefore, we have named the new algorithm 'vertex sort'. It splits the input array into three sub-arrays. Two of them are already sorted, and the third one is handled iteratively. A simple test decides whether to continue recursively with vertexsort or to employ quicksort in the second iteration. In this way, we achieve a situation where the worst case time complexity does not exceed the running times of quicksort, but the simplest cases are handled much faster (inlinear time) than random cases. We have named the combined algorithm 'smartquicksort' because of this desired property. In the last part of the paper, we prove its efficiency by employing it in a well-known sweep-line-based polygon triangulation algorithm.
Keywords:computational geometry, quicksort, smart quicksort, sweep-line, smart quicksort, polygon triangualation, vertex sort
Year of publishing:2005
PID:20.500.12556/DKUM-27219 New window
UDC:004.92
ISSN on article:0020-0255
COBISS.SI-ID:9318934 New window
NUK URN:URN:SI:UM:DK:1YSCAPMZ
Publication date in DKUM:01.06.2012
Views:2205
Downloads:99
Metadata:XML DC-XML DC-RDF
Categories:Misc.
:
Copy citation
  
Average score:(0 votes)
Your score:Voting is allowed only for logged in users.
Share:Bookmark and Share



Hover the mouse pointer over a document title to show the abstract or click on the title to get all document metadata.

Record is a part of a journal

Title:Information sciences
Shortened title:Inf. sci.
Publisher:North-Holland
ISSN:0020-0255
COBISS.SI-ID:25613056 New window

Secondary language

Language:English
Keywords:računalniška geometrija, triangulacija mnogokotnika, hitro urejanje, navihano hitro urejanje, skanirna premica, urejanje ogljišč


Comments

Leave comment

You must log in to leave a comment.

Comments (0)
0 - 0 / 0
 
There are no comments!

Back
Logos of partners University of Maribor University of Ljubljana University of Primorska University of Nova Gorica