(?.26 2$2 3);(,[EMAIL PROTECTED])'PC'{~(?.26 2$2 3)((],-.,-.)@[EMAIL 
PROTECTED])`((],0 1 2-.])@{:@[)`]}"1 T=: 26 3$0

On Thu, 16 Nov 2006, Roger Hui wrote:

+ ttt=: 3 : 0
+  (a.{~ 65+i.y) ,. ('CP' {~ 0 1 2 e. ?&3)"0 >:y [EMAIL PROTECTED] 2
+ )
+
+    ttt 5
+ ACPC
+ BCCP
+ CCCP
+ DCPC
+ ECCP
+    ttt 7
+ ACPP
+ BCCP
+ CCPC
+ DPCC
+ ECPP
+ FCPP
+ GCPC
+
+
+
+ ----- Original Message -----
+ From: Brian Schott <[EMAIL PROTECTED]>
+ Date: Thursday, November 16, 2006 10:49 am
+ Subject: [Jprogramming] taste testing triads (ttt)
+
+ >     Tonight we are having a book club review of Blink by
+ > Malcolm Gladwell. We want to have a "triad" taste test
+ > between Coke and Pepsi. Each person receives three cups of
+ > soda each marked only with a single letter and either a 1, a
+ > 2, or a 3; the letter distinguishes between the people (up
+ > to 26 people). The tester needs a randomized setup table to
+ > fill the cups in such a way that every person gets either 2
+ > Pepsi's and 1 Coke or 1 Pepsi and 2 Cokes, so that each
+ > person can report which cup is different in their sample.
+ >
+ >     Can you produce the table? It is not essential that
+ > exactly the same number of triads have Coke and Pepsi
+ > singletons.
+ >
+ >     A sample output might look like this.
+ >
+ > person      cup1    cup2    cup3
+ > A   P       P       C
+ > B   P       C       P
+ > C   C       P       C
+ > ...
+ > Z   P       C       P
+
+
+ ----------------------------------------------------------------------
+ For information about J forums see http://www.jsoftware.com/forums.htm
+

(B=) <----------my "sig"

Brian Schott
Atlanta, GA, USA
schott DOT bee are eye eh en AT gee em ae eye el DOT com
http://schott.selfip.net/~brian/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to