summaryrefslogblamecommitdiffstats
path: root/include/structs.h
blob: 1d1508409aa81486af88085ec1ccc3a5a362e4b7 (plain) (tree)
1
2
3
4
5
6
7
8

                  


                 
             

           


             



                      


                   


                           
               
  








                          




                            
      
#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;
};

struct online_return {
  struct front_item * front;
  struct tree_item * tree;
};

#endif