aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexandre Jesus <adbjesus@gmail.com>2016-09-25 15:24:57 +0100
committerAlexandre Jesus <adbjesus@gmail.com>2016-09-25 15:24:57 +0100
commit5deedbbbf98e317ef3258ae637097a42ad7e9fd3 (patch)
treeabc7e29bb1d38b3eb593315f0765520a0b48c520 /include
parentab36da1ba07529c54c462906f4b2c2b305b84168 (diff)
downloadlibuknapsack-5deedbbbf98e317ef3258ae637097a42ad7e9fd3.tar.gz
libuknapsack-5deedbbbf98e317ef3258ae637097a42ad7e9fd3.zip
Online method
Diffstat (limited to 'include')
-rw-r--r--include/dfs.h1
-rw-r--r--include/random_heuristic.h1
-rw-r--r--include/structs.h5
3 files changed, 7 insertions, 0 deletions
diff --git a/include/dfs.h b/include/dfs.h
index 340f5c8..2a2c187 100644
--- a/include/dfs.h
+++ b/include/dfs.h
@@ -4,5 +4,6 @@
#include "structs.h"
struct front_item * dfs(struct data *);
+struct online_return dfs_online(struct data *, struct front_item *, struct tree_item *, long int);
#endif
diff --git a/include/random_heuristic.h b/include/random_heuristic.h
index 586777e..9e9dac6 100644
--- a/include/random_heuristic.h
+++ b/include/random_heuristic.h
@@ -4,5 +4,6 @@
#include "structs.h"
struct front_item * random_heuristic(struct data *);
+struct online_return random_heuristic_online(struct data *, struct front_item *, struct tree_item *);
#endif
diff --git a/include/structs.h b/include/structs.h
index 7c39b4d..1d15084 100644
--- a/include/structs.h
+++ b/include/structs.h
@@ -30,4 +30,9 @@ struct tree_item {
struct tree_item * next;
};
+struct online_return {
+ struct front_item * front;
+ struct tree_item * tree;
+};
+
#endif