pub mod quick_find;
pub mod quick_union;
pub mod weighted_quick_union;
pub mod improved;
pub trait UF {
fn new(n: usize) -> Self;
fn union(&mut self, p: usize, q: usize);
fn connected(&self, p: usize, q: usize) -> bool;
#[allow(unused_variables)]
fn find(&self, p: usize) -> usize {
unimplemented!()
}
fn count(&self) -> usize {
unimplemented!()
}
}