pub struct Input {
size: usize,
aa: usize,
all_valves: usize,
flow: Vec<u32>,
distance: Vec<u32>,
closest: Vec<u32>,
}
Expand description
Simplified graph of valves. Valves are stored in descending order of flow so the valve at index 0 has the highest flow, valve at index 1 the second highest and so on. This descending order is used by the heuristic to prune branches.
size
Number of non-zero valves plus 1 forAA
todo
Bitmask with a1
for each initial unopened non-zero valve. For example if there are 5 valves this would be binary11111
.flow
Stores the flow for each valvedistance
Adjacency matrix of distances between each pair of valves.
Fields§
§size: usize
§aa: usize
§all_valves: usize
§flow: Vec<u32>
§distance: Vec<u32>
§closest: Vec<u32>
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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