You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Using a modified version of this algorithm: https://web.archive.org/web/20160911054636/http://www.dcs.gla.ac.uk/~pat/jchoco/clique/indSetMachrahanish/papers/tomita2003.pdf
// // Using this algorithm: https://web.archive.org/web/20160911054636/http://www.dcs.gla.ac.uk/~pat/jchoco/clique/indSetMachrahanish/papers/tomita2003.pdf
187
-
// fn expand(
188
-
// mut r: &mut [(u16, u16)],
189
-
// g: &BitArray<[u64; BAL]>,
190
-
// q: &mut heapless::Vec<u16, MAX_C>,
191
-
// q_max: &mut heapless::Vec<u16, MAX_C>,
192
-
// cs: &mut [heapless::Vec<u16, MAX_C>; MAX_C],
193
-
// ) {
194
-
// while let Some(((p, color), rest)) = r.split_last_mut() {
195
-
// let p = *p as usize;
196
-
// if q.len() + *color as usize + 1 > q_max.len() {
197
-
// q.push(p as u16).unwrap();
198
-
199
-
// let mut new_r = heapless::Vec::<(u16, u16), MAX_C>::new();
200
-
// for (i, _) in rest.iter() {
201
-
// if unsafe { *g.get_unchecked(*i as usize * MAX + p) } {
// Using this algorithm: https://web.archive.org/web/20160911054636/http://www.dcs.gla.ac.uk/~pat/jchoco/clique/indSetMachrahanish/papers/tomita2003.pdf
0 commit comments