Ok, if I understand you properly, alg represents, in tree form, the sequences enumerated by perm:
perm=: ! A.&i. ] NB. or require'stats' perm 4 But perm 11 fails on my current machine. I have not yet figured out where the hi/lo part comes into play. Is that part yet to be written? Thanks, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
