Having gotten most of the way through coding an
alternate (geometric) construction of the subsequences
array discussed earlier, I'm having enough difficulty
figuring out how to make the final knitting-together
to ask for some advice.

Given bc, shown below, I am seeking a verb that will
produce desiredOutput (at the end of the following
console example.)

   ]bc   NB. boxed components
+-------+-------+-------+-------+-------+
|0 0 0 0|0 0 0 1|0 0 1 0|0 1 0 0|1 0 0 0|
|       |       |0 0 1 1|0 1 1 0|1 1 0 0|
|       |       |       |0 1 1 1|1 1 1 0|
|       |       |       |       |1 1 1 1|
+-------+-------+-------+-------+-------+
   $ &.> bc
+---+---+---+---+---+
|1 4|1 4|2 4|3 4|4 4|
+---+---+---+---+---+
   |:,: bc
+-------+
|0 0 0 0|
+-------+
|0 0 0 1|
+-------+
|0 0 1 0|
|0 0 1 1|
+-------+
|0 1 0 0|
|0 1 1 0|
|0 1 1 1|
+-------+
|1 0 0 0|
|1 1 0 0|
|1 1 1 0|
|1 1 1 1|
+-------+
   desiredOutput
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 1 0
0 1 1 1
1 0 0 0
1 1 0 0
1 1 1 0
1 1 1 1


Thank you,

Tracy Harms


      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to