There is an absent line - defining "ag" in https://code.jsoftware.com/wiki/Fifty_Shades_of_J/Chapter_33#Minimising_switches_between_adjacent_permutations - between these two lines:
Now choose between right and left on the basis of parity : and finally bring everything together in I will probably be able to figure out the definition of "ag" eventually but it would be helpful if there were a source to which I could refer to find missing items like this. Does anyone have a pointer for this? Thanks, Devon -- Devon McCormick, CFA Quantitative Consultant ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
