PPL Logo

ck-ldb/tm_bucket.c File Reference

Go to the source code of this file.

Functions

int tab_cmp (const void *x1, const void *x2)
int old_bucket_id (int i, int j, bucket_list_t bucket_list)
int bucket_id (int i, int j, bucket_list_t bucket_list)
void display_bucket (bucket_t *b)
void check_bucket (bucket_t *b, double **tab, double inf, double sup, int N)
void display_pivots (bucket_list_t bucket_list)
void display_bucket_list (bucket_list_t bucket_list)
void add_to_bucket (int id, int i, int j, bucket_list_t bucket_list)
void dfs (int i, int inf, int sup, double *pivot, double *pivot_tree, int depth, int max_depth)
void built_pivot_tree (bucket_list_t bucket_list)
void fill_buckets (bucket_list_t bucket_list)
int is_power_of_2 (int val)
void partial_sort (bucket_list_t *bl, double **tab, int N, int nb_buckets)
void next_bucket_elem (bucket_list_t bucket_list, int *i, int *j)
int add_edge_3 (double **tab, tree_t *tab_node, tree_t *parent, int i, int j, int N, int *nb_groups)
int try_add_edge (double **tab, tree_t *tab_node, tree_t *parent, int arity, int i, int j, int N, int *nb_groups)
void free_bucket (bucket_t *bucket)
void free_tab_bucket (bucket_t **bucket_tab, int N)
void free_bucket_list (bucket_list_t bucket_list)
void bucket_grouping (double **tab, tree_t *tab_node, tree_t *new_tab_node, int arity, int N, int M, long int k)

Variables

bucket_list_t global_bl


Function Documentation

int tab_cmp ( const void *  x1,
const void *  x2 
)

Definition at line 24 of file tm_bucket.c.

References e1, and _bucket_list_t::tab.

Referenced by next_bucket_elem(), and partial_sort().

int old_bucket_id ( int  i,
int  j,
bucket_list_t  bucket_list 
)

Definition at line 46 of file tm_bucket.c.

References n, _bucket_list_t::nb_buckets, p, _bucket_list_t::pivot, and _bucket_list_t::tab.

int bucket_id ( int  i,
int  j,
bucket_list_t  bucket_list 
)

Definition at line 74 of file tm_bucket.c.

References _bucket_list_t::max_depth, p, _bucket_list_t::pivot_tree, and _bucket_list_t::tab.

Referenced by fill_buckets().

void display_bucket ( bucket_t b  ) 

Definition at line 95 of file tm_bucket.c.

References bucket_t::bucket, bucket_t::bucket_len, bucket_t::nb_elem, and printf().

Referenced by add_to_bucket(), and display_bucket_list().

void check_bucket ( bucket_t b,
double **  tab,
double  inf,
double  sup,
int  N 
)

Definition at line 102 of file tm_bucket.c.

References bucket_t::bucket, coord::i, coord::j, bucket_t::nb_elem, and printf().

Referenced by display_bucket_list().

void display_pivots ( bucket_list_t  bucket_list  ) 

Definition at line 114 of file tm_bucket.c.

References _bucket_list_t::nb_buckets, _bucket_list_t::pivot, and printf().

Referenced by bucket_grouping(), and display_bucket_list().

void display_bucket_list ( bucket_list_t  bucket_list  ) 

void add_to_bucket ( int  id,
int  i,
int  j,
bucket_list_t  bucket_list 
)

void dfs ( int  i,
int  inf,
int  sup,
double pivot,
double pivot_tree,
int  depth,
int  max_depth 
)

Definition at line 174 of file tm_bucket.c.

References p.

Referenced by built_pivot_tree().

void built_pivot_tree ( bucket_list_t  bucket_list  ) 

void fill_buckets ( bucket_list_t  bucket_list  ) 

Definition at line 208 of file tm_bucket.c.

References add_to_bucket(), bucket_id(), and _bucket_list_t::N.

Referenced by partial_sort().

int is_power_of_2 ( int  val  ) 

Definition at line 223 of file tm_bucket.c.

References n.

Referenced by partial_sort().

void partial_sort ( bucket_list_t bl,
double **  tab,
int  N,
int  nb_buckets 
)

void next_bucket_elem ( bucket_list_t  bucket_list,
int i,
int j 
)

int add_edge_3 ( double **  tab,
tree_t tab_node,
tree_t parent,
int  i,
int  j,
int  N,
int nb_groups 
)

Definition at line 352 of file tm_bucket.c.

References _tree_t::child, _tree_t::parent, and printf().

Referenced by try_add_edge().

int try_add_edge ( double **  tab,
tree_t tab_node,
tree_t parent,
int  arity,
int  i,
int  j,
int  N,
int nb_groups 
)

Definition at line 398 of file tm_bucket.c.

References add_edge_3(), _tree_t::child, and _tree_t::parent.

Referenced by bucket_grouping(), and super_fast_grouping().

void free_bucket ( bucket_t bucket  ) 

Definition at line 427 of file tm_bucket.c.

References bucket_t::bucket, and free().

Referenced by free_tab_bucket().

void free_tab_bucket ( bucket_t **  bucket_tab,
int  N 
)

Definition at line 433 of file tm_bucket.c.

References free(), and free_bucket().

Referenced by free_bucket_list().

void free_bucket_list ( bucket_list_t  bucket_list  ) 

void bucket_grouping ( double **  tab,
tree_t tab_node,
tree_t new_tab_node,
int  arity,
int  N,
int  M,
long int  k 
)


Variable Documentation

Definition at line 22 of file tm_bucket.c.


Generated on Sat May 26 08:08:07 2012 for Charm++ by  doxygen 1.5.5