A bit more on this (remember it's for the ex. set m): ]U=.(,distrib)^:(6) i. 0 0 ┌─────────────────┬───────────────┬───────────────┬───────────────┐ │9 26 33 55 │54 54 7 9 │38 43 10 5 23 3│6 54 43 1 12 8 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │43 26 54 │1 6 54 7 3 43 9│9 23 54 38 │5 12 10 8 33 55│ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │10 1 38 7 33 9 26│12 54 8 5 43 │43 3 54 23 │55 6 54 9 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │54 10 5 54 │23 55 6 38 │43 12 9 8 43 9 │1 3 26 54 33 7 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │38 26 9 12 6 33 │43 23 54 3 │10 54 54 5 │55 9 1 43 8 7 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │6 12 3 5 43 54 │9 43 10 54 7 │55 26 1 33 8 │54 9 38 23 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │54 38 9 23 │6 43 26 33 3 12│10 54 54 5 │9 7 1 8 43 55 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │43 12 9 6 54 │26 33 1 9 54 │23 38 54 8 │55 3 5 10 43 7 │ └─────────────────┴───────────────┴───────────────┴───────────────┘
]OU=. 4&phaseII"1 U ┌─────────────────┬───────────────┬───────────────┬───────────────┐ │9 26 33 55 │7 9 54 54 │3 6 10 23 38 43│1 5 8 12 43 54 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │26 43 54 │1 3 6 7 9 43 54│8 23 38 54 │5 9 10 12 33 55│ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │1 7 9 10 26 33 38│6 8 12 43 54 │3 23 43 54 │5 9 54 55 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │5 10 54 54 │8 23 38 55 │7 9 9 12 43 43 │1 3 6 26 33 54 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │6 9 12 26 33 38 │3 23 43 54 │5 10 54 54 │1 7 8 9 43 55 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │3 5 6 12 43 54 │7 9 10 43 54 │1 8 26 33 55 │9 23 38 54 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │9 23 38 54 │3 6 12 26 33 43│5 10 54 54 │1 7 8 9 43 55 │ ├─────────────────┼───────────────┼───────────────┼───────────────┤ │6 9 12 43 54 │1 9 26 33 54 │8 23 38 54 │3 5 7 10 43 55 │ └─────────────────┴───────────────┴───────────────┴───────────────┘ (ds"1,:ads"1)(+/&>)"1 U 7 3 7 7 3 3 3 3 22 6 22 22 6 6 6 6 (ds"1,:ads"1)(+/&>)"1 OU 3 3 3 3 3 3 3 3 6 6 6 6 6 6 6 6 But it's not a proof! :-) Question is: is it wrong or also usable? ik schreef op 19-04-11 18:31: > It probably is usable as well: > > ads=: +/^:2 @:*:@(-/~) > > U=.(,distrib)^:(20) i. 0 0 > > (ds"1,:ads"1)(+/&>)"1 U > 9 9 9 9 13 9 9 9 13 13 3 3 9 7 7 3 19 19 17 17 3 3 3 9 13 11 > 7 > 3 13 11 11 13 > 38 38 38 38 70 54 54 38 70 70 6 6 38 22 22 6 150 150 118 134 6 6 6 54 70 54 > 22 6 > 70 54 54 70 > > > Hallo R.E. Boss, je schreef op 19-04-11 17:39: >> In the original specs the distance of the bucketsums is defined by >> >> +/^:2 @:*:@(-/~) >> >> It may lead to different solutions with your ds. >> >> -- Met vriendelijke groet, =@@i ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
