Scheduling a set of n jobs on a single machine so as to minimize the completion time variance is a well-known NP-hard problem. In this paper, we propose a sequence, which can be constructed in O(n log n) time, as a solution for the problem. Our primary concern is to establish the asymptotical optima
Probabilistic analysis of the time complexity of quicksort
β Scribed by Tadashi Mizoi; Shunji Osaki
- Publisher
- John Wiley and Sons
- Year
- 1996
- Tongue
- English
- Weight
- 460 KB
- Volume
- 79
- Category
- Article
- ISSN
- 1042-0967
No coin nor oath required. For personal study only.
β¦ Synopsis
Abstract
Quicksort is a wellβknown sorting algorithm based on the divided control. the array to be sorted is divided into two sets as follows. an element in the array is specified, and the set of values larger than the value of that element and the set of values smaller than that value are constructed. Each of those two sets are sorted independently. the procedure is iterated for the divided sets. In other words, the algorithm has a recursive structure. the average timeβcomplexity of the quicksort (the average number of comparisons) is O(n log n). Depending on the data to be sorted, however, the performance may be deteriorated drastically. In the worst case, the time complexity is O(n^2^).
In this paper, the generating function based on the time complexity of the quicksort is introduced and the mean and the variance of the time complexity is determined analytically using the generating function. Based on the derived mean and the variance, the chiβsquare test is applied as to whether or not the distribution of the time complexity can be approximated by the normal distribution. Then, a method is proposed in which the probability R(x) that the time complexity exceeds a certain value x is determined accurately by approximating the distribution of the time complexity of the quicksort by a threeβparameter Weibull distribution. Finally, the selection of the sorting algorithm is discussed.
π SIMILAR VOLUMES
This paper analyzes the asymptotic properties of a classical algorithm: the adaptative sampling which solves the following problem; how to estimate the number M of distinct elements of a large collection of n data. Using tools such as the random tree and techniques such as Mellin transforms, combina
In this paper, metric complexities of certain classes of continuous-time systems are studied, using the time-domain sampling approach and the concepts of Kolmogorov, Gel'fand and sampling n-widths for certain classes of Sobolev space. A sampling theorem is obtained which extends Shannon's sampling t