advance
This commit is contained in:
parent
27abf00669
commit
9a14144439
1 changed files with 11 additions and 0 deletions
|
@ -41,6 +41,12 @@ export class ReducingGuesser implements Guessing {
|
|||
}
|
||||
this.candidates = new Set(next_cnd.keys());
|
||||
}
|
||||
|
||||
restraint_candidates(constraints: [string, Info][]) {
|
||||
const new_cand = new Set<string>();
|
||||
for (const cand of this.candidates.values()) if (matches_constraints(cand, constraints)) new_cand.add(cand);
|
||||
return new_cand;
|
||||
}
|
||||
}
|
||||
|
||||
function filter_map<K, T>(
|
||||
|
@ -150,3 +156,8 @@ Deno.test("test_smallest_cuts", () => {
|
|||
);
|
||||
assertEquals(best, "ba");
|
||||
});
|
||||
|
||||
function matches_constraints(cand: string, constraints: [string, Info][]) {
|
||||
// TODO
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue