|
Defines |
#define | MAXCKEYS 32768 |
#define | MAXALPHA 4 |
#define | MAXPSNODES 64 |
#define | RFACTOR 1000 |
Functions |
static int | get_numiter (int nnode, int nedges, int alpha, double bound) |
static int | create_cutset (int nnodes, int nps, int *psnodes, int *pssubset, int nremain, int *edge, double *length, int *treeinf, unsigned int *nkey, char *ckeys, int *cutset, int *cutsize, double *cutweight, int *foundset) |
static int | get_alphacut (int nnodes, int nedges, int *edge, double *length, int *treeinf, unsigned int *nkey, char *ckeys, int alpha, double bound, setlist **sets, int(*choose_edge)(int, int *, double *, double, void *, int *), void *process_info, int(*process_set)(int *, int, double, void *, setlist **)) |
static void | merge_components (int comp1, int comp2, int *treeinf, int *newnode) |
int | karger (int nnodes, int nedges, int *elist, double *elen, int alpha, double bound, double maxtime, int seed, setlist **sets, int(*choose_edge)(int, int *, double *, double, void *, int *), void *process_info, int(*process_set)(int *, int, double, void *, setlist **)) |
int | choose_edge1 (int nremain, int *edge, double *length, double tweight, void *process_info, int *e) |
int | add_cut (int *cutset, int cutsize, double cutweight, void *process_info, setlist **sets) |
int | karg_getprob (char *fname, int *nnodes, int *nedges, int **elist, double **elen) |
int | process_cut (int *cutset, int cutsize, double cutweight, void *process_info, setlist **sets) |
Variables |
int | max_numiter = 0 |
static int get_alphacut |
( |
int |
nnodes, |
|
|
int |
nedges, |
|
|
int * |
edge, |
|
|
double * |
length, |
|
|
int * |
treeinf, |
|
|
unsigned int * |
nkey, |
|
|
char * |
ckeys, |
|
|
int |
alpha, |
|
|
double |
bound, |
|
|
setlist ** |
sets, |
|
|
int(*)(int, int *, double *, double, void *, int *) |
choose_edge, |
|
|
void * |
process_info, |
|
|
int(*)(int *, int, double, void *, setlist **) |
process_set |
|
) |
|
|
int karger |
( |
int |
nnodes, |
|
|
int |
nedges, |
|
|
int * |
elist, |
|
|
double * |
elen, |
|
|
int |
alpha, |
|
|
double |
bound, |
|
|
double |
maxtime, |
|
|
int |
seed, |
|
|
setlist ** |
sets, |
|
|
int(*)(int, int *, double *, double, void *, int *) |
choose_edge, |
|
|
void * |
process_info, |
|
|
int(*)(int *, int, double, void *, setlist **) |
process_set |
|
) |
|
|