|
|
| About site: Algorithms/Sorting and Searching - FlashSort |
Return to Computers also Computers |
| About site: http://www.neubert.net/FSOIntro.html |
Title: Algorithms/Sorting and Searching - FlashSort Sorting by in place permutation with time complexity O(n) using an auxiliary vector. Papers, animations and implementations. |
| Alexa statistic for http://www.neubert.net/FSOIntro.html |
Please visit: http://www.neubert.net/FSOIntro.html
|
| Related sites for http://www.neubert.net/FSOIntro.html |
| HDRC Hard disc data recovery and repairing services in India. | | Sakellaris_Electronics 12Mb. Banner ad on each page. FTP and browser uploads. Templates provided. Email forwarding. URL: 'http://yoursite.snn.gr/'. | | Triadix Nebraska company that provides anything from a simple needs assessment all the way to a total technology partnership. | | ASUS_International Mainboards, video and add-on cards, CD-ROMs and accessories. | | Lightning_Bolt_Software Utilities and games for Macintosh users, include the oh-so-popular ExtractIt! for System. Also makes EV and EV Override plug-ins (like EV Target Graphics) and other add-ons to popular programs. | | Text_Finder Powerful and accurate tool to search and replace text inside entire disks or folders. | | Inter-Locale Globalization Engineering & Consulting Services | | RFC_2511 Internet X.509 Certificate Request Message Format. M. Myers, C. Adams, D. Solo, D. Kemp. March 1999. | | RFC_1375 Suggestion for New Classes of IP Addresses. P. Robinson. October 1992. | | WorkDynamics WorkDynamics provides ccmMercury and ccmMercury.WEB, correspondence management software for government and corporations that eliminates manual processing to make paperwork workflow tracking faster, mo | | NewTEQ_Information_Services_Corporation Specializes in the localization, globalization and testing of software, web, and related material (English to and from Chinese (Traditional and Simplified)). | | RFC_1791 TCP and UDP over IPX Networks with Fixed Path MTU. T. Sung. April 1995. | | RFC_0472 Illinois' Reply to Maxwell's Request for Graphics Information (NIC 14925). S. Bunch. March 1973. | | 35938 Equal-Sign Characters as Arguments in Batch Files | | Happy_Feelings Provides holiday cards, love poetry, and inspirational sayings. | | CNET_News_com Article covering Gateway's decision to drop plans for a new Amiga multimedia computer. (September 17, 1999) | | Public_SGML/XML_software The software listing of The XML Cover Pages. | | JFD_Enterprises Offers web site design, secure DSL, disaster planning and general IT services. Located in Kitchener Ontario. | | WebPG_Inc Offers web servers featuring Cobalt, Red Hat, Microsoft, and Sun RaQ, custom ecommerce site design and hosting. | | NConstruct RAD tool for creating database driven Windows and Web applications. |
|
This is websites2007.org cache of m/ as retrieved on 2008.08.21 websites2007.org's cache is the snapshot that we took of the page as we crawled the web. The page may have changed since that time.
|
FlashSort Algorithm
www.neubert.net - Dr. Neubert's Website
The Entropy Reduction Laboratory
The FlashSort Algorithm
The Problem
of in-situ sorting with
minimal auxiliary space
in minimal time.
Introduction
In "Mathematical Analysis of Algorithms",
(Information Processing '71, North Holland Publ.'72)
Donald Knuth remarked "... that research on computional
complexity is an interesting way to sharpen our tools for
more routine problems we face from day to day."
With respect to the sorting problem, Knuth points out,
that time effective in-situ permutation
is inherently connected with the problem of finding the cycle
leaders, and in-situ permutations could easily
be performed in O(n) time if we would be allowed
to manipulate n extra "tag" bits specifying
how much of the permutation has been carried out
at any time. Without such tag bits, he concludes
"it seems reasonable to conjecture that every algorithm
will require for in-situ permutation at least n log n
steps on the average".
Now this conjecture is shown not to be valid. A new
efficient way to find cycle leaders is presented and
in-situ permutations can be performed in optimal time.
The algorithm FlashSort sorts in O(n)
time without the manipulation of n extra "tag" bits.
Here an auxiliary vector of only length m is required,
where m is a small fraction of the number of elements n.
Classification
Accumulation
run the loops:
- find cycle leader
- in situ permutation
short range sorting
The FlashSort Algorithm
FlashSort sorts n elements in O(n) time. Flash-Sort
uses a vector L(k) of length m in a first step for
the classification of the elements of array A. Then,
in a second step, the resulting counts are accumulated
and the L(k) point to the class boundaries. Then the
elements are sorted by in situ permutation. During the
permutation, the L(k) are decremented by a unit step at each
new placement of an element of class k in the array A.
A crucial aspect of FlashSort is that for identifying new cycle
leaders. A cycle ends, if the the vector L(k) points to the
position of an element below the classboundary of class k.
The new cycle leader is the element situated in the lowest position
complying to the complimentary condition, i.e. for which L(k)
points to a position with L(k(A(i))) >= i.
Evidently, in addition to the array A of length n which
holds the n elements to be sorted, the only auxiliary vector
is the L(k)-vector. The size of this vector is equal to the
number m of classes which is small compared to n,
e.g. m typically may be set to m=0.1 n in case of floating point
numbers.
Finally,a small number of partially distinguishable elements are
sorted locally within their classes either by recursion or by a simple
conventional sort algorithm.
In these papers you find
a more detailed description of the algorithm.
Karl-Dietrich Neubert
The FlashSort Algorithm
This is an MS 6.0 Word document as
published in the Proceedings of the
euroFORTH'97
-Conference, Oxford, England,Sept.26-28 1997
Karl-Dietrich Neubert,
FlashSort1 Algorithm in
Dr. Dobb's Journal
Feb.1998,p.123
CLICK HERE
TO SUBSCRIBE TO DDJ
A collection of FlashSort demos
For animations of the FlashSort principle and runtime, select
Collection of FlashSort demos
A collection of FlashSort codes
For codes in various languages and various modifications
of the FlashSort algorithm see
Collection of FlashSort codes.
Back
To go back to the Welcome page click
here.
This page and each part of it Copyright © 1998
Karl-Dietrich Neubert.
All Rights Reserved
Design by
Vladimir Marek.
Last update of the page: March 18, 2003
|
|
| |
Sorting | by | in | place | permutation | with | time | complexity | O(n) | using | an | auxiliary | vector. | | Papers, | animations | and | implementations. |
|
http://www.neubert.net/FSOIntro.html
FlashSort 2008 August
dvd rental
dvd
Sorting by in place permutation with time complexity O(n) using an auxiliary vector. Papers, animations and implementations.
Rules
|
© 2008 Internet Explorer 5+ or Netscape 6+
|
|
Recommended Sites: 1.
Arts -
Business -
Computers -
Games -
Health -
Home -
Kids and Teens -
News -
Recreation -
Reference -
Regional -
Science -
Shopping -
Society -
Sports -
World
Miss Gallery
- Top Anime Hentai
- DVD rental by mail
- Mortgages - Myspace Happy Birthday Comments - Secured Loans - Loan - Secured Loan
|