Abstract
The theoretical presentation and analysis is given for two families of simple in-place merging algorithms and their limiting cases. The first family merges stably inO(k·n) time andO(n 1/k ) additional space with a limiting case running inO(n logn) time and constant space. The second family merges unstably inO (k ·n) time andO(log k n) space with a limiting case running inO(nG(n)) time and constant space. HereG(n) is the leastk such thatF(k) ≧n whereF(0)=1 andF(i)=2 F(i−1) fori≧1. Each algorithm gives rise to a corresponding merge sort.
Published Version
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have