“…In addition, several other algorithms have been presented for finding N (p, q) [such as Johnsen and Straume (1987), Wang (1988), Wang and Zhang (1998), Pérez-Salvador et al (2002)] and M (p, q) [Gail and Mantel (1977), Diaconis and Gangolli (1995)] allowing nonregular margins; however, it appears that all are exponential in the size of the matrix, even for bounded margins. While in this work we are concerned solely with exact results, we note that many useful approximations for N (p, q) and M (p, q) (in the general case) have been found, as well as approximate sampling algorithms [Holmes and Jones (1996), Chen et al (2005), Greenhill, McKay and Table 3 Partially-filled matrix 0 0 1 1 0 1 0 1 0 1 0 1 0 6 6 4 3 1 1 1 0 0 1 1 1 1 2 2 2 3 3 3 3…”