© 1988 by British Computer Society
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
Unstable linear time O(1) space merging
ák1 *
urian2 
1 Computer Centre of Tesla Roznov, 1. maje 1000, 75661 Rosnov pod Radhostem, Czechoslovakia, 2 Research Institute of Computer Technology (VUVT) Zilina, Nerudova 33, 01001 Zilinia, Czechoslovakia
In this paper a version of unstable merging of two neighbouring segments in an one-dimensional array is presented. The algorithm runs in O(1) space and in linear time. It is based on stable merging,1 but its working area is not chosen outside merged segments; instead it occupies the end of one of them. Despite the fact that there are no restrictions on segment sizes, the algorithm is the fastest in its class of those published so far.
Received September 1986. revised January 1987.
* Computer Centre of Tesla Ro
nov, 1. máje 1000, 75661 Ro
nov pod Radho
t
m, Czechoslovakia
Research Institute of Computer Technology (VÚ;VT)
ilina, Nerudova 33, 01001
ilina, Czechoslovakia