41 cout <<
"<EMPTY SET>";
43 for(;first != last; ++first)
44 cout << *first <<
";";
58 for (i = 0; i < 30000; i+=10)
63 for (i = 300000; i < 400000; i+=100)
74 rand_sampler.
sample(bvsubset1, bv, 20);
75 rand_sampler.
sample(bvsubset2, bv, 20);
81 catch(std::exception& ex)
83 std::cerr << ex.what() << std::endl;
Compressed bit-vector bvector<> container, set algebraic methods, traversal iterators.
Generation of random subset.
pre-processor un-defines to avoid global space pollution (internal)
Bitvector Bit-vector container with runtime compression of bits.
bvector< Alloc > & set(size_type n, bool val=true)
Sets bit n if val is true, clears bit n if val is false.
bvector_size_type size_type
enumerator first() const
Returns enumerator pointing on the first non-zero bit.
enumerator end() const
Returns enumerator pointing on the next bit after the last.
void sample(BV &bv_out, const BV &bv_in, size_type sample_count)
Get random subset of input vector.
void PrintContainer(T first, T last)