Differences between revisions 11 and 12
 ⇤ ← Revision 11 as of 2008-01-16 13:47:30 → Size: 1119 Editor: OlegKobchenko Comment: acl ← Revision 12 as of 2008-12-08 10:45:45 → ⇥ Size: 1122 Editor: anonymous Comment: converted to 1.6 markup Deletions are marked like this. Additions are marked like this. Line 3: Line 3: This page gives the performances of the different verbs to determine all the combinations of size` x `from` y `, see the [:Essays/Combinations:Combinations] page.[[BR]] This page gives the performances of the different verbs to determine all the combinations of size` x `from` y `, see the [[Essays/Combinations|Combinations]] page.<
> Line 5: Line 5: [[BR]][[BR]] <
><
> Line 9: Line 9: ||<:>0||{{{(comb2 i.)}}}||<)> 1.00||<)> 1.00||<)> 1.00||[:RE Boss]|| ||<:>0||{{{(comb2 i.)}}}||<)> 1.00||<)> 1.00||<)> 1.00||[[RE Boss]]|| Line 11: Line 11: From [:Essays/Combinations:Combinations] From [[Essays/Combinations|Combinations]]

This page gives the performances of the different verbs to determine all the combinations of size x from y , see the Combinations page.
All measurements are done wit x=10 and y=20 .

 Place Verb relperf ret res Author 1 comb 2.34 1.17 2.00 RogerHui 2 comb1 12.18 2.69 4.54 RogerHui 0 (comb2 i.) 1.00 1.00 1.00 RE Boss

From Combinations

```comb=: 4 : 0
k=. i.>:d=.y-x
z=. (d\$<i.0 0),<i.1 0
for. i.x do. z=. k ,.&.> ,&.>/\. >:&.> z end.
; z
)

comb1=: ((= +/"1) |.@:I.@# ]) #:@i.@(2&^)

comb2=: 4 : 0               NB.  invoke with x (comb2 i.) y
d=. x-~#y
k=. |.(>:d),\y
z=. (d\$<i.0 0),<i.1 0
for_j. k  do. z=. j ,.&.> ,&.>/\. z end.
; z
)```

From J602beta M.

```combM=: 4 : 0 M.   NB. All size x combinations of i.y
if. (x>:y)+.0=x do. i.(x<:y),x else. (0,.x comb&.<: y),1+x comb y-1 end.
)```

RE Boss/Performance Records/Combinations (last edited 2008-12-08 10:45:45 by anonymous)