14namespace layer1_foundations {
15namespace data_structures {
82 int f_v = (verbose_level >= 1);
83 int f_vv = (verbose_level >= 2);
89 cout <<
"vector_hashing::compute_tables" << endl;
91 for (i = 0; i <
N; i++) {
98 int_vec_print(cout,
H,
N);
106 cout <<
"N =" <<
N << endl;
107 cout <<
"nb_types=" <<
nb_types << endl;
121 for (i = 0; i <
N; i++) {
128 cout <<
"H sorted:" << endl;
133 cout <<
"vector_hashing::compute_tables() N=" <<
N
134 <<
" nb_types=" <<
nb_types << endl;
144 cout <<
"j=" << j <<
" index " << idx << endl;
145 cout << idx <<
" : ";
147 cout <<
" : " <<
H[idx] << endl;
157 cout <<
"vector_hashing N=" <<
N <<
" nb_types=" <<
nb_types << endl;
158 cout <<
"data:" << endl;
159 for (i = 0; i <
N; i++) {
162 cout <<
" : " <<
H[i] << endl;
165 cout <<
"H sorted:" << endl;
169 cout <<
"types:" << endl;
179 cout <<
"j=" << j <<
" index " << idx << endl;
180 cout << idx <<
" : ";
182 cout <<
" : " <<
H[idx] << endl;
185 cout <<
"type_value:" << endl;
187 cout << setw(4) << i <<
" : " << setw(10) <<
type_value[i] << endl;
193 int h, idx, f, l, i, I;
198 cout <<
"vector_hashing::rank did not "
199 "find hash value h=" << h << endl;
204 for (i = 0; i < l; i++) {
212 cout <<
"vector_hashing::rank did not find "
213 "data f=" << f <<
" l=" << l << endl;
214 cout <<
"data:" << endl;
217 cout <<
"hash h=" << h << endl;
218 cout <<
"idx=" << idx << endl;
219 for (i = 0; i < l; i++) {
222 cout << I <<
" : " << idx <<
" : ";
int hash(int *v, int len, int bit_length)
a collection of functions related to sorted vectors
int int_vec_search(int *v, int len, int a, int &idx)
void int_vec_classify(int length, int *the_vec, int *&the_vec_sorted, int *&sorting_perm, int *&sorting_perm_inv, int &nb_types, int *&type_first, int *&type_len)
int int_vec_compare(int *p, int *q, int len)
void compute_tables(int verbose_level)
void unrank(int rk, int *data)
void allocate(int data_size, int N, int bit_length)
data_structures::int_vec * Int_vec
#define Int_vec_print(A, B, C)
orbiter_kernel_system::orbiter_session * Orbiter
global Orbiter session
the orbiter library for the classification of combinatorial objects