PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
knapsack.h
Go to the documentation of this file.
1/*
2 * knapsack.h
3 *
4 * Copyright (c) 2017-2025, 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
13extern 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