In-place random list permutations
Loading...
Date
Journal Title
Journal ISSN
Volume Title
Publisher
DOI
10.1016/S0020-0190(99)00076-9
Abstract
We give two algorithms to randomly permute a linked list of length n in place using O(n log n) time and O(log n) stack space in both the expected case and the worst case. The first algorithm uses well-known sequential random sampling, and the second uses inverted sequential random sampling. (C) 1999 Published by Elsevier Science B.V. All rights reserved.