Search

Filter

  • Advanced Filters:

  • to
  • Specific Data Sources:

    All Edit

    Select All  |  Select None

Reset filters

P h d Thesis Author: Tomi Pasanen Title: In-Place AlgorithMs for Sorting Problems Supervisors: Jyrki Katajalnen and Jukl~ Teuhola D a t e o f D e f e n c e : April 10, 1999 I n s t i t u t i o n g r a n t i n g d e g r e e : University of Turku, Finland Abstract A n algorithm is said to operate in-place if it uses only a constant amount of extra memory for storing local variables besides the m e m o r y reserved for the input elements. In other words, the size of the extra m e m o r y does not grow as the number of input elements, n, gets larger,but it is bounded by a constant. A n algorithm reorders the input elements stably if the originalrelativeorder of equal elements is retained. In this thesis,we devise in-place algorithnm for sorting and related problems. W e measure the ei~ciency of the algorithms by calculating the nnmber of element comparisons and element moves performed in the worst case in the following. The amount of index m~nlpnlation operations is closely related to these quantities, so it is omitted in our calculations. W h e n no precise figures are needed, we denote the sum of all operations by a general expression "time". The thesis consists of five separate articles,the main contributions of which are described below. W e construct algorithms for stable partitioning and stable selection which are the first linear-time algorithms being both stable and in-place concurrently. Moreover, we define problems stable unpartitioning and restoring selection and devise linear-time algorithms for these problems. The algorithm for stable unpartitioning is in-place while that for restoring selection uses O(n) extra bits. By using these algorithms as subroutines we construct an adaption of Quicksort that sorts a multiset stably in O(~-~= 1 ml log(n/ml)) time where m~ is the multiplicity of ith distinct element for i : 1, . . , k. This is the first in-place algorithm that sorts a mu]tiset stably in asymptotic~ly optimal time. We present in-place algorithms for unstable and stable merging. The algorithm.q are asymptotically more efficient than earlier ones: the number of moves is 3(n + m)+o(m) for the unstable algorithm, 5n+12m+o(m) for the stable algorithm, and the number of comparisons at most m(t + 1) -F- n/2 ~ + o(m) comparisons where m _< n and t = Llog(n/m)J. The previous best results were 1.125(n + m) + o(n) comparisons and 5(n + m) + o(n) moves for unstable merging, and 16.5(n + m) + o(n) moves for stable merging. Finally, we devise two in-place algorithms for sorting. Both algorithm~ axe adaptions of Mergesort. The first performs n l o g z n + O(n) comparisons and z n l o g 2 n + O(nloglogn) moves for any fixed 0 < z ~ 2. Our experiments show that this algorithm performs well in practice. The second requires n l o g 2 n + O(n) comparisons and fewer than O(nlogn/loglogn) moves. This is the first in-place sorting algorithm that performs o(n log n) moves in the worst case while guaranteeing O(n log n) comparisons. This Ph.D. Thesis has been printed as T U C S Dissertationno. 15 (March 1999) of Turku Centre for Computer Science, Turku Finland. Author's Correspondence Address: Tomi Pasanen Turku Centre for Computer Science Lemmink~isenlcAtu 14 A FIN-20520 Turku, FINLAND Email: t p a s a n s n @ c s . u t u . f i W~: h t t p : / / ~ w 2 , ca. u t u . f i / s t a f f / t o m i , p a s a n e n /

Page 1 of 1

Page 1 of 1

Toggle back to continuous viewing mode

/lp/association-for-computing-machinery/in-place-algorithms-for-sorting-problems-IF9FhOQi6x
Welcome to DeepDyve! Rent Premier Research Articles and Save Up to 90%

Learn more

Free Article

Bookmark

In-place algorithms for sorting problems

Pasanen, Tomi
ACM SIGACT News , Volume 30 (2)
Association for Computing MachineryJun 1, 1999

More Info

More Like This Article

