Skip to content

Commit eb2d5e6

Browse files
committed
Merge branch 'main' of github.com:CodingThrust/problem-reductions
2 parents 73b7c00 + cc35756 commit eb2d5e6

102 files changed

Lines changed: 2592 additions & 485 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

benches/solver_benchmarks.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,10 @@ fn bench_comparison(c: &mut Criterion) {
197197
let solver = BruteForce::new();
198198

199199
// MaximumIndependentSet with 8 vertices
200-
let is_problem =
201-
MaximumIndependentSet::new(SimpleGraph::new(8, vec![(0, 1), (2, 3), (4, 5), (6, 7)]), vec![1i32; 8]);
200+
let is_problem = MaximumIndependentSet::new(
201+
SimpleGraph::new(8, vec![(0, 1), (2, 3), (4, 5), (6, 7)]),
202+
vec![1i32; 8],
203+
);
202204
group.bench_function("MaximumIndependentSet", |b| {
203205
b.iter(|| solver.find_best(black_box(&is_problem)))
204206
});
@@ -228,7 +230,10 @@ fn bench_comparison(c: &mut Criterion) {
228230
});
229231

230232
// MaxCut with 8 vertices
231-
let mc_problem = MaxCut::new(SimpleGraph::new(8, vec![(0, 1), (2, 3), (4, 5), (6, 7)]), vec![1, 1, 1, 1]);
233+
let mc_problem = MaxCut::new(
234+
SimpleGraph::new(8, vec![(0, 1), (2, 3), (4, 5), (6, 7)]),
235+
vec![1, 1, 1, 1],
236+
);
232237
group.bench_function("MaxCut", |b| {
233238
b.iter(|| solver.find_best(black_box(&mc_problem)))
234239
});

docs/paper/reductions.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
]
247247

248248
#block(width: 100%, inset: (x: 2em, y: 1em))[
249-
*Abstract.* We present formal definitions for computational problems and polynomial-time reductions implemented in the `problemreductions` library. For each reduction, we state theorems with constructive proofs that preserve solution structure.
249+
*Abstract.* We present formal definitions for computational problems and polynomial-time reductions implemented in the `problem-reductions` library. For each reduction, we state theorems with constructive proofs that preserve solution structure.
250250
]
251251

252252

0 commit comments

Comments
 (0)