pub struct BoundedSearchTree {
pub max_depth: usize,
pub branching_vector: Vec<usize>,
}Expand description
A bounded search tree algorithm with maximum depth and branching vector.
Fields§
§max_depth: usizeMaximum recursion depth (equals the parameter k).
branching_vector: Vec<usize>Branching factor at each level.
Implementations§
Source§impl BoundedSearchTree
impl BoundedSearchTree
Sourcepub fn run(&self) -> bool
pub fn run(&self) -> bool
Simulates the bounded search tree and returns true if the search terminates. Returns true when max_depth > 0 (non-trivial search).
Sourcepub fn running_time_analysis(&self) -> String
pub fn running_time_analysis(&self) -> String
Estimates the running time based on the branching vector. Uses the characteristic polynomial root as the base.
Trait Implementations§
Source§impl Clone for BoundedSearchTree
impl Clone for BoundedSearchTree
Source§fn clone(&self) -> BoundedSearchTree
fn clone(&self) -> BoundedSearchTree
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 BoundedSearchTree
impl RefUnwindSafe for BoundedSearchTree
impl Send for BoundedSearchTree
impl Sync for BoundedSearchTree
impl Unpin for BoundedSearchTree
impl UnsafeUnpin for BoundedSearchTree
impl UnwindSafe for BoundedSearchTree
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