Abstract
In this paper we investigate the expected complexityE(C) of distributive (“bucket”) sorting algorithms on a sampleX 1, ...,X n drawn from a densityf onR 1. Assuming constant time bucket membership determination and assuming the use of an average timeg(n) algorithm for subsequent sorting within each bucket (whereg is convex,g(n)/n↑∞,g(n)/n 2 is nonincreasing andg is independent off), the following is shown:
-
1)
Iff has compact support, then ∫g(f(x))dx<∞ if and only ifE(C)=0(n).
-
2)
Iff does not have compact support, then\(E(C)/n\xrightarrow{n}\infty \).
No additional restrictions are put onf.
Zusammenfassung
Wir untersuchen die mittlere KomplexitätE(C) von Fachsortier-Algorithmen, die auf eine StichprobeX 1, ...,X n mit der Verteilungsdichtef aufR 1 angewendet werden. Wir nehmen an, daß die Zeit zur Bestimmung des Sortierfachs konstant ist, und daß für die Sortierung innerhalb jedes Fachs ein Algorithmus mit dem mittleren Zeitbedarfg(n) zur Verfügung steht. Dabei istg konvex,g(n)/n↑∞,g(n)/n 2 nichtsteigend undg unabhängig vonf. Wir zeigen:
-
1)
Wennf kompakten Träger hat, dann gilt ∫g(f(x))dx<∞ genau dann, wennE(C)=0(n).
-
2)
Wennf keinen kompakten Träger hat, dann gilt\(E(C)/n\xrightarrow{n}\infty \).
Überf benötigen wir keinerlei weitere Voraussetzungen.
Similar content being viewed by others
References
Baase, S.: Computer algorithms: Introduction to design and analysis. Reading, Mass.: Addison-Wesley 1978.
Dobosiewicz, W.: Sorting by distributive partitioning. Information Processing Letters7, 1–6 (1978).
Graham, R. L.: An efficient algorithm for determining the convex hull of a planar set. Information Processing Letters1, 132–133 (1972).
Knuth, D. E.: The art of computer programming 3. Reading, Mass.: Addison-Wesley 1973.
Royden, H. L.: Real analysis. Toronto: Macmillan 1968.
Slud, E. V.: Distribution inequalities for the binomial law. The Annals of Probability5, 404–412 (1977).
Stein, E. M.: Singular integrals and differentiability properties of functions. Princeton, N. J.: Princeton University Press 1970.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Devroye, L., Klincsek, T. Average time behavior of distributive sorting algorithms. Computing 26, 1–7 (1981). https://doi.org/10.1007/BF02243418
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF02243418