Raul, I truly appreciate your comments and while they seem very reasonable I do not know how to delve more deeply into the permutations as you suggest. I am leaning more to dropping the idea of finding a solution based on Roger’s algorithm. Instead I want to look more closely at his results for the verbs AR and AC. In his algorithm he takes the larger of the two results, that is the larger of AR or AC , where he expects one of each pair to be zero and the other to be a valid candidate. Whenever there is a nonzero AC it is a unique and correct candidate, but the values for AR are selected using index of, i. . I am suspicious that the selection of AR is almost arbitrary and is causing the problem. I think a human being could do a better job of selecting among the alternatives from AR.
By the way in my definition for the verb AR the final negative one should be a zero, but it doesn’t change things much. Also in my text above I am capitalizing AR and AC but they are lowercase verbs. If I am correct about using AR and AC to help a human, I would use a variation on AC that shows all of the possible results instead of the one captured by the ‘index of’ primitive. In light of that I am looking for ways to use 4 x 4 arrangements of dots to display each of the cell’s information. I was looking in the Unicode lists for 4 x 4 dot arrangements but was unable to find any, so I am trying to imagine alternatives. So far I can only think of using viewmat to construct the dot patterns. Any more ideas? > -- (B=) <-----my sig Brian Schott ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm