A nonrecursive list moving algorithm

  • Authors:
  • Edward M. Reingold

  • Affiliations:
  • Univ. of Illinois at Urbana-Champaign, Urbana

  • Venue:
  • Communications of the ACM
  • Year:
  • 1973

Quantified Score

Hi-index 48.25

Visualization

Abstract

An efficient, nonrecursive algorithm is given for moving any LISP-type list. In particular, the algorithm requires no storage other than the new nodes into which the lists is to be moved, and no additional bits per node for marking; the algorithm runs in time proportional to the number of nodes in the list. The original list structure is destroyed as it is moved.