Abstract
In this paper we analyse:
-
i)
a storage allocation algorithm (Knuth [11] Ex.2.2.2.13) which permits to maintain two stacks inside a shared (contiguous) memory area of a fixed size,
-
ii)
the well-known banker algorithm which plays a fundamental role in parallel processing (Françon [8], Habermann [10], Peterson, Silberschatz [16]).
The natural formulation of the problems to be solved here is in terms of random walks. For (i) the random walk Ym(.) takes place in a triangle in a 2-dimensional lattice space with two reflecting barriers along the axes (a deletion takes no effect on an empty stack) and one absorbing barrier parallel to the second diagonal (the algorithm stops when the combined sizes of the stacks exhaust the available storage).
For (ii) the random walk takes place in a rectangle with breaked corner and has four reflecting barriers and one absorbing barrier (see Figure 8).
With the help of diffusions techniques, we obtain, asymptotically:
-
the hitting place (Zm) and time (Tm) distributions on the absorbing boundary
-
the joined distribution of Zm and Tm
-
the distribution P[Ym(n) ≤ ym, n<Tm)
The two stacks problem has been partially investigated by Yao [17] and more recently by Flajolet [7] with different tools. We provide here an analysis of the general case with new limiting distributions. At our knowledge such kind of analysis has never been done before for the banker algorithm.
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
BILLINGSLEY, P., Convergence of Probability Measures, Wiley, 1968.
CHUNG, K.L. and WILLIAMS, R.J., Introduction to Stochastic Integration, Birkäuser, 1983.
COX, M.R. and MILLER, H.D., The Theory of Stochastic Processes, Chapman and Hall, 1980.
DESCLOUX, J. and TOLLEY, M., An accurate algorithm for computing the eigenvalues of polygonal membrane; Comp.Meth.Appl.Mech. and Engineering 39, 37–53, 1983.
FELLER, W., Introduction to Probability Theory and its Applications, Vol. I, Wiley, 1970.
FELLER, W., Introduction to Probability Theory and its Applications, Vol. II, Wiley, 1971.
FLAJOLET, Ph., The evolution of Two Stacks in Bounded Space and Random Walks in a Triangle, INRIA, Rapport de Recherche N.518, 1986.
FRANÇON, J., Combinatoire et Parallélisme, Journées Informatique et Mathématoque, Lumigny, 15–17 octobre 1987 (manuscrit).
GREENE, D. and KNUTH, D.E., Mathematics for the Analysis of Algorithms, Birkhäuser, 1981.
HABERMANN, A.N., Systems Deadlocks, in Current Trends in Programming Methodology, Vol.3, K. Manichandy and R.T. Yeh, Eds, Prentice-Hall, 1987.
KNUTH, D.E., The Art of Computer Programming, Vol. 1, Addison-Wesley, 1969.
LOUCHARD, G., Recurrence Times and Capacities for Finite Ergodic Chains, Duke Math. Journal 33, 1, 13–22, 1966.
LOUCHARD, G., Brownian Motion and Algorithms Complexity, B.I.T. 26, 17–34, 1986.
LOUCHARD, G., Random Walks, Gaussian Processes and List Structures, Theor. Comp. Sc. 53, 99–124, 1988.
LOUCHARD, G. and SCHOTT, R., Probabilistic analysis of some distributed algorithms, Tech. Rep.198, Univ. Libre de Bruxelles, Lab. d'Informatique Théorique, 1989.
PETERSON, J. and SILBERSCHATZ, A., Operating Systems Concepts, Addison-Wesley, 1983.
YAO, A.C., An Analysis of a Memory Allocation Scheme for Implementating Stacks, SIAM J. Comp. 10, 2, 398–403, 1981.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1990 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Louchard, G., Schott, R. (1990). Probabilistic analysis of some distributed algorithms. In: Arnold, A. (eds) CAAP '90. CAAP 1990. Lecture Notes in Computer Science, vol 431. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-52590-4_52
Download citation
DOI: https://doi.org/10.1007/3-540-52590-4_52
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-52590-5
Online ISBN: 978-3-540-47042-7
eBook Packages: Springer Book Archive