Generates all permutations of an array of items
Date/Time of Processing: Monday 30 May 1994 02:50:45Pm Overall Assessment of System: OK Classification of System: B Basis of Classification -- Syntax Errors PASS Completeness PASS Independence from External Libraries PASS Independence from a Specific Ada Compiler FAIL Explanations for failures -- System contains compiler-specific pragmas or uses Machine_Code Number of ... Files 1 Library Units 3 Lines 306 Statements 78 Comments 158
languages/ada/asr/components/permutate: File Name Size --------- ---- permutate.zip 4,267 Totals ============== ============== 1 Files 4,267
This is a generic package which, given an array of items, forms all possible permutations using these items. The package does so by providing a generic permutation class, within which is an iterator. The iterator has a generic formal subprogram to which it passes each permutation. The package may make a nice example of the following Ada features: nested generics, recursion, generic formal subprograms as a method of implementing an iterator.
DATE VERSION AUTHOR HISTORY none yet...
This prologue must be included in all copies of this software. This software is released to the Ada community. This software is released to the Public Domain (note: software released to the Public Domain is not subject to copyright protection). Restrictions on use or distribution: NONE
This software and its documentation are provided "AS IS" and without any expressed or implied warranties whatsoever. No warranties as to performance, merchantability, or fitness for a particular purpose exist. The user is advised to test the software thoroughly before relying on it. The user must assume the entire risk and liability of using this software. In no event shall any person or organization of people be held responsible for any direct, indirect, consequential or inconsequential damages or lost profits.