http://alexbowe.com/succinct-debruijn-graphs/
There's a bit of a linguistic conflict, here - the terms rank and
select used here are different from what a j programmer might expect:
rank=: 1 :('m+/@{.=')
1 (5) rank 0 1 1 0 1 0 0 1 0 0
3
select=: 1 :('m i.~ +/\@:=')
1 (4) select 0 1 1 0 1 0 0 1 0 0
7
But how might we implement the sort described here?
Thanks,
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm