void knapsack_rational ( int n, double mass_limit, double p[], double w[], double x[], double *mass, double *profit ); void knapsack_reorder ( int n, double p[], double w[] );