Skip to content

Commit

Permalink
update README and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidfrontier45 committed Mar 20, 2023
1 parent ff2dc61 commit dfbb2fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["combinatorial", "optimization", "tree", "graph"]
license-file = "LICENSE"
readme = "README.md"
categories = ["algorithms"]
version = "0.1.1"
version = "0.2.0"
edition = "2021"
authors = ["Du Shiqiao <[email protected]>"]

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ fn main() {
let lower_bound_fn = |n: &Node| {
let current_profit = total_profit(n);
let max_remained_profit: u32 = profits[n.len()..].into_iter().sum();
u32::MAX - (current_profit + max_remained_profit)
Some(u32::MAX - (current_profit + max_remained_profit))
};

let cost_fn = |n: &Node| u32::MAX - total_profit(n);
let cost_fn = |n: &Node| Some(u32::MAX - total_profit(n));

let leaf_check_fn = |n: &Node| n.len() == total_items;

Expand Down

0 comments on commit dfbb2fa

Please sign in to comment.