@@ -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,
5362class 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