pub enum WClasses {
FPT,
W1,
W2,
WP,
XP,
}Expand description
The W-hierarchy of parameterized complexity classes.
Variants§
FPT
Fixed-parameter tractable (lowest complexity).
W1
W[1]: k-clique-hard problems.
W2
W[2]: k-dominating-set-hard problems.
WP
W[P]: W-hierarchy top (bounded above by XP).
XP
Slice-wise polynomial: polynomial for each fixed k.
Implementations§
Source§impl WClasses
impl WClasses
Sourcepub fn containment_chain(&self) -> String
pub fn containment_chain(&self) -> String
Returns a description of the containment chain FPT ⊆ W[1] ⊆ W[2] ⊆ … ⊆ XP.
Sourcepub fn is_tractable(&self) -> bool
pub fn is_tractable(&self) -> bool
Returns true if this class is considered tractable in the FPT sense.
Trait Implementations§
impl Eq for WClasses
impl StructuralPartialEq for WClasses
Auto Trait Implementations§
impl Freeze for WClasses
impl RefUnwindSafe for WClasses
impl Send for WClasses
impl Sync for WClasses
impl Unpin for WClasses
impl UnsafeUnpin for WClasses
impl UnwindSafe for WClasses
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