require 'stats'

Given a result from comb pick the entries which
maximize the minimum difference between
any two adjacent entries.

   (#~ [: (= >./) [: <./"(1) 2 -~/\"1 ])3 comb 8
0 3 6
0 3 7
0 4 7
1 4 7

Then from this result, pick the entries which
maximize the next highest difference between
any two adjacent entries, repeating until
every remaining difference has been considered.

In this case (3 comb 8), I would want

0 3 7
0 4 7

I should probably just code this up explicitly
but I had hoped I could derive this result
tacitly, but I keep running up against the
2 argument limit, for tacit expressions.

Does anyone see an obvious approach, here?

Thanks,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to