Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
testDynSetHash.C File Reference
#include <ctime>
#include <gsl/gsl_rng.h>
#include <cassert>
#include <iostream>
#include <ahFunctional.H>
#include <ahSort.H>
#include <tpl_sort_utils.H>
#include <tpl_dynSetHash.H>
#include <tpl_dynMapOhash.H>
#include <string>
Include dependency graph for testDynSetHash.C:

Go to the source code of this file.

Macros

#define NumItems   10000
 

Functions

template<template< typename, class > class SetType>
unsigned long insert_n_random_items_in_set (SetType< unsigned long, Aleph::equal_to< unsigned long > > &table, DynArray< unsigned long > &keys, unsigned long n)
 
template<template< typename, class > class HashTable>
HashTable< unsigned long, Aleph::equal_to< unsigned long > > create_table (const HashTable< unsigned long, Aleph::equal_to< unsigned long > > &other)
 
template<template< typename, class > class HashTable>
void test_DynSetLinHash (size_t n)
 
template<class HashTable >
unsigned long insert_n_random_items_in_map (HashTable &table, DynArray< unsigned long > &keys, unsigned long n)
 
template<template< typename, typename, class > class HashTable>
void test_DynMapLinHash (size_t n)
 
int main (int argc, char *argv[])
 

Variables

gsl_rng * r = NULL
 

Macro Definition Documentation

◆ NumItems

#define NumItems   10000

Definition at line 38 of file testDynSetHash.C.

Function Documentation

◆ create_table()

template<template< typename, class > class HashTable>
HashTable< unsigned long, Aleph::equal_to< unsigned long > > create_table ( const HashTable< unsigned long, Aleph::equal_to< unsigned long > > &  other)

Definition at line 76 of file testDynSetHash.C.

References Aleph::divide_and_conquer_partition_dp().

Referenced by test_DynSetLinHash().

◆ insert_n_random_items_in_map()

template<class HashTable >
unsigned long insert_n_random_items_in_map ( HashTable &  table,
DynArray< unsigned long > &  keys,
unsigned long  n 
)

Definition at line 259 of file testDynSetHash.C.

References Aleph::divide_and_conquer_partition_dp(), k, keys, r, and Aleph::sort().

Referenced by test_DynMapLinHash().

◆ insert_n_random_items_in_set()

template<template< typename, class > class SetType>
unsigned long insert_n_random_items_in_set ( SetType< unsigned long, Aleph::equal_to< unsigned long > > &  table,
DynArray< unsigned long > &  keys,
unsigned long  n 
)

Definition at line 45 of file testDynSetHash.C.

References Aleph::divide_and_conquer_partition_dp(), keys, and r.

Referenced by test_DynSetLinHash().

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ test_DynMapLinHash()

template<template< typename, typename, class > class HashTable>
void test_DynMapLinHash ( size_t  n)

◆ test_DynSetLinHash()

Variable Documentation

◆ r

gsl_rng* r = NULL