blob: 7c39b4d2aef836ed84858a5e9dce8857e1f65e02 (
plain) (
tree)
|
|
#ifndef _STRUCTS_H
#define _STRUCTS_H
#include <time.h>
struct item {
double p;
double w;
};
struct data {
long int N;
struct item * items;
double allp;
double allw;
};
struct front_item {
struct item i;
struct front_item * next;
struct front_item * prev;
clock_t time;
};
struct tree_item {
long int depth;
long int itemi;
struct item values;
struct tree_item * prev;
struct tree_item * next;
};
#endif
|