-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtables.h
36 lines (26 loc) · 927 Bytes
/
tables.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* tables.h
**
** This file contains declarations needed when calculating the neighborhood
** and coverings data tables. The declarations for using those tables are
** also in this file.
**
*/
#ifndef _tables_
#define _tables_
/* the ranks of the k-sets of the solution */
extern rankType *kset;
/* parameters used during the dynamic allocation of the tables */
extern int neighborLen, coverLen, coveredLen;
/* neighbor and coverings data tables */
extern rankType *neighbors, *coverings;
/* counts of covering k-sets with a given m-set */
extern coveredType *covered;
/* costs and cost differences associated to a m-set covered x times */
extern costType *costs;
extern costDType *costds;
void freeTables(void);
void computeTables(int tl, int kl, int ml, int vl);
void bIs(int bl);
void calculateOneCovering(rankType kRank, rankType *buf);
void sortSolution(void);
#endif