Class NRooks

java.lang.Object
edu.cmu.tetrad.search.utils.NRooks

public class NRooks extends Object

Returns row positions for placing rooks for an n x n matrix so the rooks cannot attach each other, with a given boolean[][] specification of where rooks are allowed to be placed. For this spec, spec[i][j] = true iff a rook can be placed there.

Had some help from ChatGPT for this.

Version:
$Id: $Id
Author:
josephramsey, ChatGPT