Beispiel #1
0
 public rcv_vector(rcv_vector <T> init)
 {
     this.values = init.Values;
     this.colIdx = init.ColIdx;
     this.rowIdx = init.RowIdx;
     this.size   = init.Size;
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
    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);
    }
Beispiel #4
0
    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);
    }
Beispiel #5
0
 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_);
 }