View All dataSource[]=actageo&dataSource[]=aspet&dataSource[]=aaos&dataSource[]=aacc&dataSource[]=aacr&dataSource[]=aea&dataSource[]=aip&dataSource[]=ajnr&dataSource[]=ams&dataSource[]=aps_physical&dataSource[]=appi_book&dataSource[]=appi_journal&dataSource[]=apha&dataSource[]=asip&dataSource[]=asm&dataSource[]=asn&dataSource[]=aspb&dataSource[]=avs&dataSource[]=annual_reviews&dataSource[]=arxiv&dataSource[]=acm&dataSource[]=berghahn&dataSource[]=cabi&dataSource[]=clinical_trials&dataSource[]=dailymed&dataSource[]=degruyter&dataSource[]=du_press&dataSource[]=esa&dataSource[]=eu_press&dataSource[]=elsevier&dataSource[]=emerald&dataSource[]=ejtr&dataSource[]=emea&dataSource[]=epo&dataSource[]=faseb&dataSource[]=gsa&dataSource[]=health_affairs&dataSource[]=hindawi&dataSource[]=imanager&dataSource[]=imedpub&dataSource[]=informa_healthcare&dataSource[]=informs&dataSource[]=iop&dataSource[]=iucr&dataSource[]=iospress&dataSource[]=jbjs&dataSource[]=leftcoast&dataSource[]=lu_press&dataSource[]=mesharpe&dataSource[]=mary_ann_liebert&dataSource[]=medline&dataSource[]=mit_press&dataSource[]=nature&dataSource[]=oxford&dataSource[]=pier_professional&dataSource[]=pnas&dataSource[]=portlandpress&dataSource[]=psyc_articles&dataSource[]=psyc_books&dataSource[]=psyc_critiques&dataSource[]=plos_journal&dataSource[]=pubmed_central&dataSource[]=rsna&dataSource[]=rockefeller&dataSource[]=rcn&dataSource[]=ria&dataSource[]=rsc&dataSource[]=sage&dataSource[]=spie&dataSource[]=springer_journal&dataSource[]=springer&dataSource[]=taylor_francis&dataSource[]=aps&dataSource[]=the_scientist&dataSource[]=uc_press&dataSource[]=uspto_abstract&dataSource[]=wiley&dataSource[]=pct

Browse: Subject Areas | Journals | Publishers

Sign Up for a DeepDyve Account

Bookmark an Article

To bookmark an article, please log in first, or sign up for a DeepDyve account if you don't already have one.

OK

Subscribe to Journal Email Alerts

To subscribe to email alerts, please log in first, or sign up for a DeepDyve account if you don't already have one.

OK

Thank you for renting with DeepDyve

Your PayPal account has been charged $2.99. You now have access to the full text of this article. A rental receipt has also been sent to your email address.

Your credit card has been charged $2.99. You now have access to the full text of this article. A rental receipt has also been sent to your email address.

OK

New! You can now keep track of new articles from ACM SIGACT News on your personalized homepage! Learn more

PDF Download — Not Available

Thanks for your interest in purchasing the PDF. Your request has been noted and we will work with our publisher partner to discuss enabling this feature.

In the meantime, you can get the PDF by visiting the publisher site.

Thank you for purchasing with DeepDyve

Your PayPal account has been charged $.

Your credit card has been charged $.

You can now download this article. A purchase receipt has also been sent to your email address.

Download This Article or I'm done with my download

Print Page — Not Available

Thanks for your interest in printing individual pages. Your request has been noted and we will work with our publisher partner to discuss enabling this feature.

In the meantime, you can get the PDF by visiting the publisher site.

Thank you for printing with DeepDyve

Your PayPal account has been charged $0.

Your credit card has been charged $0.

You can now print this article. A purchase receipt has also been sent to your email address.

Print the Selected Pages or I'm done with my printing

Please refresh to generate a new download link

Your article download link has expired. Please refresh this page to obtain a new download link and try again.

Follow a Journal

To get new article updates from a journal on your personalized homepage, please log in first, or sign up for a DeepDyve account if you don't already have one.

OK