Hi, I am looking for help with Vertical Percolation, so far Ineed help with the open method.
ASSIGNMENT
package algs15.perc;
//import stdlib.*;
import algs15.*;
// Uncomment the import statements above.
// You can test this using InteractivePercolationVisualizer andPercolationVisualizer
// All methods should make at most a constant number of calls tothe UF data structure,
// except percolates(), which may make up to N calls to the UF datastructure.
public class Percolation {
int N;
boolean[] open;
WeightedUF full;
WeightedUF perc;
public Percolation(int N) {
this.N = N;
this.open = new boolean[N*N];
this.full = new WeightedUF(N*N); //Top row
this.perc = new WeightedUF(N*N); //Bottom Row
}
//
PayPal Gateway not configured
PayPal Gateway not configured