public rcv_vector(rcv_vector <T> init) { this.values = init.Values; this.colIdx = init.ColIdx; this.rowIdx = init.RowIdx; this.size = init.Size; }
public rcv_vector <T> add(rcv_vector <T> b) { for (int i = 0; i < b.size; i++) { this.append(b.rowIdx[i], b.colIdx[i], b.values[i]); } return(this); }
rcv_vector <List <int> > getCandidates() { rcv_vector <List <int> > candidates = new rcv_vector <List <int> >(); for (int i = 0; i < emptyFields.getSize(); i++) { //Get the emptyfields by difference of the whole an } return(candidates); }
rc_vector <int> findEmpyFields(rcv_vector <int> given_) { rc_vector <int> empty = new rc_vector <int>(); rc_vector <int> full = new rc_vector <int>(); //implement difference empty = full.difference(given_.convertToRCVector()); return(empty); }
public Sudoku(rcv_vector <int> given_, int hor_, int vert_) { this.vert = vert_; this.hor = hor_; sudoku = new int[hor, vert]; for (int i = 0; i < given_.getSize(); i++) { sudoku[given_.getRow(i), given_.getCol(i)] = given_.getItem(i); } this.emptyFields = findEmpyFields(given_); }