void knapsack_brute ( int n, int *v, int *w, int k, int *vmax, int *wmax, int *smax ); int i4vec_dot_product ( int n, int x[], int y[] ); int i4vec_sum ( int n, int a[] ); void subset_next ( int n, int *s );