Skip to content

Commit 104826c

Browse files
committed
Cosmetic changes :)
1 parent dd9811d commit 104826c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

examples/k2_treap_in_mem.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ int main()
3232

3333
cout << "Report all points in rectangle from (2,2) to (10,10)" << endl;
3434
cout << "with weight in [2..6]:" << endl;
35-
// auto range_it = range_3d(k2treap, {2,2},{10,10},{2,6});
3635
auto range_it = range_3d(k2treap, {2,2}, {10,10}, {2,100});
3736
while (range_it) {
3837
auto point_weight = *range_it;

include/sdsl/k2_treap.hpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,20 @@ namespace sdsl
3535
{
3636

3737
//! A k^2-treap.
38-
/*! A k^2-treap is an indexing structure for a weighted point set. The set
38+
/*! A k^2-treap is an indexing structure for a set of weighted points. The set
3939
* consists of triples (x,y,w), where the first two components x and y are
4040
* the coordinates of the point and w is the point's weight.
4141
*
42-
* The k^2 treap efficiently supports
42+
* The k^2 treap supports 4-sided range count queries and 4-sided prioritized
43+
* range queries in 2d. Using the latter functionality it is also possible to
44+
* support 6-sided range queries in 3d. An example can be found in
45+
* examples/k2_treap_in_mem.cpp .
46+
*
47+
* The k^2-treap constructed in-place. The construct method expects either
48+
* a vector of std::array<X,3> elements (each array represent a tuple x,y,w)
49+
* or a file prefix FILE. In the latter case three serialized int_vector<>
50+
* have to be present at FILE.x, FILE.y, and FILE.w. One int_vector<> per
51+
* component.
4352
*
4453
* \par References
4554
* [1] N. Brisaboa, G. de Bernardo, R. Konow, and G. Navarro:
@@ -53,7 +62,7 @@ template<uint8_t t_k,
5362
class k2_treap
5463
{
5564
static_assert(t_k>1, "t_k has to be larger than 1.");
56-
static_assert(t_k<=16, "t_k has to be smaller than 16.");
65+
static_assert(t_k<=16, "t_k has to be smaller than 17.");
5766

5867
public:
5968
typedef int_vector<>::size_type size_type;

0 commit comments

Comments
 (0)