skip to main content
OSTI.GOV title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: Recursive algorithm to generate stack permutations: an exercise in software adaptation

Conference ·
OSTI ID:6294375

A brute force method of generating stack permutations is to generate all permutations and then reject those that do not satisfy the stack permutation property. We develop a better (recursive) algorithm for generating stack permutations by adaptation of a formally derived recursive algorithm for generating permutations. We first analyze properties of stack permutations to arrive at a test condition which can be used in conjunction with the permutation algorithm. This test is then integrated into that algorithm to achieve the desired result.

Research Organization:
Argonne National Lab., IL (USA)
DOE Contract Number:
W-31-109-ENG-38
OSTI ID:
6294375
Report Number(s):
CONF-830716-1; ON: DE83010743
Resource Relation:
Conference: 10. international colloquium on automata languages and programming, Barcelona, Spain, 18 Jul 1983
Country of Publication:
United States
Language:
English