diff options
author | Alexandre Jesus <adbjesus@gmail.com> | 2016-09-22 02:02:20 +0100 |
---|---|---|
committer | Alexandre Jesus <adbjesus@gmail.com> | 2016-09-22 02:02:20 +0100 |
commit | e7fcca35efae60ca2e24225b046ab4e9a801b031 (patch) | |
tree | 3b1fcc72ee7ecce4a5be414b7cfae3ac6c2f2c2d /include/common.h | |
parent | d3878228d84dd2296cd85d914f27087d3cae2835 (diff) | |
download | libuknapsack-e7fcca35efae60ca2e24225b046ab4e9a801b031.tar.gz libuknapsack-e7fcca35efae60ca2e24225b046ab4e9a801b031.zip |
Create tree structure, adapt dfs to use tree (with iterative technique), fix random sort
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 9332e6e..b188955 100644 --- a/include/common.h +++ b/include/common.h @@ -12,6 +12,7 @@ void print_front(struct front_item *); void free_data(struct data *); void free_front(struct front_item *); struct front_item * new_front_item(double, double, struct front_item *, struct front_item *); +struct tree_item * new_tree_item(long int, long int, double, double, struct tree_item *, struct tree_item *); double dist_items(struct item *, struct item *); int len_front(struct front_item *); int cmp_items_ratio(const void * a, const void * b); |