pub struct Kernelization {
pub problem: String,
pub parameter: String,
pub kernel_size_bound: KernelSizeBound,
}Expand description
Kernelization: reduce instance to bounded-size kernel.
Fields§
§problem: String§parameter: String§kernel_size_bound: KernelSizeBoundImplementations§
Source§impl Kernelization
impl Kernelization
pub fn new(prob: &str, param: &str, bound: KernelSizeBound) -> Self
pub fn vertex_cover_2k() -> Self
pub fn feedback_vertex_set() -> Self
pub fn is_polynomial_kernel(&self) -> bool
pub fn kernel_size(&self, k: usize) -> Option<f64>
Trait Implementations§
Source§impl Clone for Kernelization
impl Clone for Kernelization
Source§fn clone(&self) -> Kernelization
fn clone(&self) -> Kernelization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Kernelization
impl RefUnwindSafe for Kernelization
impl Send for Kernelization
impl Sync for Kernelization
impl Unpin for Kernelization
impl UnsafeUnpin for Kernelization
impl UnwindSafe for Kernelization
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more