PostgreSQL Source Code  git master
knapsack.h
Go to the documentation of this file.
1 /*
2  * knapsack.h
3  *
4  * Copyright (c) 2017-2024, PostgreSQL Global Development Group
5  *
6  * src/include/lib/knapsack.h
7  */
8 #ifndef KNAPSACK_H
9 #define KNAPSACK_H
10 
11 #include "nodes/bitmapset.h"
12 
13 extern Bitmapset *DiscreteKnapsack(int max_weight, int num_items,
14  int *item_weights, double *item_values);
15 
16 #endif /* KNAPSACK_H */
Bitmapset * DiscreteKnapsack(int max_weight, int num_items, int *item_weights, double *item_values)
Definition: knapsack.c:52