Documentation for 882ba119dc

This commit is contained in:
github-actions
2023-07-21 18:21:29 +00:00
parent 85446f38f3
commit fb1f2196b8
309 changed files with 3444 additions and 3072 deletions

View File

@@ -208,8 +208,9 @@ $(document).ready(function(){initNavTree('annotated.html',''); initResizable();
<tr id="row_15_0_0_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/d8a/classrange__queries_1_1heavy__light__decomposition_1_1_h_l_d.html" target="_self">HLD</a></td><td class="desc">The Heavy-Light Decomposition class </td></tr>
<tr id="row_15_0_1_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html" target="_self">SG</a></td><td class="desc">Segment <a class="el" href="d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" title="A Basic Tree, which supports binary lifting.">Tree</a>, to store heavy chains </td></tr>
<tr id="row_15_0_2_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" target="_self">Tree</a></td><td class="desc">A Basic <a class="el" href="d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" title="A Basic Tree, which supports binary lifting.">Tree</a>, which supports binary lifting </td></tr>
<tr id="row_15_1_" class="even" style="display:none;"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_15_1_" class="arrow" onclick="toggleFolder('15_1_')">&#9658;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d28/classrange__queries_1_1per_seg_tree.html" target="_self">perSegTree</a></td><td class="desc">Range query here is range sum, but the code can be modified to make different queries like range max or min </td></tr>
<tr id="row_15_1_0_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/d66/classrange__queries_1_1per_seg_tree_1_1_node.html" target="_self">Node</a></td><td class="desc"></td></tr>
<tr id="row_15_1_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="de/d0d/classrange__queries_1_1fenwick__tree.html" target="_self">fenwick_tree</a></td><td class="desc">The class that initializes the Fenwick Tree </td></tr>
<tr id="row_15_2_" class="even" style="display:none;"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_15_2_" class="arrow" onclick="toggleFolder('15_2_')">&#9658;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d28/classrange__queries_1_1per_seg_tree.html" target="_self">perSegTree</a></td><td class="desc">Range query here is range sum, but the code can be modified to make different queries like range max or min </td></tr>
<tr id="row_15_2_0_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/d66/classrange__queries_1_1per_seg_tree_1_1_node.html" target="_self">Node</a></td><td class="desc"></td></tr>
<tr id="row_16_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_16_" class="arrow" onclick="toggleFolder('16_')">&#9658;</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d9/dca/namespacesearch.html" target="_self">search</a></td><td class="desc">For <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> </td></tr>
<tr id="row_16_0_" class="odd" style="display:none;"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_16_0_" class="arrow" onclick="toggleFolder('16_0_')">&#9658;</span><span class="icona"><span class="icon">N</span></span><b>sublist_search</b></td><td class="desc"></td></tr>
<tr id="row_16_0_0_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/d61/structsearch_1_1sublist__search_1_1_node.html" target="_self">Node</a></td><td class="desc">A <a class="el" href="da/d61/structsearch_1_1sublist__search_1_1_node.html" title="A Node structure representing a single link Node in a linked list.">Node</a> structure representing a single link <a class="el" href="da/d61/structsearch_1_1sublist__search_1_1_node.html" title="A Node structure representing a single link Node in a linked list.">Node</a> in a linked list </td></tr>
@@ -239,35 +240,34 @@ $(document).ready(function(){initNavTree('annotated.html',''); initResizable();
<tr id="row_29_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/df6/class_easter_year_month_day.html" target="_self">EasterYearMonthDay</a></td><td class="desc">For IO operations </td></tr>
<tr id="row_30_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d7/d77/class_edge.html" target="_self">Edge</a></td><td class="desc"></td></tr>
<tr id="row_31_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/dca/class_f_c_f_s.html" target="_self">FCFS</a></td><td class="desc">Class which implements the <a class="el" href="dd/dca/class_f_c_f_s.html" title="Class which implements the FCFS scheduling algorithm.">FCFS</a> scheduling algorithm </td></tr>
<tr id="row_32_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d91/class_fenwick_tree.html" target="_self">FenwickTree</a></td><td class="desc"></td></tr>
<tr id="row_33_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/d9a/class_graph.html" target="_self">Graph</a></td><td class="desc"></td></tr>
<tr id="row_34_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d1c/classhash__chain.html" target="_self">hash_chain</a></td><td class="desc">Chain class with a given modulus </td></tr>
<tr id="row_35_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/d66/struct_item.html" target="_self">Item</a></td><td class="desc"></td></tr>
<tr id="row_36_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/d82/classlarge__number.html" target="_self">large_number</a></td><td class="desc"></td></tr>
<tr id="row_37_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/dff/structlinkedlist.html" target="_self">linkedlist</a></td><td class="desc"></td></tr>
<tr id="row_38_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d10/structlist.html" target="_self">list</a></td><td class="desc"></td></tr>
<tr id="row_39_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d7/da4/struct_list_node.html" target="_self">ListNode</a></td><td class="desc">For IO operations </td></tr>
<tr id="row_40_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/d05/class_min_heap.html" target="_self">MinHeap</a></td><td class="desc"></td></tr>
<tr id="row_41_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/d29/struct_min_heap_node.html" target="_self">MinHeapNode</a></td><td class="desc"></td></tr>
<tr id="row_42_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/d77/structmst.html" target="_self">mst</a></td><td class="desc"></td></tr>
<tr id="row_43_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/d8b/struct_node.html" target="_self">Node</a></td><td class="desc"></td></tr>
<tr id="row_44_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/da1/structnode.html" target="_self">node</a></td><td class="desc"></td></tr>
<tr id="row_45_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/dc8/struct_point.html" target="_self">Point</a></td><td class="desc"></td></tr>
<tr id="row_46_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d1b/structquery.html" target="_self">query</a></td><td class="desc"></td></tr>
<tr id="row_47_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/db5/struct_queue.html" target="_self">Queue</a></td><td class="desc"></td></tr>
<tr id="row_48_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/da9/classqueue.html" target="_self">queue</a></td><td class="desc"></td></tr>
<tr id="row_49_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d72/class_r_btree.html" target="_self">RBtree</a></td><td class="desc"></td></tr>
<tr id="row_50_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/db4/struct_segment_intersection.html" target="_self">SegmentIntersection</a></td><td class="desc"></td></tr>
<tr id="row_51_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d4f/class_solution.html" target="_self">Solution</a></td><td class="desc"></td></tr>
<tr id="row_52_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/dc2/classstack.html" target="_self">stack</a></td><td class="desc">For <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/invalid_argument.html">std::invalid_argument</a> </td></tr>
<tr id="row_53_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/dc4/classstack__linked_list.html" target="_self">stack_linkedList</a></td><td class="desc"></td></tr>
<tr id="row_54_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/d86/struct_test_case.html" target="_self">TestCase</a></td><td class="desc">Single example inputs and expected output of the function <a class="el" href="da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> </td></tr>
<tr id="row_55_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/d58/class_test_cases.html" target="_self">TestCases</a></td><td class="desc">Class encapsulating the necessary test cases </td></tr>
<tr id="row_56_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/d2c/structtower.html" target="_self">tower</a></td><td class="desc"></td></tr>
<tr id="row_57_" class="odd"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_57_" class="arrow" onclick="toggleFolder('57_')">&#9658;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d2f/class_trie.html" target="_self">Trie</a></td><td class="desc"></td></tr>
<tr id="row_57_0_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="de/d48/struct_trie_1_1_trie_node.html" target="_self">TrieNode</a></td><td class="desc"></td></tr>
<tr id="row_58_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/d9a/classuint128__t.html" target="_self">uint128_t</a></td><td class="desc">Class for 128-bit unsigned integer </td></tr>
<tr id="row_59_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/d83/classuint256__t.html" target="_self">uint256_t</a></td><td class="desc">Class for 256-bit unsigned integer </td></tr>
<tr id="row_32_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/d9a/class_graph.html" target="_self">Graph</a></td><td class="desc"></td></tr>
<tr id="row_33_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d1c/classhash__chain.html" target="_self">hash_chain</a></td><td class="desc">Chain class with a given modulus </td></tr>
<tr id="row_34_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/d66/struct_item.html" target="_self">Item</a></td><td class="desc"></td></tr>
<tr id="row_35_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/d82/classlarge__number.html" target="_self">large_number</a></td><td class="desc"></td></tr>
<tr id="row_36_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/dff/structlinkedlist.html" target="_self">linkedlist</a></td><td class="desc"></td></tr>
<tr id="row_37_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d10/structlist.html" target="_self">list</a></td><td class="desc"></td></tr>
<tr id="row_38_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d7/da4/struct_list_node.html" target="_self">ListNode</a></td><td class="desc">For IO operations </td></tr>
<tr id="row_39_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/d05/class_min_heap.html" target="_self">MinHeap</a></td><td class="desc"></td></tr>
<tr id="row_40_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/d29/struct_min_heap_node.html" target="_self">MinHeapNode</a></td><td class="desc"></td></tr>
<tr id="row_41_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/d77/structmst.html" target="_self">mst</a></td><td class="desc"></td></tr>
<tr id="row_42_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/d8b/struct_node.html" target="_self">Node</a></td><td class="desc"></td></tr>
<tr id="row_43_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/da1/structnode.html" target="_self">node</a></td><td class="desc"></td></tr>
<tr id="row_44_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/dc8/struct_point.html" target="_self">Point</a></td><td class="desc"></td></tr>
<tr id="row_45_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d1b/structquery.html" target="_self">query</a></td><td class="desc"></td></tr>
<tr id="row_46_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/db5/struct_queue.html" target="_self">Queue</a></td><td class="desc"></td></tr>
<tr id="row_47_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/da9/classqueue.html" target="_self">queue</a></td><td class="desc"></td></tr>
<tr id="row_48_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d72/class_r_btree.html" target="_self">RBtree</a></td><td class="desc"></td></tr>
<tr id="row_49_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/db4/struct_segment_intersection.html" target="_self">SegmentIntersection</a></td><td class="desc"></td></tr>
<tr id="row_50_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d4f/class_solution.html" target="_self">Solution</a></td><td class="desc"></td></tr>
<tr id="row_51_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/dc2/classstack.html" target="_self">stack</a></td><td class="desc">For <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/invalid_argument.html">std::invalid_argument</a> </td></tr>
<tr id="row_52_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/dc4/classstack__linked_list.html" target="_self">stack_linkedList</a></td><td class="desc"></td></tr>
<tr id="row_53_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/d86/struct_test_case.html" target="_self">TestCase</a></td><td class="desc">Single example inputs and expected output of the function <a class="el" href="da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> </td></tr>
<tr id="row_54_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/d58/class_test_cases.html" target="_self">TestCases</a></td><td class="desc">Class encapsulating the necessary test cases </td></tr>
<tr id="row_55_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/d2c/structtower.html" target="_self">tower</a></td><td class="desc"></td></tr>
<tr id="row_56_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_56_" class="arrow" onclick="toggleFolder('56_')">&#9658;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d2f/class_trie.html" target="_self">Trie</a></td><td class="desc"></td></tr>
<tr id="row_56_0_" class="odd" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="de/d48/struct_trie_1_1_trie_node.html" target="_self">TrieNode</a></td><td class="desc"></td></tr>
<tr id="row_57_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="db/d9a/classuint128__t.html" target="_self">uint128_t</a></td><td class="desc">Class for 128-bit unsigned integer </td></tr>
<tr id="row_58_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/d83/classuint256__t.html" target="_self">uint256_t</a></td><td class="desc">Class for 256-bit unsigned integer </td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->

View File

@@ -148,6 +148,7 @@ var annotated_dup =
[ "SG", "d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html", "d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g" ],
[ "Tree", "d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html", "d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree" ]
] ],
[ "fenwick_tree", "de/d0d/classrange__queries_1_1fenwick__tree.html", "de/d0d/classrange__queries_1_1fenwick__tree" ],
[ "perSegTree", "d8/d28/classrange__queries_1_1per_seg_tree.html", "d8/d28/classrange__queries_1_1per_seg_tree" ]
] ],
[ "search", "d9/dca/namespacesearch.html", [
@@ -184,7 +185,6 @@ var annotated_dup =
[ "EasterYearMonthDay", "d1/df6/class_easter_year_month_day.html", "d1/df6/class_easter_year_month_day" ],
[ "Edge", "d7/d77/class_edge.html", "d7/d77/class_edge" ],
[ "FCFS", "dd/dca/class_f_c_f_s.html", "dd/dca/class_f_c_f_s" ],
[ "FenwickTree", "dd/d91/class_fenwick_tree.html", "dd/d91/class_fenwick_tree" ],
[ "Graph", "da/d9a/class_graph.html", "da/d9a/class_graph" ],
[ "hash_chain", "dd/d1c/classhash__chain.html", "dd/d1c/classhash__chain" ],
[ "Item", "db/d66/struct_item.html", null ],

View File

@@ -119,7 +119,7 @@ $(document).ready(function(){initNavTree('classes.html',''); initResizable(); })
<dd><a class="el" href="d1/df6/class_easter_year_month_day.html">EasterYearMonthDay</a></dd><dd><a class="el" href="d7/d77/class_edge.html">Edge</a></dd><dd><a class="el" href="dd/d9c/classmachine__learning_1_1aystar__search_1_1_eight_puzzle.html">EightPuzzle</a> (machine_learning::aystar_search)</dd><dd><a class="el" href="d9/dde/structdouble__hashing_1_1_entry.html">Entry</a> (<a class="el" href="d0/d65/namespacedouble__hashing.html">double_hashing</a>)</dd><dd><a class="el" href="db/d19/structlinear__probing_1_1_entry.html">Entry</a> (<a class="el" href="d8/d89/namespacelinear__probing.html">linear_probing</a>)</dd><dd><a class="el" href="da/dd1/structquadratic__probing_1_1_entry.html">Entry</a> (<a class="el" href="d4/dd2/namespacequadratic__probing.html">quadratic_probing</a>)</dd></dl>
<dl class="classindex odd">
<dt class="alphachar"><a id="letter_F" name="letter_F">F</a></dt>
<dd><a class="el" href="dd/dca/class_f_c_f_s.html">FCFS</a></dd><dd><a class="el" href="dd/d91/class_fenwick_tree.html">FenwickTree</a></dd></dl>
<dd><a class="el" href="dd/dca/class_f_c_f_s.html">FCFS</a></dd><dd><a class="el" href="de/d0d/classrange__queries_1_1fenwick__tree.html">fenwick_tree</a> (<a class="el" href="dd/d69/namespacerange__queries.html">range_queries</a>)</dd></dl>
<dl class="classindex even">
<dt class="alphachar"><a id="letter_G" name="letter_G">G</a></dt>
<dd><a class="el" href="df/de5/classbacktracking_1_1generate__parentheses.html">generate_parentheses</a> (<a class="el" href="db/dc0/namespacebacktracking.html">backtracking</a>)</dd><dd><a class="el" href="da/d19/classprobability_1_1geometric__dist_1_1geometric__distribution.html">geometric_distribution</a> (probability::geometric_dist)</dd><dd><a class="el" href="da/d9a/class_graph.html">Graph</a></dd><dd><a class="el" href="dc/d61/classgraph_1_1_graph.html">Graph</a> (<a class="el" href="df/dce/namespacegraph.html">graph</a>)</dd><dd><a class="el" href="de/d00/classgraph_1_1is__graph__bipartite_1_1_graph.html">Graph</a> (graph::is_graph_bipartite)</dd></dl>

View File

@@ -1,14 +1,13 @@
<map id="graph::RootedTree" name="graph::RootedTree">
<area shape="rect" id="Node000001" title=" " alt="" coords="242,288,371,313"/>
<area shape="rect" id="Node000002" href="$dc/d61/classgraph_1_1_graph.html" title=" " alt="" coords="185,213,314,238"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="270,249,299,286,295,289,266,252"/>
<area shape="rect" id="Node000001" title=" " alt="" coords="173,301,302,327"/>
<area shape="rect" id="Node000002" href="$dc/d61/classgraph_1_1_graph.html" title=" " alt="" coords="99,198,227,223"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="182,234,231,299,226,302,178,237"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/map.html" title=" " alt="" coords="5,94,147,135"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="105,143,130,166,158,186,209,210,207,214,156,191,127,170,102,147"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="106,144,154,196,150,199,102,147"/>
<area shape="rect" id="Node000004" title=" " alt="" coords="57,5,95,31"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="79,46,79,93,73,93,73,46"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="171,94,328,135"/>
<area shape="poly" id="edge4_Node000002_Node000005" title=" " alt="" coords="252,150,252,212,247,212,247,150"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="265,5,386,31"/>
<area shape="poly" id="edge6_Node000001_Node000006" title=" " alt="" coords="345,43,349,54,349,70,343,155,328,239,314,288,308,286,323,238,338,154,344,70,344,56,340,44"/>
<area shape="poly" id="edge5_Node000005_Node000006" title=" " alt="" coords="304,43,292,57,264,95,259,92,288,53,300,40"/>
<area shape="poly" id="edge4_Node000002_Node000005" title=" " alt="" coords="239,150,222,175,190,199,187,195,218,172,234,147"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="251,198,373,223"/>
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="297,237,248,302,244,299,293,234"/>
</map>

View File

@@ -1 +1 @@
d7fdab7e12b21d866ecbe482d26e55be
050eb78f2fe068cc94e311fbe15511ee

View File

@@ -4,8 +4,8 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: graph::RootedTree Pages: 1 -->
<svg width="294pt" height="239pt"
viewBox="0.00 0.00 293.50 239.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="284pt" height="249pt"
viewBox="0.00 0.00 283.50 249.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -16,14 +16,14 @@
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 235)">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 245.25)">
<title>graph::RootedTree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="274.5,-19.25 177.5,-19.25 177.5,0 274.5,0 274.5,-19.25"/>
<text text-anchor="middle" x="226" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::RootedTree</text>
<polygon fill="#999999" stroke="#666666" points="222.5,-19.25 125.5,-19.25 125.5,0 222.5,0 222.5,-19.25"/>
<text text-anchor="middle" x="174" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::RootedTree</text>
</a>
</g>
</g>
@@ -31,8 +31,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dc/d61/classgraph_1_1_graph.html" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="231.12,-75.5 134.88,-75.5 134.88,-56.25 231.12,-56.25 231.12,-75.5"/>
<text text-anchor="middle" x="183" y="-62" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
<polygon fill="white" stroke="#666666" points="166.12,-97 69.88,-97 69.88,-77.75 166.12,-77.75 166.12,-97"/>
<text text-anchor="middle" x="118" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
</a>
</g>
</g>
@@ -40,8 +40,8 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M196.88,-47.36C204.28,-38.03 213.06,-26.95 219.03,-19.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="193.57,-44.91 190.1,-54.92 199.06,-49.25 193.57,-44.91"/>
<path fill="none" stroke="#63b8ff" d="M131.02,-68.77C142.39,-53.38 158.44,-31.67 167.36,-19.6"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="127.77,-66.27 124.64,-76.39 133.4,-70.43 127.77,-66.27"/>
</a>
</g>
</g>
@@ -49,9 +49,9 @@
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/map.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="106,-164.5 0,-164.5 0,-134 106,-134 106,-164.5"/>
<text text-anchor="start" x="8" y="-151" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; T, std::list</text>
<text text-anchor="middle" x="53" y="-139.75" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; T &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="106,-174.75 0,-174.75 0,-144.25 106,-144.25 106,-174.75"/>
<text text-anchor="start" x="8" y="-161.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; T, std::list</text>
<text text-anchor="middle" x="53" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; T &gt; &gt;</text>
</a>
</g>
</g>
@@ -59,18 +59,18 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node3&#45;&gt;Node2</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M73.73,-126.05C84.8,-115.14 99.14,-102.46 113.75,-93.5 125.61,-86.23 139.79,-80.35 152.22,-75.99"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="71.82,-123.01 67.28,-132.59 76.8,-127.93 71.82,-123.01"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M73.7,-136.16C85.99,-122.91 100.88,-106.85 109.88,-97.13"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="71.7,-133.26 67.47,-142.97 76.83,-138.02 71.7,-133.26"/>
</a>
</g>
<text text-anchor="middle" x="146.62" y="-100.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
<text text-anchor="middle" x="126.62" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:title=" ">
<polygon fill="white" stroke="#bfbfbf" points="67.4,-231 38.6,-231 38.6,-211.75 67.4,-211.75 67.4,-231"/>
<text text-anchor="middle" x="53" y="-217.5" font-family="Helvetica,sans-Serif" font-size="10.00">T</text>
<polygon fill="white" stroke="#bfbfbf" points="67.4,-241.25 38.6,-241.25 38.6,-222 67.4,-222 67.4,-241.25"/>
<text text-anchor="middle" x="53" y="-227.75" font-family="Helvetica,sans-Serif" font-size="10.00">T</text>
</a>
</g>
</g>
@@ -78,19 +78,19 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node4&#45;&gt;Node3</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M53,-200.53C53,-189.2 53,-175.25 53,-164.92"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="49.5,-200.49 53,-210.49 56.5,-200.49 49.5,-200.49"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M53,-210.78C53,-199.45 53,-185.5 53,-175.17"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="49.5,-210.74 53,-220.74 56.5,-210.74 49.5,-210.74"/>
</a>
</g>
<text text-anchor="middle" x="65" y="-184.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> keys</text>
<text text-anchor="middle" x="65" y="-194.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> keys</text>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="242,-164.5 124,-164.5 124,-134 242,-134 242,-164.5"/>
<text text-anchor="start" x="132" y="-151" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="183" y="-139.75" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="242,-174.75 124,-174.75 124,-144.25 242,-144.25 242,-174.75"/>
<text text-anchor="start" x="132" y="-161.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="183" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
@@ -98,41 +98,31 @@
<g id="edge4_Node000002_Node000005" class="edge">
<title>Node5&#45;&gt;Node2</title>
<g id="a_edge4_Node000002_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M183,-122.84C183,-106.77 183,-86.99 183,-75.77"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="179.5,-122.7 183,-132.7 186.5,-122.7 179.5,-122.7"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M173.51,-133.96C170.2,-127.33 166.03,-120.48 161,-115 154.35,-107.75 145.29,-101.75 137.2,-97.29"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="170.71,-135.28 178,-142.97 177.1,-132.42 170.71,-135.28"/>
</a>
</g>
<text text-anchor="middle" x="205.5" y="-100.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
<text text-anchor="middle" x="191.5" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="285.5,-231 194.5,-231 194.5,-211.75 285.5,-211.75 285.5,-231"/>
<text text-anchor="middle" x="240" y="-217.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="275.5,-97 184.5,-97 184.5,-77.75 275.5,-77.75 275.5,-97"/>
<text text-anchor="middle" x="230" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node1 -->
<g id="edge6_Node000001_Node000006" class="edge">
<g id="edge5_Node000001_Node000006" class="edge">
<title>Node6&#45;&gt;Node1</title>
<g id="a_edge6_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M252.55,-202.37C253.97,-199.59 255.19,-196.67 256,-193.75 257.34,-188.93 256.26,-187.49 256,-182.5 253.1,-126.01 252.3,-111.46 240,-56.25 237.12,-43.31 232.37,-28.72 229.21,-19.6"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="249.15,-200.22 246.95,-210.58 255.13,-203.85 249.15,-200.22"/>
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M216.98,-68.77C205.61,-53.38 189.56,-31.67 180.64,-19.6"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="214.6,-70.43 223.36,-76.39 220.23,-66.27 214.6,-70.43"/>
</a>
</g>
<text text-anchor="middle" x="264.5" y="-106.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> level</text>
<text text-anchor="middle" x="264.5" y="-95.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">parent</text>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node6&#45;&gt;Node5</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M222.51,-203.89C219.32,-200.62 216.1,-197.16 213.25,-193.75 205.57,-184.59 197.89,-173.51 192.19,-164.83"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="219.58,-205.89 229.16,-210.4 224.49,-200.9 219.58,-205.89"/>
</a>
</g>
<text text-anchor="middle" x="235.38" y="-184.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="223.5" y="-50.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> level</text>
<text text-anchor="middle" x="223.5" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">parent</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@@ -4,16 +4,16 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: graph::RootedTree Pages: 1 -->
<svg width="294pt" height="239pt"
viewBox="0.00 0.00 293.50 239.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 235)">
<svg width="284pt" height="249pt"
viewBox="0.00 0.00 283.50 249.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 245.25)">
<title>graph::RootedTree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="274.5,-19.25 177.5,-19.25 177.5,0 274.5,0 274.5,-19.25"/>
<text text-anchor="middle" x="226" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::RootedTree</text>
<polygon fill="#999999" stroke="#666666" points="222.5,-19.25 125.5,-19.25 125.5,0 222.5,0 222.5,-19.25"/>
<text text-anchor="middle" x="174" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::RootedTree</text>
</a>
</g>
</g>
@@ -21,8 +21,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dc/d61/classgraph_1_1_graph.html" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="231.12,-75.5 134.88,-75.5 134.88,-56.25 231.12,-56.25 231.12,-75.5"/>
<text text-anchor="middle" x="183" y="-62" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
<polygon fill="white" stroke="#666666" points="166.12,-97 69.88,-97 69.88,-77.75 166.12,-77.75 166.12,-97"/>
<text text-anchor="middle" x="118" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
</a>
</g>
</g>
@@ -30,8 +30,8 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M196.88,-47.36C204.28,-38.03 213.06,-26.95 219.03,-19.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="193.57,-44.91 190.1,-54.92 199.06,-49.25 193.57,-44.91"/>
<path fill="none" stroke="#63b8ff" d="M131.02,-68.77C142.39,-53.38 158.44,-31.67 167.36,-19.6"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="127.77,-66.27 124.64,-76.39 133.4,-70.43 127.77,-66.27"/>
</a>
</g>
</g>
@@ -39,9 +39,9 @@
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/map.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="106,-164.5 0,-164.5 0,-134 106,-134 106,-164.5"/>
<text text-anchor="start" x="8" y="-151" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; T, std::list</text>
<text text-anchor="middle" x="53" y="-139.75" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; T &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="106,-174.75 0,-174.75 0,-144.25 106,-144.25 106,-174.75"/>
<text text-anchor="start" x="8" y="-161.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; T, std::list</text>
<text text-anchor="middle" x="53" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; T &gt; &gt;</text>
</a>
</g>
</g>
@@ -49,18 +49,18 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node3&#45;&gt;Node2</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M73.73,-126.05C84.8,-115.14 99.14,-102.46 113.75,-93.5 125.61,-86.23 139.79,-80.35 152.22,-75.99"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="71.82,-123.01 67.28,-132.59 76.8,-127.93 71.82,-123.01"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M73.7,-136.16C85.99,-122.91 100.88,-106.85 109.88,-97.13"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="71.7,-133.26 67.47,-142.97 76.83,-138.02 71.7,-133.26"/>
</a>
</g>
<text text-anchor="middle" x="146.62" y="-100.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
<text text-anchor="middle" x="126.62" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:title=" ">
<polygon fill="white" stroke="#bfbfbf" points="67.4,-231 38.6,-231 38.6,-211.75 67.4,-211.75 67.4,-231"/>
<text text-anchor="middle" x="53" y="-217.5" font-family="Helvetica,sans-Serif" font-size="10.00">T</text>
<polygon fill="white" stroke="#bfbfbf" points="67.4,-241.25 38.6,-241.25 38.6,-222 67.4,-222 67.4,-241.25"/>
<text text-anchor="middle" x="53" y="-227.75" font-family="Helvetica,sans-Serif" font-size="10.00">T</text>
</a>
</g>
</g>
@@ -68,19 +68,19 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node4&#45;&gt;Node3</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M53,-200.53C53,-189.2 53,-175.25 53,-164.92"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="49.5,-200.49 53,-210.49 56.5,-200.49 49.5,-200.49"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M53,-210.78C53,-199.45 53,-185.5 53,-175.17"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="49.5,-210.74 53,-220.74 56.5,-210.74 49.5,-210.74"/>
</a>
</g>
<text text-anchor="middle" x="65" y="-184.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> keys</text>
<text text-anchor="middle" x="65" y="-194.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> keys</text>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="242,-164.5 124,-164.5 124,-134 242,-134 242,-164.5"/>
<text text-anchor="start" x="132" y="-151" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="183" y="-139.75" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="242,-174.75 124,-174.75 124,-144.25 242,-144.25 242,-174.75"/>
<text text-anchor="start" x="132" y="-161.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="183" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
@@ -88,41 +88,31 @@
<g id="edge4_Node000002_Node000005" class="edge">
<title>Node5&#45;&gt;Node2</title>
<g id="a_edge4_Node000002_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M183,-122.84C183,-106.77 183,-86.99 183,-75.77"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="179.5,-122.7 183,-132.7 186.5,-122.7 179.5,-122.7"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M173.51,-133.96C170.2,-127.33 166.03,-120.48 161,-115 154.35,-107.75 145.29,-101.75 137.2,-97.29"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="170.71,-135.28 178,-142.97 177.1,-132.42 170.71,-135.28"/>
</a>
</g>
<text text-anchor="middle" x="205.5" y="-100.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
<text text-anchor="middle" x="191.5" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="285.5,-231 194.5,-231 194.5,-211.75 285.5,-211.75 285.5,-231"/>
<text text-anchor="middle" x="240" y="-217.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="275.5,-97 184.5,-97 184.5,-77.75 275.5,-77.75 275.5,-97"/>
<text text-anchor="middle" x="230" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node1 -->
<g id="edge6_Node000001_Node000006" class="edge">
<g id="edge5_Node000001_Node000006" class="edge">
<title>Node6&#45;&gt;Node1</title>
<g id="a_edge6_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M252.55,-202.37C253.97,-199.59 255.19,-196.67 256,-193.75 257.34,-188.93 256.26,-187.49 256,-182.5 253.1,-126.01 252.3,-111.46 240,-56.25 237.12,-43.31 232.37,-28.72 229.21,-19.6"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="249.15,-200.22 246.95,-210.58 255.13,-203.85 249.15,-200.22"/>
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M216.98,-68.77C205.61,-53.38 189.56,-31.67 180.64,-19.6"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="214.6,-70.43 223.36,-76.39 220.23,-66.27 214.6,-70.43"/>
</a>
</g>
<text text-anchor="middle" x="264.5" y="-106.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> level</text>
<text text-anchor="middle" x="264.5" y="-95.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">parent</text>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node6&#45;&gt;Node5</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M222.51,-203.89C219.32,-200.62 216.1,-197.16 213.25,-193.75 205.57,-184.59 197.89,-173.51 192.19,-164.83"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="219.58,-205.89 229.16,-210.4 224.49,-200.9 219.58,-205.89"/>
</a>
</g>
<text text-anchor="middle" x="235.38" y="-184.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="223.5" y="-50.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> level</text>
<text text-anchor="middle" x="223.5" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">parent</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@@ -113,7 +113,7 @@ Inheritance diagram for graph::RootedTree:</div>
<div class="dynheader">
Collaboration diagram for graph::RootedTree:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d24/classgraph_1_1_rooted_tree__coll__graph.svg" width="392" height="319"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d24/classgraph_1_1_rooted_tree__coll__graph.svg" width="379" height="332"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>

View File

@@ -71,7 +71,7 @@ $(function() {
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('dd/d91/class_fenwick_tree.html','../../'); initResizable(); });
$(document).ready(function(){initNavTree('de/d0d/classrange__queries_1_1fenwick__tree.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
@@ -97,20 +97,20 @@ $(document).ready(function(){initNavTree('dd/d91/class_fenwick_tree.html','../..
</div>
<div class="header">
<div class="headertitle"><div class="title">FenwickTree Member List</div></div>
<div class="headertitle"><div class="title">range_queries::fenwick_tree Member List</div></div>
</div><!--header-->
<div class="contents">
<p>This is the complete list of members for <a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a>, including all inherited members.</p>
<p>This is the complete list of members for <a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a>, including all inherited members.</p>
<table class="directory">
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>bit</b> (defined in <a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a>)</td><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html#aaddab1f03d4941212a82cc647b1adb17">FenwickTree</a>(const std::vector&lt; int &gt; &amp;arr)</td><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">explicit</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html#a70f8c261393ca09ec1ad716ac806ead6">FenwickTree</a>(int x)</td><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">explicit</span></td></tr>
<tr bgcolor="#f0f0f0" class="odd"><td class="entry"><b>n</b> (defined in <a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a>)</td><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10">offset</a>(int x)</td><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">private</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699">sum</a>(int id)</td><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html#a115ff5c548b429b737ea09f75817d1f9">sum_range</a>(int l, int r)</td><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00">update</a>(int id, int val)</td><td class="entry"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">bit</a></td><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a5ea37183524553bbf2234a36a44a4b9a">fenwick_tree</a>(const std::vector&lt; T &gt; &amp;arr)</td><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">explicit</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#aef7ba885b91af093e9e514358fa0f36c">fenwick_tree</a>(T x)</td><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">explicit</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a></td><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801">offset</a>(int x)</td><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">private</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd">sum</a>(T id)</td><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe">sum_range</a>(int l, int r)</td><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9">update</a>(T id, T val)</td><td class="entry"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
</table></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->

View File

@@ -117,7 +117,7 @@ Inheritance diagram for range_queries::heavy_light_decomposition::Tree&lt; X &gt
<div class="dynheader">
Collaboration diagram for range_queries::heavy_light_decomposition::Tree&lt; X &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/d4c/classrange__queries_1_1heavy__light__decomposition_1_1_tree__coll__graph.svg" width="622" height="244"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/d4c/classrange__queries_1_1heavy__light__decomposition_1_1_tree__coll__graph.svg" width="616" height="220"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>

View File

@@ -1,17 +1,16 @@
<map id="graph::LowestCommonAncestor" name="graph::LowestCommonAncestor">
<area shape="rect" id="Node000001" title=" " alt="" coords="42,390,250,416"/>
<area shape="rect" id="Node000002" href="$d0/d58/classgraph_1_1_rooted_tree.html" title=" " alt="" coords="148,301,277,327"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="197,340,157,391,153,388,192,337"/>
<area shape="rect" id="Node000003" href="$dc/d61/classgraph_1_1_graph.html" title=" " alt="" coords="149,213,277,238"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="215,253,215,301,210,301,210,253"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/map.html" title=" " alt="" coords="245,94,386,135"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="293,148,255,191,229,214,225,210,251,187,289,144"/>
<area shape="rect" id="Node000005" title=" " alt="" coords="296,5,335,31"/>
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="318,46,318,93,313,93,313,46"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="63,94,221,135"/>
<area shape="poly" id="edge8_Node000001_Node000006" title=" " alt="" coords="142,149,138,230,139,327,147,389,141,390,134,327,133,230,137,149"/>
<area shape="poly" id="edge5_Node000003_Node000006" title=" " alt="" coords="165,146,207,211,203,214,160,149"/>
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="5,5,127,31"/>
<area shape="poly" id="edge7_Node000002_Node000007" title=" " alt="" coords="60,46,52,88,51,111,54,134,66,179,79,213,99,243,130,275,149,289,170,298,168,303,146,293,127,279,94,246,74,215,61,180,49,135,45,111,46,87,55,45"/>
<area shape="poly" id="edge6_Node000006_Node000007" title=" " alt="" coords="87,41,128,92,124,95,83,44"/>
<area shape="rect" id="Node000001" title=" " alt="" coords="5,390,214,416"/>
<area shape="rect" id="Node000002" href="$d0/d58/classgraph_1_1_rooted_tree.html" title=" " alt="" coords="112,301,241,327"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="160,340,121,391,117,388,156,337"/>
<area shape="rect" id="Node000003" href="$dc/d61/classgraph_1_1_graph.html" title=" " alt="" coords="257,198,386,223"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="294,234,195,303,192,299,291,230"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/map.html" title=" " alt="" coords="251,94,392,135"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="324,150,324,197,319,197,319,150"/>
<area shape="rect" id="Node000005" title=" " alt="" coords="302,5,341,31"/>
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="324,46,324,93,319,93,319,46"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="32,94,190,135"/>
<area shape="poly" id="edge7_Node000001_Node000006" title=" " alt="" coords="107,150,101,198,98,262,101,327,110,389,105,390,96,327,93,262,96,197,102,149"/>
<area shape="poly" id="edge5_Node000003_Node000006" title=" " alt="" coords="169,139,295,195,293,199,167,144"/>
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="112,198,233,223"/>
<area shape="poly" id="edge6_Node000002_Node000007" title=" " alt="" coords="176,238,178,301,173,301,171,238"/>
</map>

View File

@@ -1 +1 @@
705e3d741af707a492da60715789ba71
352f6a1cabbe0f9d00e20598c2e59887

View File

@@ -4,8 +4,8 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: graph::LowestCommonAncestor Pages: 1 -->
<svg width="294pt" height="316pt"
viewBox="0.00 0.00 293.50 315.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="310pt" height="316pt"
viewBox="0.00 0.00 310.38 315.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -22,8 +22,8 @@
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="183.62,-19.25 27.38,-19.25 27.38,0 183.62,0 183.62,-19.25"/>
<text text-anchor="middle" x="105.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::LowestCommonAncestor</text>
<polygon fill="#999999" stroke="#666666" points="156.25,-19.25 0,-19.25 0,0 156.25,0 156.25,-19.25"/>
<text text-anchor="middle" x="78.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::LowestCommonAncestor</text>
</a>
</g>
</g>
@@ -31,8 +31,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d0/d58/classgraph_1_1_rooted_tree.html" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="204,-85.75 107,-85.75 107,-66.5 204,-66.5 204,-85.75"/>
<text text-anchor="middle" x="155.5" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">graph::RootedTree</text>
<polygon fill="white" stroke="#666666" points="176.62,-85.75 79.62,-85.75 79.62,-66.5 176.62,-66.5 176.62,-85.75"/>
<text text-anchor="middle" x="128.12" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">graph::RootedTree</text>
</a>
</g>
</g>
@@ -40,18 +40,18 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M141.92,-57.61C132.37,-45.28 119.98,-29.31 112.39,-19.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="139.65,-59.4 148.55,-65.16 145.19,-55.11 139.65,-59.4"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M114.55,-57.61C104.99,-45.28 92.61,-29.31 85.02,-19.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="112.28,-59.4 121.17,-65.16 117.81,-55.11 112.28,-59.4"/>
</a>
</g>
<text text-anchor="middle" x="142.25" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> tree</text>
<text text-anchor="middle" x="115.88" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> tree</text>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../dc/d61/classgraph_1_1_graph.html" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="203.62,-152.25 107.38,-152.25 107.38,-133 203.62,-133 203.62,-152.25"/>
<text text-anchor="middle" x="155.5" y="-138.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
<polygon fill="white" stroke="#666666" points="285.25,-163.5 189,-163.5 189,-144.25 285.25,-144.25 285.25,-163.5"/>
<text text-anchor="middle" x="237.12" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
</a>
</g>
</g>
@@ -59,8 +59,8 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node3&#45;&gt;Node2</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M155.5,-121.9C155.5,-109.93 155.5,-95.23 155.5,-86.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="152,-121.66 155.5,-131.66 159,-121.66 152,-121.66"/>
<path fill="none" stroke="#63b8ff" d="M215.46,-137.82C193.23,-122.37 159.39,-98.85 141.04,-86.1"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="212.98,-141.06 223.19,-143.89 216.98,-135.31 212.98,-141.06"/>
</a>
</g>
</g>
@@ -68,9 +68,9 @@
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/map.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="285.5,-241.25 179.5,-241.25 179.5,-210.75 285.5,-210.75 285.5,-241.25"/>
<text text-anchor="start" x="187.5" y="-227.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; T, std::list</text>
<text text-anchor="middle" x="232.5" y="-216.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; T &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="290.12,-241.25 184.12,-241.25 184.12,-210.75 290.12,-210.75 290.12,-241.25"/>
<text text-anchor="start" x="192.12" y="-227.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; T, std::list</text>
<text text-anchor="middle" x="237.12" y="-216.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; T &gt; &gt;</text>
</a>
</g>
</g>
@@ -78,18 +78,18 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node4&#45;&gt;Node3</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M214.16,-202.26C205.73,-192.18 195.42,-180.33 185.5,-170.25 179.44,-164.09 172.22,-157.65 166.37,-152.65"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="211.96,-204.1 221.03,-209.58 217.36,-199.64 211.96,-204.1"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M237.12,-199.62C237.12,-187.02 237.12,-172.62 237.12,-163.63"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="233.63,-199.47 237.12,-209.47 240.63,-199.47 233.63,-199.47"/>
</a>
</g>
<text text-anchor="middle" x="238.12" y="-177.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
<text text-anchor="middle" x="269.75" y="-183.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="white" stroke="#bfbfbf" points="246.9,-307.75 218.1,-307.75 218.1,-288.5 246.9,-288.5 246.9,-307.75"/>
<text text-anchor="middle" x="232.5" y="-294.25" font-family="Helvetica,sans-Serif" font-size="10.00">T</text>
<polygon fill="white" stroke="#bfbfbf" points="251.53,-307.75 222.72,-307.75 222.72,-288.5 251.53,-288.5 251.53,-307.75"/>
<text text-anchor="middle" x="237.12" y="-294.25" font-family="Helvetica,sans-Serif" font-size="10.00">T</text>
</a>
</g>
</g>
@@ -97,71 +97,61 @@
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node5&#45;&gt;Node4</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M232.5,-277.28C232.5,-265.95 232.5,-252 232.5,-241.67"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="229,-277.24 232.5,-287.24 236,-277.24 229,-277.24"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M237.12,-277.28C237.12,-265.95 237.12,-252 237.12,-241.67"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="233.63,-277.24 237.12,-287.24 240.63,-277.24 233.63,-277.24"/>
</a>
</g>
<text text-anchor="middle" x="244.5" y="-261" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> keys</text>
<text text-anchor="middle" x="249.12" y="-261" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> keys</text>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="161.5,-241.25 43.5,-241.25 43.5,-210.75 161.5,-210.75 161.5,-241.25"/>
<text text-anchor="start" x="51.5" y="-227.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="102.5" y="-216.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="138.12,-241.25 20.12,-241.25 20.12,-210.75 138.12,-210.75 138.12,-241.25"/>
<text text-anchor="start" x="28.12" y="-227.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="79.12" y="-216.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node1 -->
<g id="edge8_Node000001_Node000006" class="edge">
<g id="edge7_Node000001_Node000006" class="edge">
<title>Node6&#45;&gt;Node1</title>
<g id="a_edge8_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M100.51,-199.79C98.34,-168.5 95.57,-113.52 98.5,-66.5 99.53,-49.91 102.28,-30.72 104.01,-19.69"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="97.07,-199.84 101.29,-209.56 104.05,-199.33 97.07,-199.84"/>
<g id="a_edge7_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M74.59,-199.76C72.81,-188.67 71,-175.48 70.12,-163.5 67,-120.5 67.06,-109.5 70.12,-66.5 71.31,-49.88 74.45,-30.7 76.42,-19.68"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="71.27,-200.12 76.38,-209.4 78.17,-198.96 71.27,-200.12"/>
</a>
</g>
<text text-anchor="middle" x="103.25" y="-105.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> up</text>
<text text-anchor="middle" x="74.88" y="-111.12" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> up</text>
</g>
<!-- Node6&#45;&gt;Node3 -->
<g id="edge5_Node000003_Node000006" class="edge">
<title>Node6&#45;&gt;Node3</title>
<g id="a_edge5_Node000003_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M117.84,-201.44C128.51,-185.07 142.11,-164.18 149.71,-152.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="114.5,-199.16 111.98,-209.45 120.37,-202.98 114.5,-199.16"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M122.27,-205.85C152.95,-192.23 192.8,-174.55 216.59,-163.99"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="120.97,-203.04 113.25,-210.3 123.81,-209.44 120.97,-203.04"/>
</a>
</g>
<text text-anchor="middle" x="159" y="-177.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
<text text-anchor="middle" x="198.62" y="-183.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="91,-307.75 0,-307.75 0,-288.5 91,-288.5 91,-307.75"/>
<text text-anchor="middle" x="45.5" y="-294.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="170.62,-163.5 79.62,-163.5 79.62,-144.25 170.62,-144.25 170.62,-163.5"/>
<text text-anchor="middle" x="125.12" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node2 -->
<g id="edge7_Node000002_Node000007" class="edge">
<g id="edge6_Node000002_Node000007" class="edge">
<title>Node7&#45;&gt;Node2</title>
<g id="a_edge7_Node000002_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M38.96,-277.77C33.94,-260.09 28.77,-233.36 34.5,-210.75 47.8,-158.32 52.44,-140.1 92.5,-103.75 101.03,-96.01 112.14,-90.31 122.65,-86.22"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="35.88,-278.65 42.19,-287.16 42.56,-276.58 35.88,-278.65"/>
<g id="a_edge6_Node000002_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M125.91,-133.05C126.51,-117.85 127.31,-97.6 127.77,-86.1"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="122.38,-132.76 125.48,-142.89 129.37,-133.03 122.38,-132.76"/>
</a>
</g>
<text text-anchor="middle" x="60" y="-183.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> level</text>
<text text-anchor="middle" x="60" y="-172" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">parent</text>
</g>
<!-- Node7&#45;&gt;Node6 -->
<g id="edge6_Node000006_Node000007" class="edge">
<title>Node7&#45;&gt;Node6</title>
<g id="a_edge6_Node000006_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M59.61,-279.77C69.13,-268.05 81.55,-252.77 90.58,-241.67"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="56.31,-277.28 52.72,-287.24 61.74,-281.69 56.31,-277.28"/>
</a>
</g>
<text text-anchor="middle" x="96.88" y="-261" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="139.62" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> level</text>
<text text-anchor="middle" x="139.62" y="-105.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">parent</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@@ -4,16 +4,16 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: graph::LowestCommonAncestor Pages: 1 -->
<svg width="294pt" height="316pt"
viewBox="0.00 0.00 293.50 315.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="310pt" height="316pt"
viewBox="0.00 0.00 310.38 315.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 311.75)">
<title>graph::LowestCommonAncestor</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="183.62,-19.25 27.38,-19.25 27.38,0 183.62,0 183.62,-19.25"/>
<text text-anchor="middle" x="105.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::LowestCommonAncestor</text>
<polygon fill="#999999" stroke="#666666" points="156.25,-19.25 0,-19.25 0,0 156.25,0 156.25,-19.25"/>
<text text-anchor="middle" x="78.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::LowestCommonAncestor</text>
</a>
</g>
</g>
@@ -21,8 +21,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d0/d58/classgraph_1_1_rooted_tree.html" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="204,-85.75 107,-85.75 107,-66.5 204,-66.5 204,-85.75"/>
<text text-anchor="middle" x="155.5" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">graph::RootedTree</text>
<polygon fill="white" stroke="#666666" points="176.62,-85.75 79.62,-85.75 79.62,-66.5 176.62,-66.5 176.62,-85.75"/>
<text text-anchor="middle" x="128.12" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">graph::RootedTree</text>
</a>
</g>
</g>
@@ -30,18 +30,18 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M141.92,-57.61C132.37,-45.28 119.98,-29.31 112.39,-19.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="139.65,-59.4 148.55,-65.16 145.19,-55.11 139.65,-59.4"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M114.55,-57.61C104.99,-45.28 92.61,-29.31 85.02,-19.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="112.28,-59.4 121.17,-65.16 117.81,-55.11 112.28,-59.4"/>
</a>
</g>
<text text-anchor="middle" x="142.25" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> tree</text>
<text text-anchor="middle" x="115.88" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> tree</text>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../dc/d61/classgraph_1_1_graph.html" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="203.62,-152.25 107.38,-152.25 107.38,-133 203.62,-133 203.62,-152.25"/>
<text text-anchor="middle" x="155.5" y="-138.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
<polygon fill="white" stroke="#666666" points="285.25,-163.5 189,-163.5 189,-144.25 285.25,-144.25 285.25,-163.5"/>
<text text-anchor="middle" x="237.12" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
</a>
</g>
</g>
@@ -49,8 +49,8 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node3&#45;&gt;Node2</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M155.5,-121.9C155.5,-109.93 155.5,-95.23 155.5,-86.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="152,-121.66 155.5,-131.66 159,-121.66 152,-121.66"/>
<path fill="none" stroke="#63b8ff" d="M215.46,-137.82C193.23,-122.37 159.39,-98.85 141.04,-86.1"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="212.98,-141.06 223.19,-143.89 216.98,-135.31 212.98,-141.06"/>
</a>
</g>
</g>
@@ -58,9 +58,9 @@
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/map.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="285.5,-241.25 179.5,-241.25 179.5,-210.75 285.5,-210.75 285.5,-241.25"/>
<text text-anchor="start" x="187.5" y="-227.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; T, std::list</text>
<text text-anchor="middle" x="232.5" y="-216.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; T &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="290.12,-241.25 184.12,-241.25 184.12,-210.75 290.12,-210.75 290.12,-241.25"/>
<text text-anchor="start" x="192.12" y="-227.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; T, std::list</text>
<text text-anchor="middle" x="237.12" y="-216.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; T &gt; &gt;</text>
</a>
</g>
</g>
@@ -68,18 +68,18 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node4&#45;&gt;Node3</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M214.16,-202.26C205.73,-192.18 195.42,-180.33 185.5,-170.25 179.44,-164.09 172.22,-157.65 166.37,-152.65"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="211.96,-204.1 221.03,-209.58 217.36,-199.64 211.96,-204.1"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M237.12,-199.62C237.12,-187.02 237.12,-172.62 237.12,-163.63"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="233.63,-199.47 237.12,-209.47 240.63,-199.47 233.63,-199.47"/>
</a>
</g>
<text text-anchor="middle" x="238.12" y="-177.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
<text text-anchor="middle" x="269.75" y="-183.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="white" stroke="#bfbfbf" points="246.9,-307.75 218.1,-307.75 218.1,-288.5 246.9,-288.5 246.9,-307.75"/>
<text text-anchor="middle" x="232.5" y="-294.25" font-family="Helvetica,sans-Serif" font-size="10.00">T</text>
<polygon fill="white" stroke="#bfbfbf" points="251.53,-307.75 222.72,-307.75 222.72,-288.5 251.53,-288.5 251.53,-307.75"/>
<text text-anchor="middle" x="237.12" y="-294.25" font-family="Helvetica,sans-Serif" font-size="10.00">T</text>
</a>
</g>
</g>
@@ -87,71 +87,61 @@
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node5&#45;&gt;Node4</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M232.5,-277.28C232.5,-265.95 232.5,-252 232.5,-241.67"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="229,-277.24 232.5,-287.24 236,-277.24 229,-277.24"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M237.12,-277.28C237.12,-265.95 237.12,-252 237.12,-241.67"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="233.63,-277.24 237.12,-287.24 240.63,-277.24 233.63,-277.24"/>
</a>
</g>
<text text-anchor="middle" x="244.5" y="-261" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> keys</text>
<text text-anchor="middle" x="249.12" y="-261" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> keys</text>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="161.5,-241.25 43.5,-241.25 43.5,-210.75 161.5,-210.75 161.5,-241.25"/>
<text text-anchor="start" x="51.5" y="-227.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="102.5" y="-216.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="138.12,-241.25 20.12,-241.25 20.12,-210.75 138.12,-210.75 138.12,-241.25"/>
<text text-anchor="start" x="28.12" y="-227.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="79.12" y="-216.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node1 -->
<g id="edge8_Node000001_Node000006" class="edge">
<g id="edge7_Node000001_Node000006" class="edge">
<title>Node6&#45;&gt;Node1</title>
<g id="a_edge8_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M100.51,-199.79C98.34,-168.5 95.57,-113.52 98.5,-66.5 99.53,-49.91 102.28,-30.72 104.01,-19.69"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="97.07,-199.84 101.29,-209.56 104.05,-199.33 97.07,-199.84"/>
<g id="a_edge7_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M74.59,-199.76C72.81,-188.67 71,-175.48 70.12,-163.5 67,-120.5 67.06,-109.5 70.12,-66.5 71.31,-49.88 74.45,-30.7 76.42,-19.68"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="71.27,-200.12 76.38,-209.4 78.17,-198.96 71.27,-200.12"/>
</a>
</g>
<text text-anchor="middle" x="103.25" y="-105.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> up</text>
<text text-anchor="middle" x="74.88" y="-111.12" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> up</text>
</g>
<!-- Node6&#45;&gt;Node3 -->
<g id="edge5_Node000003_Node000006" class="edge">
<title>Node6&#45;&gt;Node3</title>
<g id="a_edge5_Node000003_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M117.84,-201.44C128.51,-185.07 142.11,-164.18 149.71,-152.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="114.5,-199.16 111.98,-209.45 120.37,-202.98 114.5,-199.16"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M122.27,-205.85C152.95,-192.23 192.8,-174.55 216.59,-163.99"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="120.97,-203.04 113.25,-210.3 123.81,-209.44 120.97,-203.04"/>
</a>
</g>
<text text-anchor="middle" x="159" y="-177.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
<text text-anchor="middle" x="198.62" y="-183.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="91,-307.75 0,-307.75 0,-288.5 91,-288.5 91,-307.75"/>
<text text-anchor="middle" x="45.5" y="-294.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="170.62,-163.5 79.62,-163.5 79.62,-144.25 170.62,-144.25 170.62,-163.5"/>
<text text-anchor="middle" x="125.12" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node2 -->
<g id="edge7_Node000002_Node000007" class="edge">
<g id="edge6_Node000002_Node000007" class="edge">
<title>Node7&#45;&gt;Node2</title>
<g id="a_edge7_Node000002_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M38.96,-277.77C33.94,-260.09 28.77,-233.36 34.5,-210.75 47.8,-158.32 52.44,-140.1 92.5,-103.75 101.03,-96.01 112.14,-90.31 122.65,-86.22"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="35.88,-278.65 42.19,-287.16 42.56,-276.58 35.88,-278.65"/>
<g id="a_edge6_Node000002_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M125.91,-133.05C126.51,-117.85 127.31,-97.6 127.77,-86.1"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="122.38,-132.76 125.48,-142.89 129.37,-133.03 122.38,-132.76"/>
</a>
</g>
<text text-anchor="middle" x="60" y="-183.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> level</text>
<text text-anchor="middle" x="60" y="-172" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">parent</text>
</g>
<!-- Node7&#45;&gt;Node6 -->
<g id="edge6_Node000006_Node000007" class="edge">
<title>Node7&#45;&gt;Node6</title>
<g id="a_edge6_Node000006_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M59.61,-279.77C69.13,-268.05 81.55,-252.77 90.58,-241.67"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="56.31,-277.28 52.72,-287.24 61.74,-281.69 56.31,-277.28"/>
</a>
</g>
<text text-anchor="middle" x="96.88" y="-261" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="139.62" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> level</text>
<text text-anchor="middle" x="139.62" y="-105.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">parent</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@@ -1,20 +1,19 @@
<map id="Graph" name="Graph">
<area shape="rect" id="Node000001" title=" " alt="" coords="585,164,641,190"/>
<area shape="rect" id="Node000001" title=" " alt="" coords="585,172,641,198"/>
<area shape="rect" id="Node000002" href="$d7/d77/class_edge.html" title=" " alt="" coords="319,5,370,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="385,17,426,22,472,32,520,50,563,76,581,96,595,120,611,163,606,164,591,122,577,100,559,80,517,54,471,37,425,27,385,22"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="385,17,425,22,472,32,520,49,563,76,582,99,597,125,612,171,607,172,592,127,578,102,559,80,517,54,471,37,424,27,384,22"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/map.html" title=" " alt="" coords="258,56,431,111"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="446,92,505,106,562,129,585,145,602,162,599,166,581,149,560,134,503,112,445,98"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="446,92,505,106,562,131,587,149,604,170,600,173,583,153,560,135,504,111,445,97"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="5,63,153,104"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="168,81,257,81,257,86,168,86"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="266,198,423,239"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="438,214,499,208,560,196,585,188,586,193,562,201,499,213,438,219"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="18,163,140,188"/>
<area shape="poly" id="edge6_Node000001_Node000006" title=" " alt="" coords="154,171,177,170,455,166,508,165,561,166,585,169,584,174,561,171,508,170,455,171,177,175,154,176"/>
<area shape="poly" id="edge5_Node000005_Node000006" title=" " alt="" coords="155,185,266,203,265,208,154,190"/>
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="270,263,419,304"/>
<area shape="poly" id="edge7_Node000001_Node000007" title=" " alt="" coords="433,274,497,260,530,249,560,234,584,212,602,189,606,192,588,216,562,238,532,254,499,265,434,279"/>
<area shape="rect" id="Node000008" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/utility/tuple.html" title=" " alt="" coords="15,263,143,304"/>
<area shape="poly" id="edge8_Node000007_Node000008" title=" " alt="" coords="157,281,269,281,269,286,157,286"/>
<area shape="rect" id="Node000009" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/utility/bitset.html" title=" " alt="" coords="273,328,416,354"/>
<area shape="poly" id="edge9_Node000001_Node000009" title=" " alt="" coords="430,337,463,332,497,323,530,310,559,291,580,268,594,240,607,189,613,191,599,242,584,271,563,295,533,315,499,329,464,337,430,342"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="266,135,423,176"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="438,163,585,179,584,184,437,168"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="284,200,405,226"/>
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="420,210,488,206,561,197,584,191,585,197,561,202,489,211,420,215"/>
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="270,250,419,291"/>
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="433,263,497,252,560,229,582,214,599,196,603,200,585,218,562,234,499,257,434,268"/>
<area shape="rect" id="Node000008" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/utility/tuple.html" title=" " alt="" coords="15,250,143,291"/>
<area shape="poly" id="edge7_Node000007_Node000008" title=" " alt="" coords="157,268,269,268,269,273,157,273"/>
<area shape="rect" id="Node000009" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/utility/bitset.html" title=" " alt="" coords="273,315,416,340"/>
<area shape="poly" id="edge8_Node000001_Node000009" title=" " alt="" coords="430,325,497,312,530,300,559,282,578,263,591,240,606,197,611,199,596,242,582,266,563,286,532,304,498,317,431,330"/>
</map>

View File

@@ -1 +1 @@
09e7b1ea1fc37ebace1bc8f69f45208c
473d9285f6b814132d52a27d5da1ab97

View File

@@ -4,8 +4,8 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: Graph Pages: 1 -->
<svg width="485pt" height="269pt"
viewBox="0.00 0.00 485.00 269.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="485pt" height="259pt"
viewBox="0.00 0.00 485.00 259.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -16,14 +16,14 @@
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 265.25)">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 255.25)">
<title>Graph</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="477,-142.25 434.75,-142.25 434.75,-123 477,-123 477,-142.25"/>
<text text-anchor="middle" x="455.88" y="-128.75" font-family="Helvetica,sans-Serif" font-size="10.00">Graph</text>
<polygon fill="#999999" stroke="#666666" points="477,-126.25 434.75,-126.25 434.75,-107 477,-107 477,-126.25"/>
<text text-anchor="middle" x="455.88" y="-112.75" font-family="Helvetica,sans-Serif" font-size="10.00">Graph</text>
</a>
</g>
</g>
@@ -31,8 +31,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d7/d77/class_edge.html" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="273.5,-261.25 235,-261.25 235,-242 273.5,-242 273.5,-261.25"/>
<text text-anchor="middle" x="254.25" y="-247.75" font-family="Helvetica,sans-Serif" font-size="10.00">Edge</text>
<polygon fill="white" stroke="#666666" points="273.5,-251.25 235,-251.25 235,-232 273.5,-232 273.5,-251.25"/>
<text text-anchor="middle" x="254.25" y="-237.75" font-family="Helvetica,sans-Serif" font-size="10.00">Edge</text>
</a>
</g>
</g>
@@ -40,20 +40,20 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M284.81,-250.37C319.89,-247.44 378.43,-237.83 416.75,-206.62 437.48,-189.74 448.16,-158.62 452.49,-142.65"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="284.61,-246.94 274.88,-251.13 285.1,-253.93 284.61,-246.94"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M284.52,-240.61C319.71,-237.92 378.75,-228.56 416.75,-196.62 438.89,-178.02 449.07,-143.59 452.92,-126.62"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="284.75,-237.15 274.99,-241.26 285.19,-244.13 284.75,-237.15"/>
</a>
</g>
<text text-anchor="middle" x="377" y="-243.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> edges</text>
<text text-anchor="middle" x="377" y="-233.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> edges</text>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/map.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="319.25,-223.5 189.25,-223.5 189.25,-181.75 319.25,-181.75 319.25,-223.5"/>
<text text-anchor="start" x="197.25" y="-210" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; unsigned</text>
<text text-anchor="start" x="197.25" y="-198.75" font-family="Helvetica,sans-Serif" font-size="10.00"> int, std::vector&lt; unsigned</text>
<text text-anchor="middle" x="254.25" y="-187.5" font-family="Helvetica,sans-Serif" font-size="10.00"> int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="319.25,-213.5 189.25,-213.5 189.25,-171.75 319.25,-171.75 319.25,-213.5"/>
<text text-anchor="start" x="197.25" y="-200" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; unsigned</text>
<text text-anchor="start" x="197.25" y="-188.75" font-family="Helvetica,sans-Serif" font-size="10.00"> int, std::vector&lt; unsigned</text>
<text text-anchor="middle" x="254.25" y="-177.5" font-family="Helvetica,sans-Serif" font-size="10.00"> int &gt; &gt;</text>
</a>
</g>
</g>
@@ -61,19 +61,19 @@
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node3&#45;&gt;Node1</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M330.17,-194.07C358.41,-188.78 390.12,-180.28 416.75,-166.62 428.43,-160.64 439.35,-150.21 446.48,-142.48"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="329.78,-190.76 320.54,-195.94 331,-197.65 329.78,-190.76"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M330.33,-184.55C358.73,-179.21 390.5,-170.34 416.75,-155.62 429.63,-148.4 440.97,-135.5 447.87,-126.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="329.88,-181.25 320.63,-186.43 331.09,-188.15 329.88,-181.25"/>
</a>
</g>
<text text-anchor="middle" x="377" y="-193.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> m_adjList</text>
<text text-anchor="middle" x="377" y="-183.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> m_adjList</text>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="110.5,-217.88 0,-217.88 0,-187.38 110.5,-187.38 110.5,-217.88"/>
<text text-anchor="start" x="8" y="-204.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; unsigned</text>
<text text-anchor="middle" x="55.25" y="-193.12" font-family="Helvetica,sans-Serif" font-size="10.00"> int &gt;</text>
<polygon fill="white" stroke="#666666" points="110.5,-207.88 0,-207.88 0,-177.38 110.5,-177.38 110.5,-207.88"/>
<text text-anchor="start" x="8" y="-194.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; unsigned</text>
<text text-anchor="middle" x="55.25" y="-183.12" font-family="Helvetica,sans-Serif" font-size="10.00"> int &gt;</text>
</a>
</g>
</g>
@@ -81,19 +81,19 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node4&#45;&gt;Node3</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M121.64,-202.62C143.35,-202.62 167.49,-202.62 189.1,-202.62"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="121.86,-199.13 111.86,-202.62 121.86,-206.13 121.86,-199.13"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M121.64,-192.62C143.35,-192.62 167.49,-192.62 189.1,-192.62"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="121.86,-189.13 111.86,-192.62 121.86,-196.13 121.86,-189.13"/>
</a>
</g>
<text text-anchor="middle" x="149.88" y="-204.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="149.88" y="-194.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="313.25,-116.88 195.25,-116.88 195.25,-86.38 313.25,-86.38 313.25,-116.88"/>
<text text-anchor="start" x="203.25" y="-103.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="254.25" y="-92.12" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="313.25,-153.88 195.25,-153.88 195.25,-123.38 313.25,-123.38 313.25,-153.88"/>
<text text-anchor="start" x="203.25" y="-140.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="254.25" y="-129.12" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
@@ -101,41 +101,31 @@
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node5&#45;&gt;Node1</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M324.38,-102.99C353.28,-104.81 386.99,-108.56 416.75,-116.12 422.9,-117.69 429.33,-120.13 435.11,-122.65"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="324.74,-99.45 314.56,-102.39 324.35,-106.44 324.74,-99.45"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M324.26,-131.02C363.02,-126.75 408.66,-121.72 434.44,-118.88"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="324.08,-127.63 314.53,-132.2 324.85,-134.59 324.08,-127.63"/>
</a>
</g>
<text text-anchor="middle" x="377" y="-128.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> capacity</text>
<text text-anchor="middle" x="377" y="-117.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">residual_capacity</text>
<text text-anchor="middle" x="377" y="-141.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> capacity</text>
<text text-anchor="middle" x="377" y="-130.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">residual_capacity</text>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="100.75,-143.25 9.75,-143.25 9.75,-124 100.75,-124 100.75,-143.25"/>
<text text-anchor="middle" x="55.25" y="-129.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="299.75,-105.25 208.75,-105.25 208.75,-86 299.75,-86 299.75,-105.25"/>
<text text-anchor="middle" x="254.25" y="-91.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node1 -->
<g id="edge6_Node000001_Node000006" class="edge">
<g id="edge5_Node000001_Node000006" class="edge">
<title>Node6&#45;&gt;Node1</title>
<g id="a_edge6_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M111.76,-135.24C117.42,-135.38 123.07,-135.51 128.5,-135.62 221.27,-137.58 244.47,-137.96 337.25,-138.62 372.58,-138.88 381.52,-141.38 416.75,-138.62 422.49,-138.18 428.68,-137.35 434.37,-136.45"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="112.04,-131.72 101.96,-134.96 111.86,-138.71 112.04,-131.72"/>
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M310.83,-95.88C342.14,-96.8 381.85,-99.25 416.75,-105.38 422.6,-106.4 428.82,-108.01 434.5,-109.69"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="311.21,-92.37 301.12,-95.62 311.03,-99.36 311.21,-92.37"/>
</a>
</g>
<text text-anchor="middle" x="254.25" y="-139.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> parent</text>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node6&#45;&gt;Node5</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M111.74,-124.61C137.69,-120.4 168.59,-115.38 194.89,-111.11"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="111.26,-121.31 101.95,-126.36 112.38,-128.21 111.26,-121.31"/>
</a>
</g>
<text text-anchor="middle" x="149.88" y="-122.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="377" y="-106.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> parent</text>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
@@ -148,14 +138,14 @@
</g>
</g>
<!-- Node7&#45;&gt;Node1 -->
<g id="edge7_Node000001_Node000007" class="edge">
<g id="edge6_Node000001_Node000007" class="edge">
<title>Node7&#45;&gt;Node1</title>
<g id="a_edge7_Node000001_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M321.08,-57.58C351.86,-62.23 387.98,-71.18 416.75,-88.38 430.85,-96.8 442.37,-112.28 448.93,-122.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="321.83,-54.02 311.44,-56.11 320.87,-60.95 321.83,-54.02"/>
<g id="a_edge6_Node000001_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M321.3,-55.89C351.64,-59.48 387.34,-66.76 416.75,-81.38 428.86,-87.39 439.87,-98.46 446.91,-106.59"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="321.7,-52.3 311.39,-54.72 320.96,-59.26 321.7,-52.3"/>
</a>
</g>
<text text-anchor="middle" x="377" y="-89.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> edge_participated</text>
<text text-anchor="middle" x="377" y="-82.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> edge_participated</text>
</g>
<!-- Node8 -->
<g id="Node000008" class="node">
@@ -168,9 +158,9 @@
</g>
</g>
<!-- Node8&#45;&gt;Node7 -->
<g id="edge8_Node000007_Node000008" class="edge">
<g id="edge7_Node000007_Node000008" class="edge">
<title>Node8&#45;&gt;Node7</title>
<g id="a_edge8_Node000007_Node000008"><a xlink:title=" ">
<g id="a_edge7_Node000007_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M114.1,-52.62C140.61,-52.62 171.89,-52.62 198.07,-52.62"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="114.44,-49.13 104.44,-52.62 114.44,-56.13 114.44,-49.13"/>
</a>
@@ -187,14 +177,14 @@
</g>
</g>
<!-- Node9&#45;&gt;Node1 -->
<g id="edge9_Node000001_Node000009" class="edge">
<g id="edge8_Node000001_Node000009" class="edge">
<title>Node9&#45;&gt;Node1</title>
<g id="a_edge9_Node000001_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M318.57,-10.37C351.07,-13.79 389.45,-22.92 416.75,-45.38 441.26,-65.54 450.45,-104.53 453.51,-122.77"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="319.07,-6.81 308.8,-9.42 318.45,-13.79 319.07,-6.81"/>
<g id="a_edge8_Node000001_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M318.66,-9.81C350.83,-12.85 388.88,-21.27 416.75,-42.38 438.23,-58.65 448.63,-90.47 452.7,-106.66"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="319.24,-6.27 308.99,-8.98 318.69,-13.25 319.24,-6.27"/>
</a>
</g>
<text text-anchor="middle" x="377" y="-47.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> visited</text>
<text text-anchor="middle" x="377" y="-44.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> visited</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -4,16 +4,16 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: Graph Pages: 1 -->
<svg width="485pt" height="269pt"
viewBox="0.00 0.00 485.00 269.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 265.25)">
<svg width="485pt" height="259pt"
viewBox="0.00 0.00 485.00 259.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 255.25)">
<title>Graph</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="477,-142.25 434.75,-142.25 434.75,-123 477,-123 477,-142.25"/>
<text text-anchor="middle" x="455.88" y="-128.75" font-family="Helvetica,sans-Serif" font-size="10.00">Graph</text>
<polygon fill="#999999" stroke="#666666" points="477,-126.25 434.75,-126.25 434.75,-107 477,-107 477,-126.25"/>
<text text-anchor="middle" x="455.88" y="-112.75" font-family="Helvetica,sans-Serif" font-size="10.00">Graph</text>
</a>
</g>
</g>
@@ -21,8 +21,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d7/d77/class_edge.html" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="273.5,-261.25 235,-261.25 235,-242 273.5,-242 273.5,-261.25"/>
<text text-anchor="middle" x="254.25" y="-247.75" font-family="Helvetica,sans-Serif" font-size="10.00">Edge</text>
<polygon fill="white" stroke="#666666" points="273.5,-251.25 235,-251.25 235,-232 273.5,-232 273.5,-251.25"/>
<text text-anchor="middle" x="254.25" y="-237.75" font-family="Helvetica,sans-Serif" font-size="10.00">Edge</text>
</a>
</g>
</g>
@@ -30,20 +30,20 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M284.81,-250.37C319.89,-247.44 378.43,-237.83 416.75,-206.62 437.48,-189.74 448.16,-158.62 452.49,-142.65"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="284.61,-246.94 274.88,-251.13 285.1,-253.93 284.61,-246.94"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M284.52,-240.61C319.71,-237.92 378.75,-228.56 416.75,-196.62 438.89,-178.02 449.07,-143.59 452.92,-126.62"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="284.75,-237.15 274.99,-241.26 285.19,-244.13 284.75,-237.15"/>
</a>
</g>
<text text-anchor="middle" x="377" y="-243.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> edges</text>
<text text-anchor="middle" x="377" y="-233.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> edges</text>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/map.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="319.25,-223.5 189.25,-223.5 189.25,-181.75 319.25,-181.75 319.25,-223.5"/>
<text text-anchor="start" x="197.25" y="-210" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; unsigned</text>
<text text-anchor="start" x="197.25" y="-198.75" font-family="Helvetica,sans-Serif" font-size="10.00"> int, std::vector&lt; unsigned</text>
<text text-anchor="middle" x="254.25" y="-187.5" font-family="Helvetica,sans-Serif" font-size="10.00"> int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="319.25,-213.5 189.25,-213.5 189.25,-171.75 319.25,-171.75 319.25,-213.5"/>
<text text-anchor="start" x="197.25" y="-200" font-family="Helvetica,sans-Serif" font-size="10.00">std::map&lt; unsigned</text>
<text text-anchor="start" x="197.25" y="-188.75" font-family="Helvetica,sans-Serif" font-size="10.00"> int, std::vector&lt; unsigned</text>
<text text-anchor="middle" x="254.25" y="-177.5" font-family="Helvetica,sans-Serif" font-size="10.00"> int &gt; &gt;</text>
</a>
</g>
</g>
@@ -51,19 +51,19 @@
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node3&#45;&gt;Node1</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M330.17,-194.07C358.41,-188.78 390.12,-180.28 416.75,-166.62 428.43,-160.64 439.35,-150.21 446.48,-142.48"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="329.78,-190.76 320.54,-195.94 331,-197.65 329.78,-190.76"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M330.33,-184.55C358.73,-179.21 390.5,-170.34 416.75,-155.62 429.63,-148.4 440.97,-135.5 447.87,-126.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="329.88,-181.25 320.63,-186.43 331.09,-188.15 329.88,-181.25"/>
</a>
</g>
<text text-anchor="middle" x="377" y="-193.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> m_adjList</text>
<text text-anchor="middle" x="377" y="-183.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> m_adjList</text>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="110.5,-217.88 0,-217.88 0,-187.38 110.5,-187.38 110.5,-217.88"/>
<text text-anchor="start" x="8" y="-204.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; unsigned</text>
<text text-anchor="middle" x="55.25" y="-193.12" font-family="Helvetica,sans-Serif" font-size="10.00"> int &gt;</text>
<polygon fill="white" stroke="#666666" points="110.5,-207.88 0,-207.88 0,-177.38 110.5,-177.38 110.5,-207.88"/>
<text text-anchor="start" x="8" y="-194.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; unsigned</text>
<text text-anchor="middle" x="55.25" y="-183.12" font-family="Helvetica,sans-Serif" font-size="10.00"> int &gt;</text>
</a>
</g>
</g>
@@ -71,19 +71,19 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node4&#45;&gt;Node3</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M121.64,-202.62C143.35,-202.62 167.49,-202.62 189.1,-202.62"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="121.86,-199.13 111.86,-202.62 121.86,-206.13 121.86,-199.13"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M121.64,-192.62C143.35,-192.62 167.49,-192.62 189.1,-192.62"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="121.86,-189.13 111.86,-192.62 121.86,-196.13 121.86,-189.13"/>
</a>
</g>
<text text-anchor="middle" x="149.88" y="-204.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="149.88" y="-194.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="313.25,-116.88 195.25,-116.88 195.25,-86.38 313.25,-86.38 313.25,-116.88"/>
<text text-anchor="start" x="203.25" y="-103.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="254.25" y="-92.12" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="313.25,-153.88 195.25,-153.88 195.25,-123.38 313.25,-123.38 313.25,-153.88"/>
<text text-anchor="start" x="203.25" y="-140.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="254.25" y="-129.12" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
@@ -91,41 +91,31 @@
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node5&#45;&gt;Node1</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M324.38,-102.99C353.28,-104.81 386.99,-108.56 416.75,-116.12 422.9,-117.69 429.33,-120.13 435.11,-122.65"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="324.74,-99.45 314.56,-102.39 324.35,-106.44 324.74,-99.45"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M324.26,-131.02C363.02,-126.75 408.66,-121.72 434.44,-118.88"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="324.08,-127.63 314.53,-132.2 324.85,-134.59 324.08,-127.63"/>
</a>
</g>
<text text-anchor="middle" x="377" y="-128.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> capacity</text>
<text text-anchor="middle" x="377" y="-117.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">residual_capacity</text>
<text text-anchor="middle" x="377" y="-141.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> capacity</text>
<text text-anchor="middle" x="377" y="-130.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">residual_capacity</text>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="100.75,-143.25 9.75,-143.25 9.75,-124 100.75,-124 100.75,-143.25"/>
<text text-anchor="middle" x="55.25" y="-129.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="299.75,-105.25 208.75,-105.25 208.75,-86 299.75,-86 299.75,-105.25"/>
<text text-anchor="middle" x="254.25" y="-91.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node1 -->
<g id="edge6_Node000001_Node000006" class="edge">
<g id="edge5_Node000001_Node000006" class="edge">
<title>Node6&#45;&gt;Node1</title>
<g id="a_edge6_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M111.76,-135.24C117.42,-135.38 123.07,-135.51 128.5,-135.62 221.27,-137.58 244.47,-137.96 337.25,-138.62 372.58,-138.88 381.52,-141.38 416.75,-138.62 422.49,-138.18 428.68,-137.35 434.37,-136.45"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="112.04,-131.72 101.96,-134.96 111.86,-138.71 112.04,-131.72"/>
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M310.83,-95.88C342.14,-96.8 381.85,-99.25 416.75,-105.38 422.6,-106.4 428.82,-108.01 434.5,-109.69"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="311.21,-92.37 301.12,-95.62 311.03,-99.36 311.21,-92.37"/>
</a>
</g>
<text text-anchor="middle" x="254.25" y="-139.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> parent</text>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node6&#45;&gt;Node5</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M111.74,-124.61C137.69,-120.4 168.59,-115.38 194.89,-111.11"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="111.26,-121.31 101.95,-126.36 112.38,-128.21 111.26,-121.31"/>
</a>
</g>
<text text-anchor="middle" x="149.88" y="-122.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="377" y="-106.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> parent</text>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
@@ -138,14 +128,14 @@
</g>
</g>
<!-- Node7&#45;&gt;Node1 -->
<g id="edge7_Node000001_Node000007" class="edge">
<g id="edge6_Node000001_Node000007" class="edge">
<title>Node7&#45;&gt;Node1</title>
<g id="a_edge7_Node000001_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M321.08,-57.58C351.86,-62.23 387.98,-71.18 416.75,-88.38 430.85,-96.8 442.37,-112.28 448.93,-122.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="321.83,-54.02 311.44,-56.11 320.87,-60.95 321.83,-54.02"/>
<g id="a_edge6_Node000001_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M321.3,-55.89C351.64,-59.48 387.34,-66.76 416.75,-81.38 428.86,-87.39 439.87,-98.46 446.91,-106.59"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="321.7,-52.3 311.39,-54.72 320.96,-59.26 321.7,-52.3"/>
</a>
</g>
<text text-anchor="middle" x="377" y="-89.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> edge_participated</text>
<text text-anchor="middle" x="377" y="-82.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> edge_participated</text>
</g>
<!-- Node8 -->
<g id="Node000008" class="node">
@@ -158,9 +148,9 @@
</g>
</g>
<!-- Node8&#45;&gt;Node7 -->
<g id="edge8_Node000007_Node000008" class="edge">
<g id="edge7_Node000007_Node000008" class="edge">
<title>Node8&#45;&gt;Node7</title>
<g id="a_edge8_Node000007_Node000008"><a xlink:title=" ">
<g id="a_edge7_Node000007_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M114.1,-52.62C140.61,-52.62 171.89,-52.62 198.07,-52.62"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="114.44,-49.13 104.44,-52.62 114.44,-56.13 114.44,-49.13"/>
</a>
@@ -177,14 +167,14 @@
</g>
</g>
<!-- Node9&#45;&gt;Node1 -->
<g id="edge9_Node000001_Node000009" class="edge">
<g id="edge8_Node000001_Node000009" class="edge">
<title>Node9&#45;&gt;Node1</title>
<g id="a_edge9_Node000001_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M318.57,-10.37C351.07,-13.79 389.45,-22.92 416.75,-45.38 441.26,-65.54 450.45,-104.53 453.51,-122.77"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="319.07,-6.81 308.8,-9.42 318.45,-13.79 319.07,-6.81"/>
<g id="a_edge8_Node000001_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M318.66,-9.81C350.83,-12.85 388.88,-21.27 416.75,-42.38 438.23,-58.65 448.63,-90.47 452.7,-106.66"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="319.24,-6.27 308.99,-8.98 318.69,-13.25 319.24,-6.27"/>
</a>
</g>
<text text-anchor="middle" x="377" y="-47.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> visited</text>
<text text-anchor="middle" x="377" y="-44.38" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> visited</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@@ -116,7 +116,7 @@ Inheritance diagram for range_queries::heavy_light_decomposition::HLD&lt; X &gt;
<div class="dynheader">
Collaboration diagram for range_queries::heavy_light_decomposition::HLD&lt; X &gt;:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../dc/dd9/classrange__queries_1_1heavy__light__decomposition_1_1_h_l_d__coll__graph.svg" width="100%" height="524"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../dc/dd9/classrange__queries_1_1heavy__light__decomposition_1_1_h_l_d__coll__graph.svg" width="100%" height="512"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>

View File

@@ -1,11 +1,9 @@
<map id="graph::Graph&lt; T &gt;" name="graph::Graph&lt; T &gt;">
<area shape="rect" id="Node000001" title=" " alt="" coords="99,198,227,223"/>
<area shape="rect" id="Node000001" title=" " alt="" coords="127,198,255,223"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/map.html" title=" " alt="" coords="5,94,147,135"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="98,145,120,172,148,195,144,199,116,176,94,148"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="97,145,121,172,160,195,157,199,118,176,93,149"/>
<area shape="rect" id="Node000003" title=" " alt="" coords="57,5,95,31"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="79,46,79,93,73,93,73,46"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="171,94,328,135"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="230,148,207,176,181,199,177,195,203,172,226,145"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="189,5,310,31"/>
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="252,46,252,93,247,93,247,46"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="232,148,200,199,196,196,227,146"/>
</map>

View File

@@ -1 +1 @@
696065cbd4832026e787714586d94c31
6a35da6b23d3b6fce9e62b6bd08a16d9

View File

@@ -22,8 +22,8 @@
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="166.12,-19.25 69.88,-19.25 69.88,0 166.12,0 166.12,-19.25"/>
<text text-anchor="middle" x="118" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
<polygon fill="#999999" stroke="#666666" points="187.12,-19.25 90.88,-19.25 90.88,0 187.12,0 187.12,-19.25"/>
<text text-anchor="middle" x="139" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
</a>
</g>
</g>
@@ -41,11 +41,11 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M68.28,-57.44C73.19,-50.63 78.89,-43.38 84.75,-37.25 90.99,-30.73 98.83,-24.38 105.33,-19.51"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="64.96,-55.09 62.13,-65.3 70.71,-59.08 64.96,-55.09"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M67.51,-57.42C72.66,-50.35 78.91,-42.95 85.75,-37.25 94.41,-30.04 105.34,-24.14 115.05,-19.75"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="64.36,-54.82 61.59,-65.05 70.13,-58.78 64.36,-54.82"/>
</a>
</g>
<text text-anchor="middle" x="117.62" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
<text text-anchor="middle" x="118.62" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
@@ -80,30 +80,11 @@
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node4&#45;&gt;Node1</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M166.93,-57.55C161.82,-50.74 155.94,-43.47 150,-37.25 143.91,-30.88 136.35,-24.53 130.12,-19.63"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="164.65,-59.36 173.36,-65.39 170.31,-55.24 164.65,-59.36"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M168.27,-57.28C160.1,-44.26 150.42,-28.82 144.49,-19.38"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="165.6,-58.61 173.88,-65.22 171.53,-54.89 165.6,-58.61"/>
</a>
</g>
<text text-anchor="middle" x="181.5" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="228.5,-163.5 137.5,-163.5 137.5,-144.25 228.5,-144.25 228.5,-163.5"/>
<text text-anchor="middle" x="183" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node4 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node5&#45;&gt;Node4</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M183,-133.03C183,-121.7 183,-107.75 183,-97.42"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="179.5,-132.99 183,-142.99 186.5,-132.99 179.5,-132.99"/>
</a>
</g>
<text text-anchor="middle" x="204.38" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="184.5" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -12,8 +12,8 @@
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="166.12,-19.25 69.88,-19.25 69.88,0 166.12,0 166.12,-19.25"/>
<text text-anchor="middle" x="118" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
<polygon fill="#999999" stroke="#666666" points="187.12,-19.25 90.88,-19.25 90.88,0 187.12,0 187.12,-19.25"/>
<text text-anchor="middle" x="139" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">graph::Graph&lt; T &gt;</text>
</a>
</g>
</g>
@@ -31,11 +31,11 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M68.28,-57.44C73.19,-50.63 78.89,-43.38 84.75,-37.25 90.99,-30.73 98.83,-24.38 105.33,-19.51"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="64.96,-55.09 62.13,-65.3 70.71,-59.08 64.96,-55.09"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M67.51,-57.42C72.66,-50.35 78.91,-42.95 85.75,-37.25 94.41,-30.04 105.34,-24.14 115.05,-19.75"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="64.36,-54.82 61.59,-65.05 70.13,-58.78 64.36,-54.82"/>
</a>
</g>
<text text-anchor="middle" x="117.62" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
<text text-anchor="middle" x="118.62" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> adjacency_list</text>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
@@ -70,30 +70,11 @@
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node4&#45;&gt;Node1</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M166.93,-57.55C161.82,-50.74 155.94,-43.47 150,-37.25 143.91,-30.88 136.35,-24.53 130.12,-19.63"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="164.65,-59.36 173.36,-65.39 170.31,-55.24 164.65,-59.36"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M168.27,-57.28C160.1,-44.26 150.42,-28.82 144.49,-19.38"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="165.6,-58.61 173.88,-65.22 171.53,-54.89 165.6,-58.61"/>
</a>
</g>
<text text-anchor="middle" x="181.5" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="228.5,-163.5 137.5,-163.5 137.5,-144.25 228.5,-144.25 228.5,-163.5"/>
<text text-anchor="middle" x="183" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node4 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node5&#45;&gt;Node4</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M183,-133.03C183,-121.7 183,-107.75 183,-97.42"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="179.5,-132.99 183,-142.99 186.5,-132.99 179.5,-132.99"/>
</a>
</g>
<text text-anchor="middle" x="204.38" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="184.5" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> neighbors</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -99,12 +99,13 @@ $(document).ready(function(){initNavTree('d6/d2e/fenwick__tree_8cpp.html','../..
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">fenwick_tree.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Fenwick tree.
<p><a href="https://en.wikipedia.org/wiki/Fenwick_tree" target="_blank">Fenwick Tree</a> algorithm implementation
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;cassert&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
@@ -117,17 +118,32 @@ Include dependency graph for fenwick_tree.cpp:</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The class that initializes the Fenwick Tree. <a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:dd/d69/namespacerange__queries"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d69/namespacerange__queries.html">range_queries</a></td></tr>
<tr class="memdesc:dd/d69/namespacerange__queries"><td class="mdescLeft">&#160;</td><td class="mdescRight">Algorithms and Data Structures that support range queries and updates. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a483bb8ccf42aaf7375a83e91490eda1e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a> ()</td></tr>
<tr class="memdesc:a483bb8ccf42aaf7375a83e91490eda1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Self-test implementations. <br /></td></tr>
<tr class="separator:a483bb8ccf42aaf7375a83e91490eda1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d2e/fenwick__tree_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function. <br /></td></tr>
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Fenwick tree. </p>
<p>A Fenwick tree or binary indexed tree is a data structure that can efficiently update elements and calculate prefix sums in a table of numbers. </p>
<div class="textblock"><p><a href="https://en.wikipedia.org/wiki/Fenwick_tree" target="_blank">Fenwick Tree</a> algorithm implementation </p>
<p><em>From Wikipedia, the free encyclopedia.</em></p>
<p>A Fenwick tree or binary indexed tree (BIT) is a clever implementation of a datastructure called bionomal tree. It can update values and solve range queries with operations that is; commulative, associative and has an inverse for this type of element. It can also solve immutable range queries (min/max), when operations only are associative over this type of element. Some of these restrictions can be removed, by storing redunant information; like in max/min range queries.</p>
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/mateusz-grzegorzek" target="_blank">Mateusz Grzegorzek</a> </dd>
<dd>
<a href="https://github.com/Panquesito7" target="_blank">David Leal</a> </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">&#9670;&#160;</a></span>main()</h2>
@@ -144,27 +160,67 @@ Functions</h2></td></tr>
</tr>
</table>
</div><div class="memdoc">
<p>Main function </p>
<div class="fragment"><div class="line"><span class="lineno"> 69</span> {</div>
<div class="line"><span class="lineno"> 70</span> <span class="keywordtype">int</span> n = 5;</div>
<div class="line"><span class="lineno"> 71</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;int&gt;</a> arr = {1, 2, 3, 4, 5};</div>
<div class="line"><span class="lineno"> 72</span> <a class="code hl_class" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a> fenwick_tree(arr);</div>
<div class="line"><span class="lineno"> 73</span> </div>
<div class="line"><span class="lineno"> 74</span> assert(fenwick_tree.sum_range(0, 0) == 1);</div>
<div class="line"><span class="lineno"> 75</span> assert(fenwick_tree.sum_range(0, 1) == 3);</div>
<div class="line"><span class="lineno"> 76</span> assert(fenwick_tree.sum_range(0, 2) == 6);</div>
<div class="line"><span class="lineno"> 77</span> fenwick_tree.update(0, 6);</div>
<div class="line"><span class="lineno"> 78</span> assert(fenwick_tree.sum_range(0, 0) == 6);</div>
<div class="line"><span class="lineno"> 79</span> assert(fenwick_tree.sum_range(0, 1) == 8);</div>
<div class="line"><span class="lineno"> 80</span> assert(fenwick_tree.sum_range(0, 2) == 11);</div>
<div class="line"><span class="lineno"> 81</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 82</span>}</div>
<div class="ttc" id="aclass_fenwick_tree_html"><div class="ttname"><a href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:17</div></div>
<p>Main function. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 132</span> {</div>
<div class="line"><span class="lineno"> 133</span> <a class="code hl_function" href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>(); <span class="comment">// run self-test implementations</span></div>
<div class="line"><span class="lineno"> 134</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 135</span>}</div>
<div class="ttc" id="afenwick__tree_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:114</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d6/d2e/fenwick__tree_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="100%" height="388"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
</div>
</div>
</div>
<a id="a483bb8ccf42aaf7375a83e91490eda1e" name="a483bb8ccf42aaf7375a83e91490eda1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">&#9670;&#160;</a></span>tests()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void tests </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Self-test implementations. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 114</span> {</div>
<div class="line"><span class="lineno"> 115</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;int&gt;</a> arr = {1, 2, 3, 4, 5};</div>
<div class="line"><span class="lineno"> 116</span> <a class="code hl_class" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a> fenwick_tree(arr);</div>
<div class="line"><span class="lineno"> 117</span> </div>
<div class="line"><span class="lineno"> 118</span> assert(fenwick_tree.sum_range(0, 0) == 1);</div>
<div class="line"><span class="lineno"> 119</span> assert(fenwick_tree.sum_range(0, 1) == 3);</div>
<div class="line"><span class="lineno"> 120</span> assert(fenwick_tree.sum_range(0, 2) == 6);</div>
<div class="line"><span class="lineno"> 121</span> assert(fenwick_tree.sum_range(0, 3) == 10);</div>
<div class="line"><span class="lineno"> 122</span> assert(fenwick_tree.sum_range(0, 4) == 15);</div>
<div class="line"><span class="lineno"> 123</span> </div>
<div class="line"><span class="lineno"> 124</span> fenwick_tree.update(0, 6);</div>
<div class="line"><span class="lineno"> 125</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;All tests have successfully passed!\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 126</span>}</div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></div><div class="ttdoc">The class that initializes the Fenwick Tree.</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:32</div></div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d6/d2e/fenwick__tree_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="654" height="87"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d6/d2e/fenwick__tree_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.svg" width="100%" height="388"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
</div>
</div>

View File

@@ -1,5 +1,6 @@
var fenwick__tree_8cpp =
[
[ "FenwickTree", "dd/d91/class_fenwick_tree.html", "dd/d91/class_fenwick_tree" ],
[ "main", "d6/d2e/fenwick__tree_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ]
[ "range_queries::fenwick_tree", "de/d0d/classrange__queries_1_1fenwick__tree.html", "de/d0d/classrange__queries_1_1fenwick__tree" ],
[ "main", "d6/d2e/fenwick__tree_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
[ "tests", "d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e", null ]
];

View File

@@ -0,0 +1,12 @@
<map id="tests" name="tests">
<area shape="rect" id="Node000001" title="Self&#45;test implementations." alt="" coords="5,46,56,72"/>
<area shape="rect" id="Node000002" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" title="Returns the prefix sum in range from L to R." alt="" coords="104,8,259,49"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="56,51,89,44,90,50,57,57"/>
<area shape="rect" id="Node000005" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" title="Updates the value of an element in original array and accordingly updates the values in BIT array." alt="" coords="307,71,462,111"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="56,59,292,80,292,85,56,64"/>
<area shape="rect" id="Node000003" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" title="Returns the sum of elements in range from 0 to ID." alt="" coords="307,5,462,46"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="259,25,292,24,292,30,259,30"/>
<area shape="rect" id="Node000004" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" title="Returns the highest power of two which is not more than x." alt="" coords="510,39,666,79"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="463,36,496,41,495,46,462,41"/>
<area shape="poly" id="edge5_Node000005_Node000004" title=" " alt="" coords="462,76,495,71,496,76,463,81"/>
</map>

View File

@@ -0,0 +1 @@
801f348fab4dd2587848853a07163bf5

View File

@@ -0,0 +1,188 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: tests Pages: 1 -->
<!--zoomable 88 -->
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<defs>
<circle id="rim" cx="0" cy="0" r="7"/>
<circle id="rim2" cx="0" cy="0" r="3.5"/>
<g id="zoomPlus">
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/></use>
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="zoomMin">
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/></use>
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="arrowUp" transform="translate(30 24)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowRight" transform="rotate(90) translate(36 -43)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowDown" transform="rotate(180) translate(-30 -48)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowLeft" transform="rotate(270) translate(-36 17)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="resetDef">
<use xlink:href="#rim2" fill="#404040"><set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/></use>
</g>
</defs>
<script type="application/ecmascript">
var viewWidth = 503;
var viewHeight = 88;
var sectionId = 'dynsection-2';
</script>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="viewport">
<title>tests</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Self&#45;test implementations.">
<polygon fill="#999999" stroke="#666666" points="37.75,-48.88 0,-48.88 0,-29.62 37.75,-29.62 37.75,-48.88"/>
<text text-anchor="middle" x="18.88" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" target="_top" xlink:title="Returns the prefix sum in range from L to R.">
<polygon fill="white" stroke="#666666" points="190.25,-77.5 73.75,-77.5 73.75,-47 190.25,-47 190.25,-77.5"/>
<text text-anchor="start" x="81.75" y="-64" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="132" y="-52.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum_range</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M38.23,-43.05C45.39,-44.53 54.09,-46.33 63.25,-48.23"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.23,-51.8 72.73,-50.4 63.65,-44.94 62.23,-51.8"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" target="_top" xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
<polygon fill="white" stroke="#666666" points="342.75,-30.5 226.25,-30.5 226.25,0 342.75,0 342.75,-30.5"/>
<text text-anchor="start" x="234.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="284.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M38,-37.6C73.92,-34.33 155.8,-26.88 215.15,-21.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.31,-24.88 224.95,-20.49 214.68,-17.91 215.31,-24.88"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" target="_top" xlink:title="Returns the sum of elements in range from 0 to ID.">
<polygon fill="white" stroke="#666666" points="342.75,-79.5 226.25,-79.5 226.25,-49 342.75,-49 342.75,-79.5"/>
<text text-anchor="start" x="234.25" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="284.5" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M190.33,-63.01C198.41,-63.12 206.79,-63.23 215.06,-63.34"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="214.79,-66.85 224.83,-63.48 214.88,-59.85 214.79,-66.85"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="495.25,-54.5 378.75,-54.5 378.75,-24 495.25,-24 495.25,-54.5"/>
<text text-anchor="start" x="386.75" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="437" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M342.83,-54.73C350.91,-53.38 359.29,-51.99 367.56,-50.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="368.04,-53.92 377.33,-48.83 366.9,-47.02 368.04,-53.92"/>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node4 -->
<g id="edge5_Node000005_Node000004" class="edge">
<title>Node5&#45;&gt;Node4</title>
<g id="a_edge5_Node000005_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M342.83,-24.39C350.91,-25.68 359.29,-27.02 367.56,-28.34"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="366.91,-31.94 377.33,-30.05 368.01,-25.02 366.91,-31.94"/>
</a>
</g>
</g>
</g>
</svg>
<g id="navigator" transform="translate(0 0)" fill="#404254">
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
<use id="arrowup" xlink:href="#arrowUp" x="0" y="0" onmousedown="handlePan(0,-1)"/>
<use id="arrowright" xlink:href="#arrowRight" x="0" y="0" onmousedown="handlePan(1,0)"/>
<use id="arrowdown" xlink:href="#arrowDown" x="0" y="0" onmousedown="handlePan(0,1)"/>
<use id="arrowleft" xlink:href="#arrowLeft" x="0" y="0" onmousedown="handlePan(-1,0)"/>
</g>
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
<g id="arrow_out" transform="scale(0.3 0.3)">
<a xlink:href="fenwick__tree_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph_org.svg" target="_base">
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
<path id="arrow"
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
style="fill:#404040;"/>
</a>
</g>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: tests Pages: 1 -->
<svg width="503pt" height="88pt"
viewBox="0.00 0.00 503.25 87.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 83.5)">
<title>tests</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Self&#45;test implementations.">
<polygon fill="#999999" stroke="#666666" points="37.75,-48.88 0,-48.88 0,-29.62 37.75,-29.62 37.75,-48.88"/>
<text text-anchor="middle" x="18.88" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" target="_top" xlink:title="Returns the prefix sum in range from L to R.">
<polygon fill="white" stroke="#666666" points="190.25,-77.5 73.75,-77.5 73.75,-47 190.25,-47 190.25,-77.5"/>
<text text-anchor="start" x="81.75" y="-64" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="132" y="-52.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum_range</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M38.23,-43.05C45.39,-44.53 54.09,-46.33 63.25,-48.23"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.23,-51.8 72.73,-50.4 63.65,-44.94 62.23,-51.8"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" target="_top" xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
<polygon fill="white" stroke="#666666" points="342.75,-30.5 226.25,-30.5 226.25,0 342.75,0 342.75,-30.5"/>
<text text-anchor="start" x="234.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="284.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M38,-37.6C73.92,-34.33 155.8,-26.88 215.15,-21.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.31,-24.88 224.95,-20.49 214.68,-17.91 215.31,-24.88"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" target="_top" xlink:title="Returns the sum of elements in range from 0 to ID.">
<polygon fill="white" stroke="#666666" points="342.75,-79.5 226.25,-79.5 226.25,-49 342.75,-49 342.75,-79.5"/>
<text text-anchor="start" x="234.25" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="284.5" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M190.33,-63.01C198.41,-63.12 206.79,-63.23 215.06,-63.34"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="214.79,-66.85 224.83,-63.48 214.88,-59.85 214.79,-66.85"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="495.25,-54.5 378.75,-54.5 378.75,-24 495.25,-24 495.25,-54.5"/>
<text text-anchor="start" x="386.75" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="437" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M342.83,-54.73C350.91,-53.38 359.29,-51.99 367.56,-50.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="368.04,-53.92 377.33,-48.83 366.9,-47.02 368.04,-53.92"/>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node4 -->
<g id="edge5_Node000005_Node000004" class="edge">
<title>Node5&#45;&gt;Node4</title>
<g id="a_edge5_Node000005_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M342.83,-24.39C350.91,-25.68 359.29,-27.02 367.56,-28.34"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="366.91,-31.94 377.33,-30.05 368.01,-25.02 366.91,-31.94"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -1,12 +1,14 @@
<map id="main" name="main">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,31,55,56"/>
<area shape="rect" id="Node000002" href="$dd/d91/class_fenwick_tree.html#a115ff5c548b429b737ea09f75817d1f9" title=" " alt="" coords="103,5,271,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,37,89,31,90,37,56,42"/>
<area shape="rect" id="Node000005" href="$dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00" title=" " alt="" coords="319,56,462,82"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="55,43,305,60,304,65,55,48"/>
<area shape="rect" id="Node000003" href="$dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699" title=" " alt="" coords="326,7,455,32"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="271,16,311,16,311,22,271,21"/>
<area shape="rect" id="Node000004" href="$dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" title=" " alt="" coords="510,32,648,58"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="456,26,496,31,495,36,456,31"/>
<area shape="poly" id="edge5_Node000005_Node000004" title=" " alt="" coords="462,57,496,53,496,58,463,62"/>
<area shape="rect" id="Node000001" title="Main function." alt="" coords="5,46,55,72"/>
<area shape="rect" id="Node000002" href="$d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" title="Self&#45;test implementations." alt="" coords="103,46,153,72"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,56,88,56,88,62,55,62"/>
<area shape="rect" id="Node000003" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" title="Returns the prefix sum in range from L to R." alt="" coords="201,8,356,49"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="153,51,186,44,188,50,154,57"/>
<area shape="rect" id="Node000006" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" title="Updates the value of an element in original array and accordingly updates the values in BIT array." alt="" coords="404,71,560,111"/>
<area shape="poly" id="edge5_Node000002_Node000006" title=" " alt="" coords="154,59,390,80,389,85,153,64"/>
<area shape="rect" id="Node000004" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" title="Returns the sum of elements in range from 0 to ID." alt="" coords="404,5,560,46"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="356,25,389,24,389,30,356,30"/>
<area shape="rect" id="Node000005" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" title="Returns the highest power of two which is not more than x." alt="" coords="608,39,763,79"/>
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="560,36,593,41,592,46,559,41"/>
<area shape="poly" id="edge6_Node000006_Node000005" title=" " alt="" coords="559,76,592,71,593,76,560,81"/>
</map>

View File

@@ -1 +1 @@
bd1af1053c41f75219f37eaba0886f70
7615878d501bf0fd90c054122b1f0fad

View File

@@ -4,8 +4,7 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: main Pages: 1 -->
<svg width="490pt" height="65pt"
viewBox="0.00 0.00 489.75 65.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!--zoomable 88 -->
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -14,25 +13,62 @@
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<defs>
<circle id="rim" cx="0" cy="0" r="7"/>
<circle id="rim2" cx="0" cy="0" r="3.5"/>
<g id="zoomPlus">
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/></use>
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="zoomMin">
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/></use>
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="arrowUp" transform="translate(30 24)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowRight" transform="rotate(90) translate(36 -43)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowDown" transform="rotate(180) translate(-30 -48)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowLeft" transform="rotate(270) translate(-36 17)">
<use xlink:href="#rim"/>
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="resetDef">
<use xlink:href="#rim2" fill="#404040"><set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/></use>
</g>
</defs>
<script type="application/ecmascript">
var viewWidth = 576;
var viewHeight = 88;
var sectionId = 'dynsection-1';
</script>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 61.25)">
<g id="viewport">
<title>main</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="37,-38.25 0,-38.25 0,-19 37,-19 37,-38.25"/>
<text text-anchor="middle" x="18.5" y="-24.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
<g id="a_Node000001"><a xlink:title="Main function.">
<polygon fill="#999999" stroke="#666666" points="37,-48.88 0,-48.88 0,-29.62 37,-29.62 37,-48.88"/>
<text text-anchor="middle" x="18.5" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/d91/class_fenwick_tree.html#a115ff5c548b429b737ea09f75817d1f9" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="199.25,-57.25 73,-57.25 73,-38 199.25,-38 199.25,-57.25"/>
<text text-anchor="middle" x="136.12" y="-43.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum_range</text>
<g id="a_Node000002"><a xlink:href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="Self&#45;test implementations.">
<polygon fill="white" stroke="#666666" points="110.75,-48.88 73,-48.88 73,-29.62 110.75,-29.62 110.75,-48.88"/>
<text text-anchor="middle" x="91.88" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
</a>
</g>
</g>
@@ -40,35 +76,18 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.31,-31.55C44.54,-32.74 53.4,-34.2 62.81,-35.74"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.17,-39.35 72.61,-37.52 63.31,-32.44 62.17,-39.35"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="342.75,-19.25 235.25,-19.25 235.25,0 342.75,0 342.75,-19.25"/>
<text text-anchor="middle" x="289" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::update</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.12,-27.38C74.43,-24.74 163.01,-18.47 224.25,-14.14"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="224.25,-17.57 233.97,-13.38 223.75,-10.59 224.25,-17.57"/>
<path fill="none" stroke="#63b8ff" d="M37.14,-39.25C44.64,-39.25 53.57,-39.25 61.98,-39.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.94,-42.75 71.94,-39.25 61.94,-35.75 61.94,-42.75"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="337.5,-56.25 240.5,-56.25 240.5,-37 337.5,-37 337.5,-56.25"/>
<text text-anchor="middle" x="289" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum</text>
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" target="_top" xlink:title="Returns the prefix sum in range from L to R.">
<polygon fill="white" stroke="#666666" points="263.25,-77.5 146.75,-77.5 146.75,-47 263.25,-47 263.25,-77.5"/>
<text text-anchor="start" x="154.75" y="-64" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="205" y="-52.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum_range</text>
</a>
</g>
</g>
@@ -76,17 +95,37 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M199.36,-47.21C209.27,-47.15 219.49,-47.08 229.32,-47.01"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="229.22,-50.51 239.2,-46.94 229.17,-43.51 229.22,-50.51"/>
<path fill="none" stroke="#63b8ff" d="M111.23,-43.05C118.39,-44.53 127.09,-46.33 136.25,-48.23"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="135.23,-51.8 145.73,-50.4 136.65,-44.94 135.23,-51.8"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" target="_top" xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
<polygon fill="white" stroke="#666666" points="415.75,-30.5 299.25,-30.5 299.25,0 415.75,0 415.75,-30.5"/>
<text text-anchor="start" x="307.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="357.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node6 -->
<g id="edge5_Node000002_Node000006" class="edge">
<title>Node2&#45;&gt;Node6</title>
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M111,-37.6C146.92,-34.33 228.8,-26.88 288.15,-21.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="288.31,-24.88 297.95,-20.49 287.68,-17.91 288.31,-24.88"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="481.75,-37.25 378.75,-37.25 378.75,-18 481.75,-18 481.75,-37.25"/>
<text text-anchor="middle" x="430.25" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
<g id="a_Node000004"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" target="_top" xlink:title="Returns the sum of elements in range from 0 to ID.">
<polygon fill="white" stroke="#666666" points="415.75,-79.5 299.25,-79.5 299.25,-49 415.75,-49 415.75,-79.5"/>
<text text-anchor="start" x="307.25" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="357.5" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
</a>
</g>
</g>
@@ -94,22 +133,62 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M337.92,-40.09C347.51,-38.78 357.71,-37.39 367.69,-36.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="367.95,-39.38 377.39,-34.56 367.01,-32.45 367.95,-39.38"/>
<path fill="none" stroke="#63b8ff" d="M263.33,-63.01C271.41,-63.12 279.79,-63.23 288.06,-63.34"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.79,-66.85 297.83,-63.48 287.88,-59.85 287.79,-66.85"/>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node4 -->
<g id="edge5_Node000005_Node000004" class="edge">
<title>Node5&#45;&gt;Node4</title>
<g id="a_edge5_Node000005_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M343.04,-16.48C351.16,-17.53 359.61,-18.62 367.89,-19.69"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="367.29,-23.27 377.65,-21.08 368.18,-16.33 367.29,-23.27"/>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="568.25,-54.5 451.75,-54.5 451.75,-24 568.25,-24 568.25,-54.5"/>
<text text-anchor="start" x="459.75" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="510" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node4&#45;&gt;Node5</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M415.83,-54.73C423.91,-53.38 432.29,-51.99 440.56,-50.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="441.04,-53.92 450.33,-48.83 439.9,-47.02 441.04,-53.92"/>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge6_Node000006_Node000005" class="edge">
<title>Node6&#45;&gt;Node5</title>
<g id="a_edge6_Node000006_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M415.83,-24.39C423.91,-25.68 432.29,-27.02 440.56,-28.34"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="439.91,-31.94 450.33,-30.05 441.01,-25.02 439.91,-31.94"/>
</a>
</g>
</g>
</g>
</svg>
<g id="navigator" transform="translate(0 0)" fill="#404254">
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
<use id="arrowup" xlink:href="#arrowUp" x="0" y="0" onmousedown="handlePan(0,-1)"/>
<use id="arrowright" xlink:href="#arrowRight" x="0" y="0" onmousedown="handlePan(1,0)"/>
<use id="arrowdown" xlink:href="#arrowDown" x="0" y="0" onmousedown="handlePan(0,1)"/>
<use id="arrowleft" xlink:href="#arrowLeft" x="0" y="0" onmousedown="handlePan(-1,0)"/>
</g>
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
<g id="arrow_out" transform="scale(0.3 0.3)">
<a xlink:href="fenwick__tree_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph_org.svg" target="_base">
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
<path id="arrow"
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
style="fill:#404040;"/>
</a>
</g>
</svg>
<style type='text/css'>

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -4,25 +4,25 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: main Pages: 1 -->
<svg width="490pt" height="65pt"
viewBox="0.00 0.00 489.75 65.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 61.25)">
<svg width="576pt" height="88pt"
viewBox="0.00 0.00 576.25 87.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 83.5)">
<title>main</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="37,-38.25 0,-38.25 0,-19 37,-19 37,-38.25"/>
<text text-anchor="middle" x="18.5" y="-24.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
<g id="a_Node000001"><a xlink:title="Main function.">
<polygon fill="#999999" stroke="#666666" points="37,-48.88 0,-48.88 0,-29.62 37,-29.62 37,-48.88"/>
<text text-anchor="middle" x="18.5" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/d91/class_fenwick_tree.html#a115ff5c548b429b737ea09f75817d1f9" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="199.25,-57.25 73,-57.25 73,-38 199.25,-38 199.25,-57.25"/>
<text text-anchor="middle" x="136.12" y="-43.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum_range</text>
<g id="a_Node000002"><a xlink:href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="Self&#45;test implementations.">
<polygon fill="white" stroke="#666666" points="110.75,-48.88 73,-48.88 73,-29.62 110.75,-29.62 110.75,-48.88"/>
<text text-anchor="middle" x="91.88" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
</a>
</g>
</g>
@@ -30,35 +30,18 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.31,-31.55C44.54,-32.74 53.4,-34.2 62.81,-35.74"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.17,-39.35 72.61,-37.52 63.31,-32.44 62.17,-39.35"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="342.75,-19.25 235.25,-19.25 235.25,0 342.75,0 342.75,-19.25"/>
<text text-anchor="middle" x="289" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::update</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.12,-27.38C74.43,-24.74 163.01,-18.47 224.25,-14.14"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="224.25,-17.57 233.97,-13.38 223.75,-10.59 224.25,-17.57"/>
<path fill="none" stroke="#63b8ff" d="M37.14,-39.25C44.64,-39.25 53.57,-39.25 61.98,-39.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.94,-42.75 71.94,-39.25 61.94,-35.75 61.94,-42.75"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="337.5,-56.25 240.5,-56.25 240.5,-37 337.5,-37 337.5,-56.25"/>
<text text-anchor="middle" x="289" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum</text>
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" target="_top" xlink:title="Returns the prefix sum in range from L to R.">
<polygon fill="white" stroke="#666666" points="263.25,-77.5 146.75,-77.5 146.75,-47 263.25,-47 263.25,-77.5"/>
<text text-anchor="start" x="154.75" y="-64" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="205" y="-52.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum_range</text>
</a>
</g>
</g>
@@ -66,17 +49,37 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M199.36,-47.21C209.27,-47.15 219.49,-47.08 229.32,-47.01"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="229.22,-50.51 239.2,-46.94 229.17,-43.51 229.22,-50.51"/>
<path fill="none" stroke="#63b8ff" d="M111.23,-43.05C118.39,-44.53 127.09,-46.33 136.25,-48.23"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="135.23,-51.8 145.73,-50.4 136.65,-44.94 135.23,-51.8"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" target="_top" xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
<polygon fill="white" stroke="#666666" points="415.75,-30.5 299.25,-30.5 299.25,0 415.75,0 415.75,-30.5"/>
<text text-anchor="start" x="307.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="357.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node6 -->
<g id="edge5_Node000002_Node000006" class="edge">
<title>Node2&#45;&gt;Node6</title>
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M111,-37.6C146.92,-34.33 228.8,-26.88 288.15,-21.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="288.31,-24.88 297.95,-20.49 287.68,-17.91 288.31,-24.88"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="481.75,-37.25 378.75,-37.25 378.75,-18 481.75,-18 481.75,-37.25"/>
<text text-anchor="middle" x="430.25" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
<g id="a_Node000004"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" target="_top" xlink:title="Returns the sum of elements in range from 0 to ID.">
<polygon fill="white" stroke="#666666" points="415.75,-79.5 299.25,-79.5 299.25,-49 415.75,-49 415.75,-79.5"/>
<text text-anchor="start" x="307.25" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="357.5" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
</a>
</g>
</g>
@@ -84,17 +87,36 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M337.92,-40.09C347.51,-38.78 357.71,-37.39 367.69,-36.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="367.95,-39.38 377.39,-34.56 367.01,-32.45 367.95,-39.38"/>
<path fill="none" stroke="#63b8ff" d="M263.33,-63.01C271.41,-63.12 279.79,-63.23 288.06,-63.34"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.79,-66.85 297.83,-63.48 287.88,-59.85 287.79,-66.85"/>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node4 -->
<g id="edge5_Node000005_Node000004" class="edge">
<title>Node5&#45;&gt;Node4</title>
<g id="a_edge5_Node000005_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M343.04,-16.48C351.16,-17.53 359.61,-18.62 367.89,-19.69"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="367.29,-23.27 377.65,-21.08 368.18,-16.33 367.29,-23.27"/>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="568.25,-54.5 451.75,-54.5 451.75,-24 568.25,-24 568.25,-54.5"/>
<text text-anchor="start" x="459.75" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="510" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node4&#45;&gt;Node5</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M415.83,-54.73C423.91,-53.38 432.29,-51.99 440.56,-50.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="441.04,-53.92 450.33,-48.83 439.9,-47.02 441.04,-53.92"/>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge6_Node000006_Node000005" class="edge">
<title>Node6&#45;&gt;Node5</title>
<g id="a_edge6_Node000006_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M415.83,-24.39C423.91,-25.68 432.29,-27.02 440.56,-28.34"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="439.91,-31.94 450.33,-30.05 441.01,-25.02 439.91,-31.94"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -0,0 +1,5 @@
<map id="range_queries::fenwick_tree" name="range_queries::fenwick_tree">
<area shape="rect" id="Node000001" title="The class that initializes the Fenwick Tree." alt="" coords="5,94,190,120"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="37,5,158,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="100,46,100,94,95,94,95,46"/>
</map>

View File

@@ -0,0 +1 @@
6172a27841c2b1e2b194fc7da073a46c

View File

@@ -3,9 +3,9 @@
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree Pages: 1 -->
<svg width="99pt" height="94pt"
viewBox="0.00 0.00 99.00 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Title: range_queries::fenwick_tree Pages: 1 -->
<svg width="146pt" height="94pt"
viewBox="0.00 0.00 146.25 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -17,13 +17,13 @@
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 89.75)">
<title>FenwickTree</title>
<title>range_queries::fenwick_tree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="81.62,-19.25 9.38,-19.25 9.38,0 81.62,0 81.62,-19.25"/>
<text text-anchor="middle" x="45.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree</text>
<g id="a_Node000001"><a xlink:title="The class that initializes the Fenwick Tree.">
<polygon fill="#999999" stroke="#666666" points="138.25,-19.25 0,-19.25 0,0 138.25,0 138.25,-19.25"/>
<text text-anchor="middle" x="69.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick_tree</text>
</a>
</g>
</g>
@@ -31,8 +31,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="91,-85.75 0,-85.75 0,-66.5 91,-66.5 91,-85.75"/>
<text text-anchor="middle" x="45.5" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="114.62,-85.75 23.62,-85.75 23.62,-66.5 114.62,-66.5 114.62,-85.75"/>
<text text-anchor="middle" x="69.12" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
@@ -40,11 +40,11 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M45.5,-55.4C45.5,-43.43 45.5,-28.73 45.5,-19.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="42,-55.16 45.5,-65.16 49,-55.16 42,-55.16"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M69.12,-55.4C69.12,-43.43 69.12,-28.73 69.12,-19.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="65.63,-55.16 69.12,-65.16 72.63,-55.16 65.63,-55.16"/>
</a>
</g>
<text text-anchor="middle" x="52.25" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> bit</text>
<text text-anchor="middle" x="75.88" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> bit</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: range_queries::fenwick_tree Pages: 1 -->
<svg width="146pt" height="94pt"
viewBox="0.00 0.00 146.25 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 89.75)">
<title>range_queries::fenwick_tree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="The class that initializes the Fenwick Tree.">
<polygon fill="#999999" stroke="#666666" points="138.25,-19.25 0,-19.25 0,0 138.25,0 138.25,-19.25"/>
<text text-anchor="middle" x="69.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick_tree</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="114.62,-85.75 23.62,-85.75 23.62,-66.5 114.62,-66.5 114.62,-85.75"/>
<text text-anchor="middle" x="69.12" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node1 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M69.12,-55.4C69.12,-43.43 69.12,-28.73 69.12,-19.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="65.63,-55.16 69.12,-65.16 72.63,-55.16 65.63,-55.16"/>
</a>
</g>
<text text-anchor="middle" x="75.88" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> bit</text>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -1,10 +1,9 @@
<map id="Solution" name="Solution">
<area shape="rect" id="Node000001" title=" " alt="" coords="164,213,232,238"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="119,94,277,135"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="201,150,201,212,195,212,195,150"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="5,5,127,31"/>
<area shape="poly" id="edge3_Node000001_Node000003" title=" " alt="" coords="59,46,51,89,52,112,60,133,81,161,108,182,137,199,165,211,162,216,135,204,105,187,77,164,55,136,47,113,46,89,54,45"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="96,37,172,91,169,96,93,42"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="300,102,432,127"/>
<area shape="poly" id="edge4_Node000001_Node000004" title=" " alt="" coords="337,138,218,214,215,210,334,133"/>
<area shape="rect" id="Node000001" title=" " alt="" coords="214,124,282,150"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="5,5,163,46"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="127,52,231,121,228,126,124,57"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="187,13,309,39"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="251,54,251,124,245,124,245,54"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="333,13,464,39"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="375,50,306,102,269,126,267,121,302,98,371,46"/>
</map>

View File

@@ -1 +1 @@
61b0a734c31c050e4f2302e1362c6f48
296f5ae6bbda45b09b885758cafab953

View File

@@ -4,8 +4,8 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: Solution Pages: 1 -->
<svg width="328pt" height="183pt"
viewBox="0.00 0.00 327.75 182.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="352pt" height="116pt"
viewBox="0.00 0.00 352.25 116.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -16,14 +16,14 @@
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 178.75)">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 112.25)">
<title>Solution</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="170.12,-19.25 118.88,-19.25 118.88,0 170.12,0 170.12,-19.25"/>
<text text-anchor="middle" x="144.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">Solution</text>
<polygon fill="#999999" stroke="#666666" points="207.62,-19.25 156.38,-19.25 156.38,0 207.62,0 207.62,-19.25"/>
<text text-anchor="middle" x="182" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">Solution</text>
</a>
</g>
</g>
@@ -31,9 +31,9 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="203.5,-108.25 85.5,-108.25 85.5,-77.75 203.5,-77.75 203.5,-108.25"/>
<text text-anchor="start" x="93.5" y="-94.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="144.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="118,-108.25 0,-108.25 0,-77.75 118,-77.75 118,-108.25"/>
<text text-anchor="start" x="8" y="-94.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="59" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
@@ -41,61 +41,51 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M144.5,-66.59C144.5,-50.52 144.5,-30.74 144.5,-19.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="141,-66.45 144.5,-76.45 148,-66.45 141,-66.45"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M90.42,-71.21C115.56,-54.58 149.58,-32.07 168.28,-19.7"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="88.68,-68.83 82.27,-77.26 92.55,-74.66 88.68,-68.83"/>
</a>
</g>
<text text-anchor="middle" x="159.12" y="-50.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> bridge</text>
<text text-anchor="middle" x="159.12" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">graph</text>
<text text-anchor="middle" x="153.62" y="-50.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> bridge</text>
<text text-anchor="middle" x="153.62" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">graph</text>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="91,-174.75 0,-174.75 0,-155.5 91,-155.5 91,-174.75"/>
<text text-anchor="middle" x="45.5" y="-161.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="227.5,-102.62 136.5,-102.62 136.5,-83.38 227.5,-83.38 227.5,-102.62"/>
<text text-anchor="middle" x="182" y="-89.12" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node1 -->
<g id="edge3_Node000001_Node000003" class="edge">
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node3&#45;&gt;Node1</title>
<g id="a_edge3_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M38.28,-144.8C32.68,-126.39 27.61,-98.5 39,-77.75 55.82,-47.11 93.21,-28.46 118.65,-18.84"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="35.26,-145.77 41.78,-154.12 41.89,-143.52 35.26,-145.77"/>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M182,-72.12C182,-55.3 182,-31.97 182,-19.44"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="178.5,-71.98 182,-81.98 185.5,-71.98 178.5,-71.98"/>
</a>
</g>
<text text-anchor="middle" x="58.25" y="-94.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> in_time</text>
<text text-anchor="middle" x="58.25" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">out_time</text>
</g>
<!-- Node3&#45;&gt;Node2 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node3&#45;&gt;Node2</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M66.65,-149.15C83.52,-137.19 107.03,-120.54 123.79,-108.67"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="65.18,-146.61 59.04,-155.24 69.22,-152.32 65.18,-146.61"/>
</a>
</g>
<text text-anchor="middle" x="119.88" y="-128" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="200.75" y="-50.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> in_time</text>
<text text-anchor="middle" x="200.75" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">out_time</text>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="319.75,-102.62 221.25,-102.62 221.25,-83.38 319.75,-83.38 319.75,-102.62"/>
<text text-anchor="middle" x="270.5" y="-89.12" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; bool &gt;</text>
<polygon fill="white" stroke="#666666" points="344.25,-102.62 245.75,-102.62 245.75,-83.38 344.25,-83.38 344.25,-102.62"/>
<text text-anchor="middle" x="295" y="-89.12" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; bool &gt;</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node1 -->
<g id="edge4_Node000001_Node000004" class="edge">
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node4&#45;&gt;Node1</title>
<g id="a_edge4_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M247.4,-77.08C221.42,-60.3 180.04,-33.58 158.53,-19.68"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="245.24,-80.5 255.53,-82.98 249.03,-74.62 245.24,-80.5"/>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M275.8,-76.43C261.72,-65.19 241.99,-49.85 224,-37.25 215.23,-31.11 205.1,-24.67 196.99,-19.66"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="273.18,-79.61 283.17,-83.14 277.56,-74.15 273.18,-79.61"/>
</a>
</g>
<text text-anchor="middle" x="234.25" y="-44.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> visited</text>
<text text-anchor="middle" x="268.75" y="-44.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> visited</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -4,16 +4,16 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: Solution Pages: 1 -->
<svg width="328pt" height="183pt"
viewBox="0.00 0.00 327.75 182.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 178.75)">
<svg width="352pt" height="116pt"
viewBox="0.00 0.00 352.25 116.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 112.25)">
<title>Solution</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="170.12,-19.25 118.88,-19.25 118.88,0 170.12,0 170.12,-19.25"/>
<text text-anchor="middle" x="144.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">Solution</text>
<polygon fill="#999999" stroke="#666666" points="207.62,-19.25 156.38,-19.25 156.38,0 207.62,0 207.62,-19.25"/>
<text text-anchor="middle" x="182" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">Solution</text>
</a>
</g>
</g>
@@ -21,9 +21,9 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="203.5,-108.25 85.5,-108.25 85.5,-77.75 203.5,-77.75 203.5,-108.25"/>
<text text-anchor="start" x="93.5" y="-94.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="144.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="118,-108.25 0,-108.25 0,-77.75 118,-77.75 118,-108.25"/>
<text text-anchor="start" x="8" y="-94.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="59" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
@@ -31,61 +31,51 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M144.5,-66.59C144.5,-50.52 144.5,-30.74 144.5,-19.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="141,-66.45 144.5,-76.45 148,-66.45 141,-66.45"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M90.42,-71.21C115.56,-54.58 149.58,-32.07 168.28,-19.7"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="88.68,-68.83 82.27,-77.26 92.55,-74.66 88.68,-68.83"/>
</a>
</g>
<text text-anchor="middle" x="159.12" y="-50.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> bridge</text>
<text text-anchor="middle" x="159.12" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">graph</text>
<text text-anchor="middle" x="153.62" y="-50.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> bridge</text>
<text text-anchor="middle" x="153.62" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">graph</text>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="91,-174.75 0,-174.75 0,-155.5 91,-155.5 91,-174.75"/>
<text text-anchor="middle" x="45.5" y="-161.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="227.5,-102.62 136.5,-102.62 136.5,-83.38 227.5,-83.38 227.5,-102.62"/>
<text text-anchor="middle" x="182" y="-89.12" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node1 -->
<g id="edge3_Node000001_Node000003" class="edge">
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node3&#45;&gt;Node1</title>
<g id="a_edge3_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M38.28,-144.8C32.68,-126.39 27.61,-98.5 39,-77.75 55.82,-47.11 93.21,-28.46 118.65,-18.84"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="35.26,-145.77 41.78,-154.12 41.89,-143.52 35.26,-145.77"/>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M182,-72.12C182,-55.3 182,-31.97 182,-19.44"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="178.5,-71.98 182,-81.98 185.5,-71.98 178.5,-71.98"/>
</a>
</g>
<text text-anchor="middle" x="58.25" y="-94.75" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> in_time</text>
<text text-anchor="middle" x="58.25" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">out_time</text>
</g>
<!-- Node3&#45;&gt;Node2 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node3&#45;&gt;Node2</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M66.65,-149.15C83.52,-137.19 107.03,-120.54 123.79,-108.67"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="65.18,-146.61 59.04,-155.24 69.22,-152.32 65.18,-146.61"/>
</a>
</g>
<text text-anchor="middle" x="119.88" y="-128" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="200.75" y="-50.25" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> in_time</text>
<text text-anchor="middle" x="200.75" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">out_time</text>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="319.75,-102.62 221.25,-102.62 221.25,-83.38 319.75,-83.38 319.75,-102.62"/>
<text text-anchor="middle" x="270.5" y="-89.12" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; bool &gt;</text>
<polygon fill="white" stroke="#666666" points="344.25,-102.62 245.75,-102.62 245.75,-83.38 344.25,-83.38 344.25,-102.62"/>
<text text-anchor="middle" x="295" y="-89.12" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; bool &gt;</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node1 -->
<g id="edge4_Node000001_Node000004" class="edge">
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node4&#45;&gt;Node1</title>
<g id="a_edge4_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M247.4,-77.08C221.42,-60.3 180.04,-33.58 158.53,-19.68"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="245.24,-80.5 255.53,-82.98 249.03,-74.62 245.24,-80.5"/>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M275.8,-76.43C261.72,-65.19 241.99,-49.85 224,-37.25 215.23,-31.11 205.1,-24.67 196.99,-19.66"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="273.18,-79.61 283.17,-83.14 277.56,-74.15 273.18,-79.61"/>
</a>
</g>
<text text-anchor="middle" x="234.25" y="-44.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> visited</text>
<text text-anchor="middle" x="268.75" y="-44.62" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> visited</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -108,7 +108,7 @@ $(document).ready(function(){initNavTree('d9/d23/classgraph_1_1_lowest_common_an
<div class="dynheader">
Collaboration diagram for graph::LowestCommonAncestor:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d1/d71/classgraph_1_1_lowest_common_ancestor__coll__graph.svg" width="392" height="422"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d1/d71/classgraph_1_1_lowest_common_ancestor__coll__graph.svg" width="414" height="422"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>

View File

@@ -1,5 +0,0 @@
<map id="FenwickTree" name="FenwickTree">
<area shape="rect" id="Node000001" title=" " alt="" coords="18,94,114,120"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="5,5,127,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="69,46,69,94,63,94,63,46"/>
</map>

View File

@@ -1 +0,0 @@
8fee2ff2649a2e000966b93593eb2c77

View File

@@ -1,40 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree Pages: 1 -->
<svg width="99pt" height="94pt"
viewBox="0.00 0.00 99.00 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 89.75)">
<title>FenwickTree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="81.62,-19.25 9.38,-19.25 9.38,0 81.62,0 81.62,-19.25"/>
<text text-anchor="middle" x="45.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="91,-85.75 0,-85.75 0,-66.5 91,-66.5 91,-85.75"/>
<text text-anchor="middle" x="45.5" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node1 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M45.5,-55.4C45.5,-43.43 45.5,-28.73 45.5,-19.52"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="42,-55.16 45.5,-65.16 49,-55.16 42,-55.16"/>
</a>
</g>
<text text-anchor="middle" x="52.25" y="-39" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> bit</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -109,7 +109,7 @@ $(document).ready(function(){initNavTree('da/d9a/class_graph.html','../../'); in
<div class="dynheader">
Collaboration diagram for Graph:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d1/dc2/class_graph__coll__graph.svg" width="647" height="359"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d1/dc2/class_graph__coll__graph.svg" width="647" height="346"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>

View File

@@ -1,20 +1,19 @@
<map id="range_queries::heavy_light_decomposition::HLD&lt; X &gt;" name="range_queries::heavy_light_decomposition::HLD&lt; X &gt;">
<area shape="rect" id="Node000001" title="The Heavy&#45;Light Decomposition class." alt="" coords="712,198,857,254"/>
<area shape="rect" id="Node000002" href="$d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" title="A Basic Tree, which supports binary lifting." alt="" coords="517,107,662,163"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="666,167,724,195,722,200,663,172"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="241,5,380,46"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="395,45,494,79,543,104,541,109,492,84,393,50"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list.html" title=" " alt="" coords="15,13,117,39"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="132,23,241,23,241,28,132,28"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="232,148,389,189"/>
<area shape="poly" id="edge4_Node000002_Node000005" title=" " alt="" coords="404,155,516,141,517,146,404,160"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="5,156,127,181"/>
<area shape="poly" id="edge10_Node000001_Node000006" title=" " alt="" coords="102,187,161,219,233,248,350,280,399,288,445,291,541,284,662,263,710,250,712,255,663,268,542,289,445,296,398,293,349,285,231,254,159,224,99,191"/>
<area shape="poly" id="edge6_Node000002_Node000006" title=" " alt="" coords="133,149,150,146,246,129,321,122,396,121,493,124,517,126,516,131,493,130,396,126,321,127,246,135,151,151,135,154"/>
<area shape="poly" id="edge5_Node000005_Node000006" title=" " alt="" coords="142,166,231,166,231,171,142,171"/>
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="252,213,369,239"/>
<area shape="poly" id="edge7_Node000002_Node000007" title=" " alt="" coords="382,206,492,174,526,161,528,166,494,179,384,212"/>
<area shape="rect" id="Node000008" href="$d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html" title="Segment Tree, to store heavy chains." alt="" coords="517,198,662,254"/>
<area shape="poly" id="edge9_Node000008_Node000007" title=" " alt="" coords="384,223,517,223,517,228,384,228"/>
<area shape="poly" id="edge8_Node000001_Node000008" title=" " alt="" coords="677,223,711,223,711,228,677,228"/>
<area shape="rect" id="Node000001" title="The Heavy&#45;Light Decomposition class." alt="" coords="660,147,805,203"/>
<area shape="rect" id="Node000002" href="$d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" title="A Basic Tree, which supports binary lifting." alt="" coords="465,67,610,123"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="622,127,664,144,662,149,620,131"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="222,71,361,111"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="375,90,465,91,465,96,375,95"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list.html" title=" " alt="" coords="5,78,108,104"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="123,88,222,88,222,94,123,94"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="213,5,370,46"/>
<area shape="poly" id="edge4_Node000002_Node000005" title=" " alt="" coords="381,48,465,72,464,77,379,53"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="231,241,352,267"/>
<area shape="poly" id="edge9_Node000001_Node000006" title=" " alt="" coords="367,266,421,272,483,275,547,271,610,257,635,247,659,233,700,201,704,205,662,237,637,252,611,263,548,276,483,280,421,277,366,271"/>
<area shape="poly" id="edge5_Node000002_Node000006" title=" " alt="" coords="366,243,405,229,439,206,449,189,451,172,453,153,463,133,475,121,479,125,467,137,458,155,457,173,454,191,443,210,407,234,367,248"/>
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="233,148,350,173"/>
<area shape="poly" id="edge6_Node000002_Node000007" title=" " alt="" coords="356,141,464,112,465,117,357,146"/>
<area shape="rect" id="Node000008" href="$d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html" title="Segment Tree, to store heavy chains." alt="" coords="465,147,610,203"/>
<area shape="poly" id="edge8_Node000008_Node000007" title=" " alt="" coords="365,165,394,167,465,171,464,176,394,173,364,170"/>
<area shape="poly" id="edge7_Node000001_Node000008" title=" " alt="" coords="625,172,659,172,659,178,625,178"/>
</map>

View File

@@ -1 +1 @@
a5faad5dcec11e8d64a4720e646cd2f7
0ee87fdfa58b1fe4068700440b2354a4

View File

@@ -4,7 +4,7 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: range_queries::heavy_light_decomposition::HLD&lt; X &gt; Pages: 1 -->
<!--zoomable 224 -->
<!--zoomable 212 -->
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -46,8 +46,8 @@
</g>
</defs>
<script type="application/ecmascript">
var viewWidth = 647;
var viewHeight = 224;
var viewWidth = 608;
var viewHeight = 212;
var sectionId = 'dynsection-1';
</script>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
@@ -58,10 +58,10 @@ var sectionId = 'dynsection-1';
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="The Heavy&#45;Light Decomposition class.">
<polygon fill="#999999" stroke="#666666" points="638.75,-71.98 529.75,-71.98 529.75,-30.23 638.75,-30.23 638.75,-71.98"/>
<text text-anchor="start" x="537.75" y="-58.48" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="537.75" y="-47.23" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="584.25" y="-35.98" font-family="Helvetica,sans-Serif" font-size="10.00">::HLD&lt; X &gt;</text>
<polygon fill="#999999" stroke="#666666" points="599.75,-97.76 490.75,-97.76 490.75,-56.01 599.75,-56.01 599.75,-97.76"/>
<text text-anchor="start" x="498.75" y="-84.26" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="498.75" y="-73.01" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="545.25" y="-61.76" font-family="Helvetica,sans-Serif" font-size="10.00">::HLD&lt; X &gt;</text>
</a>
</g>
</g>
@@ -69,10 +69,10 @@ var sectionId = 'dynsection-1';
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" target="_top" xlink:title="A Basic Tree, which supports binary lifting.">
<polygon fill="white" stroke="#666666" points="492.75,-139.98 383.75,-139.98 383.75,-98.23 492.75,-98.23 492.75,-139.98"/>
<text text-anchor="start" x="391.75" y="-126.48" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="391.75" y="-115.23" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="438.25" y="-103.98" font-family="Helvetica,sans-Serif" font-size="10.00">::Tree&lt; X &gt;</text>
<polygon fill="white" stroke="#666666" points="453.75,-157.76 344.75,-157.76 344.75,-116.01 453.75,-116.01 453.75,-157.76"/>
<text text-anchor="start" x="352.75" y="-144.26" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="352.75" y="-133.01" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="399.25" y="-121.76" font-family="Helvetica,sans-Serif" font-size="10.00">::Tree&lt; X &gt;</text>
</a>
</g>
</g>
@@ -80,8 +80,8 @@ var sectionId = 'dynsection-1';
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M494.29,-93.12C508.81,-86.26 524.32,-78.94 538.24,-72.36"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="492.97,-90.34 485.42,-97.78 495.95,-96.67 492.97,-90.34"/>
<path fill="none" stroke="#63b8ff" d="M461.45,-111.38C472.04,-106.97 482.96,-102.42 493.24,-98.14"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="460.31,-108.48 452.42,-115.56 463,-114.94 460.31,-108.48"/>
</a>
</g>
</g>
@@ -89,9 +89,9 @@ var sectionId = 'dynsection-1';
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="280.62,-216.36 176.88,-216.36 176.88,-185.86 280.62,-185.86 280.62,-216.36"/>
<text text-anchor="start" x="184.88" y="-202.86" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::list</text>
<text text-anchor="middle" x="228.75" y="-191.61" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="266.38,-155.13 162.62,-155.13 162.62,-124.63 266.38,-124.63 266.38,-155.13"/>
<text text-anchor="start" x="170.62" y="-141.63" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::list</text>
<text text-anchor="middle" x="214.5" y="-130.38" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
@@ -99,18 +99,18 @@ var sectionId = 'dynsection-1';
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node3&#45;&gt;Node2</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M291.31,-185.08C314.98,-178.15 342.01,-169.28 365.75,-159.11 378.17,-153.78 391.22,-146.9 402.72,-140.35"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="290.68,-181.9 282.04,-188.03 292.62,-188.63 290.68,-181.9"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M277.21,-138.87C299.01,-138.51 323.33,-138.11 344.43,-137.77"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="277.35,-135.38 267.41,-139.05 277.46,-142.38 277.35,-135.38"/>
</a>
</g>
<text text-anchor="middle" x="335.75" y="-181.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_adj</text>
<text text-anchor="middle" x="309.12" y="-139.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_adj</text>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="83.88,-210.73 7.12,-210.73 7.12,-191.48 83.88,-191.48 83.88,-210.73"/>
<text text-anchor="middle" x="45.5" y="-197.23" font-family="Helvetica,sans-Serif" font-size="10.00">std::list&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="76.75,-149.51 0,-149.51 0,-130.26 76.75,-130.26 76.75,-149.51"/>
<text text-anchor="middle" x="38.38" y="-136.01" font-family="Helvetica,sans-Serif" font-size="10.00">std::list&lt; int &gt;</text>
</a>
</g>
</g>
@@ -118,19 +118,19 @@ var sectionId = 'dynsection-1';
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node4&#45;&gt;Node3</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M94.84,-201.11C120.05,-201.11 150.88,-201.11 176.5,-201.11"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="95.06,-197.61 85.06,-201.11 95.06,-204.61 95.06,-197.61"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M88.1,-139.88C111.21,-139.88 138.82,-139.88 162.25,-139.88"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="88.16,-136.38 78.16,-139.88 88.16,-143.38 88.16,-136.38"/>
</a>
</g>
<text text-anchor="middle" x="130.38" y="-202.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="116.12" y="-141.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="287.75,-109.36 169.75,-109.36 169.75,-78.86 287.75,-78.86 287.75,-109.36"/>
<text text-anchor="start" x="177.75" y="-95.86" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="228.75" y="-84.61" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="273.5,-204.13 155.5,-204.13 155.5,-173.63 273.5,-173.63 273.5,-204.13"/>
<text text-anchor="start" x="163.5" y="-190.63" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="214.5" y="-179.38" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
@@ -138,100 +138,90 @@ var sectionId = 'dynsection-1';
<g id="edge4_Node000002_Node000005" class="edge">
<title>Node5&#45;&gt;Node2</title>
<g id="a_edge4_Node000002_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M298.88,-102.43C326.47,-105.76 357.76,-109.53 383.6,-112.64"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="299.45,-98.86 289.1,-101.14 298.61,-105.81 299.45,-98.86"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M281.15,-170.2C301.89,-164.3 324.55,-157.85 344.37,-152.21"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="280.49,-167.04 271.83,-173.14 282.4,-173.77 280.49,-167.04"/>
</a>
</g>
<text text-anchor="middle" x="335.75" y="-111.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_par</text>
<text text-anchor="middle" x="309.12" y="-167.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_par</text>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="91,-103.73 0,-103.73 0,-84.48 91,-84.48 91,-103.73"/>
<text text-anchor="middle" x="45.5" y="-90.23" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="260,-27.51 169,-27.51 169,-8.26 260,-8.26 260,-27.51"/>
<text text-anchor="middle" x="214.5" y="-14.01" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node1 -->
<g id="edge10_Node000001_Node000006" class="edge">
<g id="edge9_Node000001_Node000006" class="edge">
<title>Node6&#45;&gt;Node1</title>
<g id="a_edge10_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M71.28,-78.56C95.46,-64.15 133.77,-43.3 169.75,-32.11 306.91,10.55 351.71,6.09 492.75,-21.11 504.78,-23.43 517.41,-26.91 529.3,-30.69"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="69.87,-75.93 63.13,-84.11 73.5,-81.92 69.87,-75.93"/>
<g id="a_edge9_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M270.93,-6.9C320.16,0.56 393.43,5.98 453.75,-13.13 480.13,-21.49 505.47,-40.62 522.59,-55.75"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="270.51,-3.58 261.19,-8.62 271.62,-10.49 270.51,-3.58"/>
</a>
</g>
<text text-anchor="middle" x="335.75" y="-26.36" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> h_heavychlid</text>
<text text-anchor="middle" x="335.75" y="-15.11" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">h_label</text>
<text text-anchor="middle" x="335.75" y="-3.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">h_parent</text>
<text text-anchor="middle" x="399.25" y="-38.13" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> h_heavychlid</text>
<text text-anchor="middle" x="399.25" y="-26.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">h_label</text>
<text text-anchor="middle" x="399.25" y="-15.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">h_parent</text>
</g>
<!-- Node6&#45;&gt;Node2 -->
<g id="edge6_Node000002_Node000006" class="edge">
<g id="edge5_Node000002_Node000006" class="edge">
<title>Node6&#45;&gt;Node2</title>
<g id="a_edge6_Node000002_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M96.5,-106.52C100.72,-107.44 104.93,-108.32 109,-109.11 221.25,-130.85 251.52,-129.89 365.75,-125.11 371.48,-124.87 377.45,-124.52 383.4,-124.11"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="97.59,-102.95 87.06,-104.16 96.04,-109.78 97.59,-102.95"/>
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M270.81,-24.37C290.64,-29.22 311.77,-37.67 326.75,-52.38 344.95,-70.25 328.52,-87.2 344.75,-106.88 347.39,-110.09 350.47,-113.01 353.79,-115.67"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="271.8,-20.78 261.29,-22.08 270.32,-27.62 271.8,-20.78"/>
</a>
</g>
<text text-anchor="middle" x="228.75" y="-140.11" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_depth</text>
<text text-anchor="middle" x="228.75" y="-128.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">t_size</text>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node6&#45;&gt;Node5</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M102.15,-94.11C123.48,-94.11 147.86,-94.11 169.43,-94.11"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="102.3,-90.61 92.3,-94.11 102.3,-97.61 102.3,-90.61"/>
</a>
</g>
<text text-anchor="middle" x="130.38" y="-95.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="309.12" y="-65.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_depth</text>
<text text-anchor="middle" x="309.12" y="-54.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">t_size</text>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="272.38,-60.73 185.12,-60.73 185.12,-41.48 272.38,-41.48 272.38,-60.73"/>
<text text-anchor="middle" x="228.75" y="-47.23" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; X &gt;</text>
<polygon fill="white" stroke="#666666" points="258.12,-97.51 170.88,-97.51 170.88,-78.26 258.12,-78.26 258.12,-97.51"/>
<text text-anchor="middle" x="214.5" y="-84.01" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node2 -->
<g id="edge7_Node000002_Node000007" class="edge">
<g id="edge6_Node000002_Node000007" class="edge">
<title>Node7&#45;&gt;Node2</title>
<g id="a_edge7_Node000002_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M283.31,-63.63C308.58,-70.03 339,-78.45 365.75,-87.86 374.06,-90.78 382.76,-94.23 391.11,-97.75"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="284.37,-60.04 273.82,-61.01 282.67,-66.83 284.37,-60.04"/>
<g id="a_edge6_Node000002_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M263.24,-100.68C288.19,-107.37 318.82,-115.58 344.59,-122.49"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="264.49,-97.12 253.92,-97.92 262.68,-103.89 264.49,-97.12"/>
</a>
</g>
<text text-anchor="middle" x="335.75" y="-88.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_val</text>
<text text-anchor="middle" x="309.12" y="-117.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_val</text>
</g>
<!-- Node8 -->
<g id="Node000008" class="node">
<title>Node8</title>
<g id="a_Node000008"><a xlink:href="../../d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html" target="_top" xlink:title="Segment Tree, to store heavy chains.">
<polygon fill="white" stroke="#666666" points="492.75,-71.98 383.75,-71.98 383.75,-30.23 492.75,-30.23 492.75,-71.98"/>
<text text-anchor="start" x="391.75" y="-58.48" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="391.75" y="-47.23" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="438.25" y="-35.98" font-family="Helvetica,sans-Serif" font-size="10.00">::SG&lt; X &gt;</text>
<polygon fill="white" stroke="#666666" points="453.75,-97.76 344.75,-97.76 344.75,-56.01 453.75,-56.01 453.75,-97.76"/>
<text text-anchor="start" x="352.75" y="-84.26" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="352.75" y="-73.01" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="399.25" y="-61.76" font-family="Helvetica,sans-Serif" font-size="10.00">::SG&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node8 -->
<g id="edge9_Node000008_Node000007" class="edge">
<g id="edge8_Node000008_Node000007" class="edge">
<title>Node7&#45;&gt;Node8</title>
<g id="a_edge9_Node000008_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M283.7,-51.11C314.47,-51.11 352.89,-51.11 383.6,-51.11"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="283.74,-47.61 273.74,-51.11 283.74,-54.61 283.74,-47.61"/>
<g id="a_edge8_Node000008_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M269.27,-82.35C276.73,-81.7 284.3,-81.1 291.5,-80.63 308.71,-79.51 327.5,-78.71 344.46,-78.14"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="269.11,-78.94 259.47,-83.33 269.75,-85.91 269.11,-78.94"/>
</a>
</g>
<text text-anchor="middle" x="335.75" y="-52.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> s_tree</text>
<text text-anchor="middle" x="309.12" y="-82.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> s_tree</text>
</g>
<!-- Node8&#45;&gt;Node1 -->
<g id="edge8_Node000001_Node000008" class="edge">
<g id="edge7_Node000001_Node000008" class="edge">
<title>Node8&#45;&gt;Node1</title>
<g id="a_edge8_Node000001_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M503.71,-51.11C512.36,-51.11 521.15,-51.11 529.58,-51.11"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="503.87,-47.61 493.87,-51.11 503.87,-54.61 503.87,-47.61"/>
<g id="a_edge7_Node000001_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M464.71,-76.88C473.36,-76.88 482.15,-76.88 490.58,-76.88"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="464.87,-73.38 454.87,-76.88 464.87,-80.38 464.87,-73.38"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -4,18 +4,18 @@
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: range_queries::heavy_light_decomposition::HLD&lt; X &gt; Pages: 1 -->
<svg width="647pt" height="224pt"
viewBox="0.00 0.00 646.75 224.36" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 220.36)">
<svg width="608pt" height="212pt"
viewBox="0.00 0.00 607.75 212.13" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 208.13)">
<title>range_queries::heavy_light_decomposition::HLD&lt; X &gt;</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="The Heavy&#45;Light Decomposition class.">
<polygon fill="#999999" stroke="#666666" points="638.75,-71.98 529.75,-71.98 529.75,-30.23 638.75,-30.23 638.75,-71.98"/>
<text text-anchor="start" x="537.75" y="-58.48" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="537.75" y="-47.23" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="584.25" y="-35.98" font-family="Helvetica,sans-Serif" font-size="10.00">::HLD&lt; X &gt;</text>
<polygon fill="#999999" stroke="#666666" points="599.75,-97.76 490.75,-97.76 490.75,-56.01 599.75,-56.01 599.75,-97.76"/>
<text text-anchor="start" x="498.75" y="-84.26" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="498.75" y="-73.01" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="545.25" y="-61.76" font-family="Helvetica,sans-Serif" font-size="10.00">::HLD&lt; X &gt;</text>
</a>
</g>
</g>
@@ -23,10 +23,10 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" target="_top" xlink:title="A Basic Tree, which supports binary lifting.">
<polygon fill="white" stroke="#666666" points="492.75,-139.98 383.75,-139.98 383.75,-98.23 492.75,-98.23 492.75,-139.98"/>
<text text-anchor="start" x="391.75" y="-126.48" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="391.75" y="-115.23" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="438.25" y="-103.98" font-family="Helvetica,sans-Serif" font-size="10.00">::Tree&lt; X &gt;</text>
<polygon fill="white" stroke="#666666" points="453.75,-157.76 344.75,-157.76 344.75,-116.01 453.75,-116.01 453.75,-157.76"/>
<text text-anchor="start" x="352.75" y="-144.26" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="352.75" y="-133.01" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="399.25" y="-121.76" font-family="Helvetica,sans-Serif" font-size="10.00">::Tree&lt; X &gt;</text>
</a>
</g>
</g>
@@ -34,8 +34,8 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node2&#45;&gt;Node1</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M494.29,-93.12C508.81,-86.26 524.32,-78.94 538.24,-72.36"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="492.97,-90.34 485.42,-97.78 495.95,-96.67 492.97,-90.34"/>
<path fill="none" stroke="#63b8ff" d="M461.45,-111.38C472.04,-106.97 482.96,-102.42 493.24,-98.14"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="460.31,-108.48 452.42,-115.56 463,-114.94 460.31,-108.48"/>
</a>
</g>
</g>
@@ -43,9 +43,9 @@
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="280.62,-216.36 176.88,-216.36 176.88,-185.86 280.62,-185.86 280.62,-216.36"/>
<text text-anchor="start" x="184.88" y="-202.86" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::list</text>
<text text-anchor="middle" x="228.75" y="-191.61" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="266.38,-155.13 162.62,-155.13 162.62,-124.63 266.38,-124.63 266.38,-155.13"/>
<text text-anchor="start" x="170.62" y="-141.63" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::list</text>
<text text-anchor="middle" x="214.5" y="-130.38" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
@@ -53,18 +53,18 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node3&#45;&gt;Node2</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M291.31,-185.08C314.98,-178.15 342.01,-169.28 365.75,-159.11 378.17,-153.78 391.22,-146.9 402.72,-140.35"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="290.68,-181.9 282.04,-188.03 292.62,-188.63 290.68,-181.9"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M277.21,-138.87C299.01,-138.51 323.33,-138.11 344.43,-137.77"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="277.35,-135.38 267.41,-139.05 277.46,-142.38 277.35,-135.38"/>
</a>
</g>
<text text-anchor="middle" x="335.75" y="-181.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_adj</text>
<text text-anchor="middle" x="309.12" y="-139.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_adj</text>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="83.88,-210.73 7.12,-210.73 7.12,-191.48 83.88,-191.48 83.88,-210.73"/>
<text text-anchor="middle" x="45.5" y="-197.23" font-family="Helvetica,sans-Serif" font-size="10.00">std::list&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="76.75,-149.51 0,-149.51 0,-130.26 76.75,-130.26 76.75,-149.51"/>
<text text-anchor="middle" x="38.38" y="-136.01" font-family="Helvetica,sans-Serif" font-size="10.00">std::list&lt; int &gt;</text>
</a>
</g>
</g>
@@ -72,19 +72,19 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node4&#45;&gt;Node3</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M94.84,-201.11C120.05,-201.11 150.88,-201.11 176.5,-201.11"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="95.06,-197.61 85.06,-201.11 95.06,-204.61 95.06,-197.61"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M88.1,-139.88C111.21,-139.88 138.82,-139.88 162.25,-139.88"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="88.16,-136.38 78.16,-139.88 88.16,-143.38 88.16,-136.38"/>
</a>
</g>
<text text-anchor="middle" x="130.38" y="-202.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="116.12" y="-141.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="287.75,-109.36 169.75,-109.36 169.75,-78.86 287.75,-78.86 287.75,-109.36"/>
<text text-anchor="start" x="177.75" y="-95.86" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="228.75" y="-84.61" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
<polygon fill="white" stroke="#666666" points="273.5,-204.13 155.5,-204.13 155.5,-173.63 273.5,-173.63 273.5,-204.13"/>
<text text-anchor="start" x="163.5" y="-190.63" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="214.5" y="-179.38" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
@@ -92,100 +92,90 @@
<g id="edge4_Node000002_Node000005" class="edge">
<title>Node5&#45;&gt;Node2</title>
<g id="a_edge4_Node000002_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M298.88,-102.43C326.47,-105.76 357.76,-109.53 383.6,-112.64"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="299.45,-98.86 289.1,-101.14 298.61,-105.81 299.45,-98.86"/>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M281.15,-170.2C301.89,-164.3 324.55,-157.85 344.37,-152.21"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="280.49,-167.04 271.83,-173.14 282.4,-173.77 280.49,-167.04"/>
</a>
</g>
<text text-anchor="middle" x="335.75" y="-111.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_par</text>
<text text-anchor="middle" x="309.12" y="-167.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_par</text>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="91,-103.73 0,-103.73 0,-84.48 91,-84.48 91,-103.73"/>
<text text-anchor="middle" x="45.5" y="-90.23" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
<polygon fill="white" stroke="#666666" points="260,-27.51 169,-27.51 169,-8.26 260,-8.26 260,-27.51"/>
<text text-anchor="middle" x="214.5" y="-14.01" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node1 -->
<g id="edge10_Node000001_Node000006" class="edge">
<g id="edge9_Node000001_Node000006" class="edge">
<title>Node6&#45;&gt;Node1</title>
<g id="a_edge10_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M71.28,-78.56C95.46,-64.15 133.77,-43.3 169.75,-32.11 306.91,10.55 351.71,6.09 492.75,-21.11 504.78,-23.43 517.41,-26.91 529.3,-30.69"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="69.87,-75.93 63.13,-84.11 73.5,-81.92 69.87,-75.93"/>
<g id="a_edge9_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M270.93,-6.9C320.16,0.56 393.43,5.98 453.75,-13.13 480.13,-21.49 505.47,-40.62 522.59,-55.75"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="270.51,-3.58 261.19,-8.62 271.62,-10.49 270.51,-3.58"/>
</a>
</g>
<text text-anchor="middle" x="335.75" y="-26.36" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> h_heavychlid</text>
<text text-anchor="middle" x="335.75" y="-15.11" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">h_label</text>
<text text-anchor="middle" x="335.75" y="-3.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">h_parent</text>
<text text-anchor="middle" x="399.25" y="-38.13" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> h_heavychlid</text>
<text text-anchor="middle" x="399.25" y="-26.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">h_label</text>
<text text-anchor="middle" x="399.25" y="-15.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">h_parent</text>
</g>
<!-- Node6&#45;&gt;Node2 -->
<g id="edge6_Node000002_Node000006" class="edge">
<g id="edge5_Node000002_Node000006" class="edge">
<title>Node6&#45;&gt;Node2</title>
<g id="a_edge6_Node000002_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M96.5,-106.52C100.72,-107.44 104.93,-108.32 109,-109.11 221.25,-130.85 251.52,-129.89 365.75,-125.11 371.48,-124.87 377.45,-124.52 383.4,-124.11"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="97.59,-102.95 87.06,-104.16 96.04,-109.78 97.59,-102.95"/>
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M270.81,-24.37C290.64,-29.22 311.77,-37.67 326.75,-52.38 344.95,-70.25 328.52,-87.2 344.75,-106.88 347.39,-110.09 350.47,-113.01 353.79,-115.67"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="271.8,-20.78 261.29,-22.08 270.32,-27.62 271.8,-20.78"/>
</a>
</g>
<text text-anchor="middle" x="228.75" y="-140.11" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_depth</text>
<text text-anchor="middle" x="228.75" y="-128.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">t_size</text>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node6&#45;&gt;Node5</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M102.15,-94.11C123.48,-94.11 147.86,-94.11 169.43,-94.11"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="102.3,-90.61 92.3,-94.11 102.3,-97.61 102.3,-90.61"/>
</a>
</g>
<text text-anchor="middle" x="130.38" y="-95.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> elements</text>
<text text-anchor="middle" x="309.12" y="-65.88" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_depth</text>
<text text-anchor="middle" x="309.12" y="-54.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey">t_size</text>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector.html" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="272.38,-60.73 185.12,-60.73 185.12,-41.48 272.38,-41.48 272.38,-60.73"/>
<text text-anchor="middle" x="228.75" y="-47.23" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; X &gt;</text>
<polygon fill="white" stroke="#666666" points="258.12,-97.51 170.88,-97.51 170.88,-78.26 258.12,-78.26 258.12,-97.51"/>
<text text-anchor="middle" x="214.5" y="-84.01" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node2 -->
<g id="edge7_Node000002_Node000007" class="edge">
<g id="edge6_Node000002_Node000007" class="edge">
<title>Node7&#45;&gt;Node2</title>
<g id="a_edge7_Node000002_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M283.31,-63.63C308.58,-70.03 339,-78.45 365.75,-87.86 374.06,-90.78 382.76,-94.23 391.11,-97.75"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="284.37,-60.04 273.82,-61.01 282.67,-66.83 284.37,-60.04"/>
<g id="a_edge6_Node000002_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M263.24,-100.68C288.19,-107.37 318.82,-115.58 344.59,-122.49"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="264.49,-97.12 253.92,-97.92 262.68,-103.89 264.49,-97.12"/>
</a>
</g>
<text text-anchor="middle" x="335.75" y="-88.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_val</text>
<text text-anchor="middle" x="309.12" y="-117.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> t_val</text>
</g>
<!-- Node8 -->
<g id="Node000008" class="node">
<title>Node8</title>
<g id="a_Node000008"><a xlink:href="../../d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html" target="_top" xlink:title="Segment Tree, to store heavy chains.">
<polygon fill="white" stroke="#666666" points="492.75,-71.98 383.75,-71.98 383.75,-30.23 492.75,-30.23 492.75,-71.98"/>
<text text-anchor="start" x="391.75" y="-58.48" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="391.75" y="-47.23" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="438.25" y="-35.98" font-family="Helvetica,sans-Serif" font-size="10.00">::SG&lt; X &gt;</text>
<polygon fill="white" stroke="#666666" points="453.75,-97.76 344.75,-97.76 344.75,-56.01 453.75,-56.01 453.75,-97.76"/>
<text text-anchor="start" x="352.75" y="-84.26" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="352.75" y="-73.01" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="399.25" y="-61.76" font-family="Helvetica,sans-Serif" font-size="10.00">::SG&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node8 -->
<g id="edge9_Node000008_Node000007" class="edge">
<g id="edge8_Node000008_Node000007" class="edge">
<title>Node7&#45;&gt;Node8</title>
<g id="a_edge9_Node000008_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M283.7,-51.11C314.47,-51.11 352.89,-51.11 383.6,-51.11"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="283.74,-47.61 273.74,-51.11 283.74,-54.61 283.74,-47.61"/>
<g id="a_edge8_Node000008_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M269.27,-82.35C276.73,-81.7 284.3,-81.1 291.5,-80.63 308.71,-79.51 327.5,-78.71 344.46,-78.14"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="269.11,-78.94 259.47,-83.33 269.75,-85.91 269.11,-78.94"/>
</a>
</g>
<text text-anchor="middle" x="335.75" y="-52.86" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> s_tree</text>
<text text-anchor="middle" x="309.12" y="-82.63" font-family="Helvetica,sans-Serif" font-size="10.00" fill="grey"> s_tree</text>
</g>
<!-- Node8&#45;&gt;Node1 -->
<g id="edge8_Node000001_Node000008" class="edge">
<g id="edge7_Node000001_Node000008" class="edge">
<title>Node8&#45;&gt;Node1</title>
<g id="a_edge8_Node000001_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M503.71,-51.11C512.36,-51.11 521.15,-51.11 529.58,-51.11"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="503.87,-47.61 493.87,-51.11 503.87,-54.61 503.87,-47.61"/>
<g id="a_edge7_Node000001_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M464.71,-76.88C473.36,-76.88 482.15,-76.88 490.58,-76.88"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="464.87,-73.38 454.87,-76.88 464.87,-80.38 464.87,-73.38"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1,5 +1,5 @@
<map id="range_queries/fenwick_tree.cpp" name="range_queries/fenwick_tree.cpp">
<area shape="rect" id="Node000001" title="Fenwick tree." alt="" coords="54,5,205,46"/>
<area shape="rect" id="Node000001" title="Fenwick Tree algorithm implementation" alt="" coords="54,5,205,46"/>
<area shape="rect" id="Node000002" title=" " alt="" coords="5,94,70,120"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="108,48,65,86,61,82,105,44"/>
<area shape="rect" id="Node000003" title=" " alt="" coords="94,94,165,120"/>

View File

@@ -1 +1 @@
3a15d3768e242ff9de93c5a6b2fe779c
e6ae3af5eaecfb150487b1eb0e27574b

View File

@@ -21,7 +21,7 @@
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Fenwick tree.">
<g id="a_Node000001"><a xlink:title="Fenwick Tree algorithm implementation">
<polygon fill="#999999" stroke="#666666" points="149.88,-85.75 36.38,-85.75 36.38,-55.25 149.88,-55.25 149.88,-85.75"/>
<text text-anchor="start" x="44.38" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries/fenwick</text>
<text text-anchor="middle" x="93.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_tree.cpp</text>

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -11,7 +11,7 @@
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Fenwick tree.">
<g id="a_Node000001"><a xlink:title="Fenwick Tree algorithm implementation">
<polygon fill="#999999" stroke="#666666" points="149.88,-85.75 36.38,-85.75 36.38,-55.25 149.88,-55.25 149.88,-85.75"/>
<text text-anchor="start" x="44.38" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries/fenwick</text>
<text text-anchor="middle" x="93.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_tree.cpp</text>

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -108,7 +108,7 @@ $(document).ready(function(){initNavTree('dd/d4f/class_solution.html','../../');
<div class="dynheader">
Collaboration diagram for Solution:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d7/d40/class_solution__coll__graph.svg" width="438" height="244"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d7/d40/class_solution__coll__graph.svg" width="470" height="155"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>

View File

@@ -108,6 +108,9 @@ $(document).ready(function(){initNavTree('dd/d69/namespacerange__queries.html','
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">fenwick_tree</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The class that initializes the Fenwick Tree. <a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d28/classrange__queries_1_1per_seg_tree.html">perSegTree</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Range query here is range sum, but the code can be modified to make different queries like range max or min. <a href="../../d8/d28/classrange__queries_1_1per_seg_tree.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>

View File

@@ -1,4 +1,5 @@
var namespacerange__queries =
[
[ "fenwick_tree", "de/d0d/classrange__queries_1_1fenwick__tree.html", "de/d0d/classrange__queries_1_1fenwick__tree" ],
[ "perSegTree", "d8/d28/classrange__queries_1_1per_seg_tree.html", "d8/d28/classrange__queries_1_1per_seg_tree" ]
];

View File

@@ -1,409 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: FenwickTree Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('dd/d91/class_fenwick_tree.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="../../de/d29/class_fenwick_tree-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">FenwickTree Class Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for FenwickTree:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/da4/class_fenwick_tree__coll__graph.svg" width="132" height="126"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aaddab1f03d4941212a82cc647b1adb17"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d91/class_fenwick_tree.html#aaddab1f03d4941212a82cc647b1adb17">FenwickTree</a> (const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; int &gt; &amp;arr)</td></tr>
<tr class="separator:aaddab1f03d4941212a82cc647b1adb17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70f8c261393ca09ec1ad716ac806ead6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d91/class_fenwick_tree.html#a70f8c261393ca09ec1ad716ac806ead6">FenwickTree</a> (int x)</td></tr>
<tr class="separator:a70f8c261393ca09ec1ad716ac806ead6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e9ea4fcbe0786487f4535c1cfc7aa00"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00">update</a> (int id, int val)</td></tr>
<tr class="separator:a2e9ea4fcbe0786487f4535c1cfc7aa00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade1d6a3d49af9d9df33e2fb26cab1699"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699">sum</a> (int id)</td></tr>
<tr class="separator:ade1d6a3d49af9d9df33e2fb26cab1699"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a115ff5c548b429b737ea09f75817d1f9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d91/class_fenwick_tree.html#a115ff5c548b429b737ea09f75817d1f9">sum_range</a> (int l, int r)</td></tr>
<tr class="separator:a115ff5c548b429b737ea09f75817d1f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:aaae15ea71455315e257baa11017cec10"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10">offset</a> (int x)</td></tr>
<tr class="separator:aaae15ea71455315e257baa11017cec10"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a4816596da965b5f0871d77b5a1985aa1"><td class="memItemLeft" align="right" valign="top"><a id="a4816596da965b5f0871d77b5a1985aa1" name="a4816596da965b5f0871d77b5a1985aa1"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>n</b></td></tr>
<tr class="separator:a4816596da965b5f0871d77b5a1985aa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8ecebf6f4ad9faaf4b826668d9409bb"><td class="memItemLeft" align="right" valign="top"><a id="aa8ecebf6f4ad9faaf4b826668d9409bb" name="aa8ecebf6f4ad9faaf4b826668d9409bb"></a>
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>bit</b></td></tr>
<tr class="separator:aa8ecebf6f4ad9faaf4b826668d9409bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>n --&gt; No. of elements present in input array. bit[0..n] --&gt; Array that represents Binary Indexed Tree. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aaddab1f03d4941212a82cc647b1adb17" name="aaddab1f03d4941212a82cc647b1adb17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaddab1f03d4941212a82cc647b1adb17">&#9670;&#160;</a></span>FenwickTree() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">FenwickTree::FenwickTree </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; int &gt; &amp;&#160;</td>
<td class="paramname"><em>arr</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">arr</td><td>--&gt; Input array for which prefix sum is evaluated. </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><span class="lineno"> 28</span> {</div>
<div class="line"><span class="lineno"> 29</span> n = arr.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>();</div>
<div class="line"><span class="lineno"> 30</span> bit.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/assign.html">assign</a>(n + 1, 0);</div>
<div class="line"><span class="lineno"> 31</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; n; ++i) {</div>
<div class="line"><span class="lineno"> 32</span> <a class="code hl_function" href="../../dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00">update</a>(i, arr[i]);</div>
<div class="line"><span class="lineno"> 33</span> }</div>
<div class="line"><span class="lineno"> 34</span> }</div>
<div class="ttc" id="aassign_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/assign.html">std::vector::assign</a></div><div class="ttdeci">T assign(T... args)</div></div>
<div class="ttc" id="aclass_fenwick_tree_html_a2e9ea4fcbe0786487f4535c1cfc7aa00"><div class="ttname"><a href="../../dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00">FenwickTree::update</a></div><div class="ttdeci">void update(int id, int val)</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:45</div></div>
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d91/class_fenwick_tree_aaddab1f03d4941212a82cc647b1adb17_cgraph.svg" width="567" height="135"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="a70f8c261393ca09ec1ad716ac806ead6" name="a70f8c261393ca09ec1ad716ac806ead6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70f8c261393ca09ec1ad716ac806ead6">&#9670;&#160;</a></span>FenwickTree() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">FenwickTree::FenwickTree </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>--&gt; Size of array that represents Binary Indexed Tree. </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><span class="lineno"> 39</span> {</div>
<div class="line"><span class="lineno"> 40</span> n = x;</div>
<div class="line"><span class="lineno"> 41</span> bit.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/assign.html">assign</a>(n + 1, 0);</div>
<div class="line"><span class="lineno"> 42</span> }</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d91/class_fenwick_tree_a70f8c261393ca09ec1ad716ac806ead6_cgraph.svg" width="368" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aaae15ea71455315e257baa11017cec10" name="aaae15ea71455315e257baa11017cec10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaae15ea71455315e257baa11017cec10">&#9670;&#160;</a></span>offset()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int FenwickTree::offset </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the highest power of two which is not more than x </p>
<div class="fragment"><div class="line"><span class="lineno"> 22</span>{ <span class="keywordflow">return</span> (x &amp; (-x)); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="ade1d6a3d49af9d9df33e2fb26cab1699" name="ade1d6a3d49af9d9df33e2fb26cab1699"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade1d6a3d49af9d9df33e2fb26cab1699">&#9670;&#160;</a></span>sum()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int FenwickTree::sum </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>id</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Get prefix sum upto id </p>
<div class="fragment"><div class="line"><span class="lineno"> 54</span> {</div>
<div class="line"><span class="lineno"> 55</span> <span class="keywordtype">id</span>++;</div>
<div class="line"><span class="lineno"> 56</span> <span class="keywordtype">int</span> res = 0;</div>
<div class="line"><span class="lineno"> 57</span> <span class="keywordflow">while</span> (<span class="keywordtype">id</span> &gt; 0) {</div>
<div class="line"><span class="lineno"> 58</span> res += bit[id];</div>
<div class="line"><span class="lineno"> 59</span> <span class="keywordtype">id</span> -= <a class="code hl_function" href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10">offset</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><span class="lineno"> 60</span> }</div>
<div class="line"><span class="lineno"> 61</span> <span class="keywordflow">return</span> res;</div>
<div class="line"><span class="lineno"> 62</span> }</div>
<div class="ttc" id="aclass_fenwick_tree_html_aaae15ea71455315e257baa11017cec10"><div class="ttname"><a href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10">FenwickTree::offset</a></div><div class="ttdeci">int offset(int x)</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:22</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d91/class_fenwick_tree_ade1d6a3d49af9d9df33e2fb26cab1699_cgraph.svg" width="326" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="a115ff5c548b429b737ea09f75817d1f9" name="a115ff5c548b429b737ea09f75817d1f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a115ff5c548b429b737ea09f75817d1f9">&#9670;&#160;</a></span>sum_range()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int FenwickTree::sum_range </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>l</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>r</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the prefix sum in range from l to r </p>
<div class="fragment"><div class="line"><span class="lineno"> 65</span>{ <span class="keywordflow">return</span> <a class="code hl_function" href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699">sum</a>(r) - <a class="code hl_function" href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699">sum</a>(l - 1); }</div>
<div class="ttc" id="aclass_fenwick_tree_html_ade1d6a3d49af9d9df33e2fb26cab1699"><div class="ttname"><a href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699">FenwickTree::sum</a></div><div class="ttdeci">int sum(int id)</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:54</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d91/class_fenwick_tree_a115ff5c548b429b737ea09f75817d1f9_cgraph.svg" width="542" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="a2e9ea4fcbe0786487f4535c1cfc7aa00" name="a2e9ea4fcbe0786487f4535c1cfc7aa00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e9ea4fcbe0786487f4535c1cfc7aa00">&#9670;&#160;</a></span>update()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void FenwickTree::update </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>val</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Add val at id </p>
<div class="fragment"><div class="line"><span class="lineno"> 45</span> {</div>
<div class="line"><span class="lineno"> 46</span> <span class="keywordtype">id</span>++;</div>
<div class="line"><span class="lineno"> 47</span> <span class="keywordflow">while</span> (<span class="keywordtype">id</span> &lt;= n) {</div>
<div class="line"><span class="lineno"> 48</span> bit[id] += val;</div>
<div class="line"><span class="lineno"> 49</span> <span class="keywordtype">id</span> += <a class="code hl_function" href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10">offset</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><span class="lineno"> 50</span> }</div>
<div class="line"><span class="lineno"> 51</span> }</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d91/class_fenwick_tree_a2e9ea4fcbe0786487f4535c1cfc7aa00_cgraph.svg" width="340" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>range_queries/<a class="el" href="../../d6/d2e/fenwick__tree_8cpp.html">fenwick_tree.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -1,9 +0,0 @@
var class_fenwick_tree =
[
[ "FenwickTree", "dd/d91/class_fenwick_tree.html#aaddab1f03d4941212a82cc647b1adb17", null ],
[ "FenwickTree", "dd/d91/class_fenwick_tree.html#a70f8c261393ca09ec1ad716ac806ead6", null ],
[ "offset", "dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10", null ],
[ "sum", "dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699", null ],
[ "sum_range", "dd/d91/class_fenwick_tree.html#a115ff5c548b429b737ea09f75817d1f9", null ],
[ "update", "dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00", null ]
];

View File

@@ -1,7 +0,0 @@
<map id="FenwickTree::sum_range" name="FenwickTree::sum_range">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,5,174,31"/>
<area shape="rect" id="Node000002" href="$dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699" title=" " alt="" coords="222,5,351,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="174,16,207,16,207,21,174,21"/>
<area shape="rect" id="Node000003" href="$dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" title=" " alt="" coords="399,5,536,31"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="352,16,384,16,384,21,352,21"/>
</map>

View File

@@ -1 +0,0 @@
1da972cc3d57ec0398760c0bb718b659

View File

@@ -1,82 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree::sum_range Pages: 1 -->
<svg width="406pt" height="27pt"
viewBox="0.00 0.00 406.25 27.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 23.25)">
<title>FenwickTree::sum_range</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="126.25,-19.25 0,-19.25 0,0 126.25,0 126.25,-19.25"/>
<text text-anchor="middle" x="63.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum_range</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="259.25,-19.25 162.25,-19.25 162.25,0 259.25,0 259.25,-19.25"/>
<text text-anchor="middle" x="210.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M126.73,-9.62C134.89,-9.62 143.23,-9.62 151.32,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="151.16,-13.13 161.16,-9.62 151.16,-6.13 151.16,-13.13"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="398.25,-19.25 295.25,-19.25 295.25,0 398.25,0 398.25,-19.25"/>
<text text-anchor="middle" x="346.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M259.75,-9.62C267.6,-9.62 275.82,-9.62 283.95,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="283.92,-13.13 293.92,-9.62 283.92,-6.13 283.92,-13.13"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

Before

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -1,57 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree::sum_range Pages: 1 -->
<svg width="406pt" height="27pt"
viewBox="0.00 0.00 406.25 27.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 23.25)">
<title>FenwickTree::sum_range</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="126.25,-19.25 0,-19.25 0,0 126.25,0 126.25,-19.25"/>
<text text-anchor="middle" x="63.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum_range</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="259.25,-19.25 162.25,-19.25 162.25,0 259.25,0 259.25,-19.25"/>
<text text-anchor="middle" x="210.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M126.73,-9.62C134.89,-9.62 143.23,-9.62 151.32,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="151.16,-13.13 161.16,-9.62 151.16,-6.13 151.16,-13.13"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="398.25,-19.25 295.25,-19.25 295.25,0 398.25,0 398.25,-19.25"/>
<text text-anchor="middle" x="346.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M259.75,-9.62C267.6,-9.62 275.82,-9.62 283.95,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="283.92,-13.13 293.92,-9.62 283.92,-6.13 283.92,-13.13"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -1,5 +0,0 @@
<map id="FenwickTree::update" name="FenwickTree::update">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,5,149,31"/>
<area shape="rect" id="Node000002" href="$dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" title=" " alt="" coords="197,5,334,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="149,16,182,16,182,21,149,21"/>
</map>

View File

@@ -1 +0,0 @@
f28b6aa307afa7e966415fdaf3746208

View File

@@ -1,39 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree::update Pages: 1 -->
<svg width="255pt" height="27pt"
viewBox="0.00 0.00 254.50 27.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 23.25)">
<title>FenwickTree::update</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="107.5,-19.25 0,-19.25 0,0 107.5,0 107.5,-19.25"/>
<text text-anchor="middle" x="53.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::update</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="246.5,-19.25 143.5,-19.25 143.5,0 246.5,0 246.5,-19.25"/>
<text text-anchor="middle" x="195" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M107.79,-9.62C115.91,-9.62 124.36,-9.62 132.64,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="132.4,-13.13 142.4,-9.62 132.4,-6.13 132.4,-13.13"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -1,5 +0,0 @@
<map id="FenwickTree::FenwickTree" name="FenwickTree::FenwickTree">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,5,185,31"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/assign.html#" title=" " alt="" coords="233,5,362,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="185,16,218,16,218,21,185,21"/>
</map>

View File

@@ -1 +0,0 @@
239b43ff7a215fd84a7f60b4703c681e

View File

@@ -1,39 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree::FenwickTree Pages: 1 -->
<svg width="276pt" height="27pt"
viewBox="0.00 0.00 275.50 27.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 23.25)">
<title>FenwickTree::FenwickTree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="134.5,-19.25 0,-19.25 0,0 134.5,0 134.5,-19.25"/>
<text text-anchor="middle" x="67.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::FenwickTree</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/assign.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="267.5,-19.25 170.5,-19.25 170.5,0 267.5,0 267.5,-19.25"/>
<text text-anchor="middle" x="219" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::assign</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M134.8,-9.62C142.97,-9.62 151.26,-9.62 159.3,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="159.06,-13.13 169.06,-9.62 159.06,-6.13 159.06,-13.13"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -1,11 +0,0 @@
<map id="FenwickTree::FenwickTree" name="FenwickTree::FenwickTree">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,55,185,80"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/assign.html#" title=" " alt="" coords="240,5,369,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="152,51,232,32,233,38,153,57"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="247,55,362,80"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="185,65,232,65,232,70,185,70"/>
<area shape="rect" id="Node000004" href="$dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00" title=" " alt="" coords="233,104,376,130"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="153,78,233,97,232,103,152,84"/>
<area shape="rect" id="Node000005" href="$dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" title=" " alt="" coords="424,104,561,130"/>
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="376,114,410,114,410,120,376,120"/>
</map>

View File

@@ -1 +0,0 @@
4dccdf978e344b1d537a90d8fe0da4d5

View File

@@ -1,118 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree::FenwickTree Pages: 1 -->
<svg width="425pt" height="101pt"
viewBox="0.00 0.00 425.00 101.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 97.25)">
<title>FenwickTree::FenwickTree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="134.5,-56.25 0,-56.25 0,-37 134.5,-37 134.5,-56.25"/>
<text text-anchor="middle" x="67.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::FenwickTree</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/assign.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="272.75,-93.25 175.75,-93.25 175.75,-74 272.75,-74 272.75,-93.25"/>
<text text-anchor="middle" x="224.25" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::assign</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M110.6,-56.74C129.06,-61.14 150.88,-66.35 170.39,-71.01"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="169.41,-74.61 179.95,-73.53 171.03,-67.8 169.41,-74.61"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="267.5,-56.25 181,-56.25 181,-37 267.5,-37 267.5,-56.25"/>
<text text-anchor="middle" x="224.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M134.88,-46.62C146.58,-46.62 158.6,-46.62 169.88,-46.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="169.86,-50.13 179.86,-46.62 169.86,-43.13 169.86,-50.13"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="278,-19.25 170.5,-19.25 170.5,0 278,0 278,-19.25"/>
<text text-anchor="middle" x="224.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::update</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M110.6,-36.51C129.06,-32.11 150.88,-26.9 170.39,-22.24"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="171.03,-25.45 179.95,-19.72 169.41,-18.64 171.03,-25.45"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="417,-19.25 314,-19.25 314,0 417,0 417,-19.25"/>
<text text-anchor="middle" x="365.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node4&#45;&gt;Node5</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M278.29,-9.62C286.41,-9.62 294.86,-9.62 303.14,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="302.9,-13.13 312.9,-9.62 302.9,-6.13 302.9,-13.13"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

Before

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -1,93 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree::FenwickTree Pages: 1 -->
<svg width="425pt" height="101pt"
viewBox="0.00 0.00 425.00 101.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 97.25)">
<title>FenwickTree::FenwickTree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="134.5,-56.25 0,-56.25 0,-37 134.5,-37 134.5,-56.25"/>
<text text-anchor="middle" x="67.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::FenwickTree</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/assign.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="272.75,-93.25 175.75,-93.25 175.75,-74 272.75,-74 272.75,-93.25"/>
<text text-anchor="middle" x="224.25" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::assign</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M110.6,-56.74C129.06,-61.14 150.88,-66.35 170.39,-71.01"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="169.41,-74.61 179.95,-73.53 171.03,-67.8 169.41,-74.61"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="267.5,-56.25 181,-56.25 181,-37 267.5,-37 267.5,-56.25"/>
<text text-anchor="middle" x="224.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M134.88,-46.62C146.58,-46.62 158.6,-46.62 169.88,-46.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="169.86,-50.13 179.86,-46.62 169.86,-43.13 169.86,-50.13"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="278,-19.25 170.5,-19.25 170.5,0 278,0 278,-19.25"/>
<text text-anchor="middle" x="224.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::update</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M110.6,-36.51C129.06,-32.11 150.88,-26.9 170.39,-22.24"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="171.03,-25.45 179.95,-19.72 169.41,-18.64 171.03,-25.45"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="417,-19.25 314,-19.25 314,0 417,0 417,-19.25"/>
<text text-anchor="middle" x="365.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node4&#45;&gt;Node5</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M278.29,-9.62C286.41,-9.62 294.86,-9.62 303.14,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="302.9,-13.13 312.9,-9.62 302.9,-6.13 302.9,-13.13"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -1,5 +0,0 @@
<map id="FenwickTree::sum" name="FenwickTree::sum">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,5,135,31"/>
<area shape="rect" id="Node000002" href="$dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" title=" " alt="" coords="183,5,320,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="135,16,168,16,168,21,135,21"/>
</map>

View File

@@ -1 +0,0 @@
8546bbf96e5ca573298e8baa389ee627

View File

@@ -1,39 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree::sum Pages: 1 -->
<svg width="244pt" height="27pt"
viewBox="0.00 0.00 244.00 27.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 23.25)">
<title>FenwickTree::sum</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="97,-19.25 0,-19.25 0,0 97,0 97,-19.25"/>
<text text-anchor="middle" x="48.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="236,-19.25 133,-19.25 133,0 236,0 236,-19.25"/>
<text text-anchor="middle" x="184.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M97.5,-9.62C105.35,-9.62 113.57,-9.62 121.7,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="121.67,-13.13 131.67,-9.62 121.67,-6.13 121.67,-13.13"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -110,7 +110,7 @@ $(document).ready(function(){initNavTree('de/d00/classgraph_1_1is__graph__bipart
<div class="dynheader">
Collaboration diagram for graph::is_graph_bipartite::Graph:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../df/db7/classgraph_1_1is__graph__bipartite_1_1_graph__coll__graph.svg" width="260" height="244"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../df/db7/classgraph_1_1is__graph__bipartite_1_1_graph__coll__graph.svg" width="315" height="155"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>

View File

@@ -0,0 +1,494 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: range_queries::fenwick_tree Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('de/d0d/classrange__queries_1_1fenwick__tree.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="../../d0/dc9/classrange__queries_1_1fenwick__tree-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">range_queries::fenwick_tree Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>The class that initializes the Fenwick Tree.
<a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for range_queries::fenwick_tree:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d6/dbe/classrange__queries_1_1fenwick__tree__coll__graph.svg" width="195" height="126"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5ea37183524553bbf2234a36a44a4b9a"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a5ea37183524553bbf2234a36a44a4b9a"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a5ea37183524553bbf2234a36a44a4b9a">fenwick_tree</a> (const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; T &gt; &amp;arr)</td></tr>
<tr class="memdesc:a5ea37183524553bbf2234a36a44a4b9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Class Constructor. <br /></td></tr>
<tr class="separator:a5ea37183524553bbf2234a36a44a4b9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef7ba885b91af093e9e514358fa0f36c"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:aef7ba885b91af093e9e514358fa0f36c"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#aef7ba885b91af093e9e514358fa0f36c">fenwick_tree</a> (T x)</td></tr>
<tr class="memdesc:aef7ba885b91af093e9e514358fa0f36c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Class Constructor. <br /></td></tr>
<tr class="separator:aef7ba885b91af093e9e514358fa0f36c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19dea5e88bbd7683a719030623315de9"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a19dea5e88bbd7683a719030623315de9"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9">update</a> (T id, T val)</td></tr>
<tr class="memdesc:a19dea5e88bbd7683a719030623315de9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the value of an element in original array and accordingly updates the values in BIT array. <br /></td></tr>
<tr class="separator:a19dea5e88bbd7683a719030623315de9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fa0559d987fde0044761b17b35f5abd"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a1fa0559d987fde0044761b17b35f5abd"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd">sum</a> (T id)</td></tr>
<tr class="memdesc:a1fa0559d987fde0044761b17b35f5abd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the sum of elements in range from 0 to ID. <br /></td></tr>
<tr class="separator:a1fa0559d987fde0044761b17b35f5abd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0914a4b1401a7c427de91c92885724fe"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe">sum_range</a> (int l, int r)</td></tr>
<tr class="memdesc:a0914a4b1401a7c427de91c92885724fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the prefix sum in range from L to R. <br /></td></tr>
<tr class="separator:a0914a4b1401a7c427de91c92885724fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:ab492ebf07cab0e3c32d277ad986de801"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801">offset</a> (int x)</td></tr>
<tr class="memdesc:ab492ebf07cab0e3c32d277ad986de801"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the highest power of two which is not more than <code>x</code>. <br /></td></tr>
<tr class="separator:ab492ebf07cab0e3c32d277ad986de801"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:af9f543aa5976b8cc5422490b3d6250c6"><td class="memItemLeft" align="right" valign="top"><a id="af9f543aa5976b8cc5422490b3d6250c6" name="af9f543aa5976b8cc5422490b3d6250c6"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>n</b> = 0</td></tr>
<tr class="memdesc:af9f543aa5976b8cc5422490b3d6250c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">No. of elements present in input array. <br /></td></tr>
<tr class="separator:af9f543aa5976b8cc5422490b3d6250c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7b7a8c1c5724ed8683d7e28bef526e6"><td class="memItemLeft" align="right" valign="top"><a id="af7b7a8c1c5724ed8683d7e28bef526e6" name="af7b7a8c1c5724ed8683d7e28bef526e6"></a>
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>bit</b> {}</td></tr>
<tr class="memdesc:af7b7a8c1c5724ed8683d7e28bef526e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Array that represents Binary Indexed Tree. <br /></td></tr>
<tr class="separator:af7b7a8c1c5724ed8683d7e28bef526e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The class that initializes the Fenwick Tree. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5ea37183524553bbf2234a36a44a4b9a" name="a5ea37183524553bbf2234a36a44a4b9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ea37183524553bbf2234a36a44a4b9a">&#9670;&#160;</a></span>fenwick_tree() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">range_queries::fenwick_tree::fenwick_tree </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; T &gt; &amp;&#160;</td>
<td class="paramname"><em>arr</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Class Constructor. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>the type of the array </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">arr</td><td>Input array for which prefix sum is evaluated. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 50</span> : <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a>(arr.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>()) {</div>
<div class="line"><span class="lineno"> 51</span> <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">bit</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/assign.html">assign</a>(<a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a> + 1, 0);</div>
<div class="line"><span class="lineno"> 52</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a>; ++i) {</div>
<div class="line"><span class="lineno"> 53</span> <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9">update</a>(i, arr[i]);</div>
<div class="line"><span class="lineno"> 54</span> }</div>
<div class="line"><span class="lineno"> 55</span> }</div>
<div class="ttc" id="aassign_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/assign.html">std::vector::assign</a></div><div class="ttdeci">T assign(T... args)</div></div>
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_a19dea5e88bbd7683a719030623315de9"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9">range_queries::fenwick_tree::update</a></div><div class="ttdeci">void update(T id, T val)</div><div class="ttdoc">Updates the value of an element in original array and accordingly updates the values in BIT array.</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:75</div></div>
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_af7b7a8c1c5724ed8683d7e28bef526e6"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">range_queries::fenwick_tree::bit</a></div><div class="ttdeci">std::vector&lt; int &gt; bit</div><div class="ttdoc">Array that represents Binary Indexed Tree.</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:34</div></div>
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_af9f543aa5976b8cc5422490b3d6250c6"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">range_queries::fenwick_tree::n</a></div><div class="ttdeci">size_t n</div><div class="ttdoc">No. of elements present in input array.</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:33</div></div>
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/d0d/classrange__queries_1_1fenwick__tree_a5ea37183524553bbf2234a36a44a4b9a_cgraph.svg" width="574" height="102"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="aef7ba885b91af093e9e514358fa0f36c" name="aef7ba885b91af093e9e514358fa0f36c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef7ba885b91af093e9e514358fa0f36c">&#9670;&#160;</a></span>fenwick_tree() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">range_queries::fenwick_tree::fenwick_tree </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Class Constructor. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>the type of the variable </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>Size of array that represents Binary Indexed Tree. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 64</span>: <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a>(x) { <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">bit</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/assign.html">assign</a>(<a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a> + 1, 0); }</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/d0d/classrange__queries_1_1fenwick__tree_aef7ba885b91af093e9e514358fa0f36c_cgraph.svg" width="344" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab492ebf07cab0e3c32d277ad986de801" name="ab492ebf07cab0e3c32d277ad986de801"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab492ebf07cab0e3c32d277ad986de801">&#9670;&#160;</a></span>offset()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int range_queries::fenwick_tree::offset </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the highest power of two which is not more than <code>x</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>Index of element in original array. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Offset of index. </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 41</span>{ <span class="keywordflow">return</span> (x &amp; (-x)); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a1fa0559d987fde0044761b17b35f5abd" name="a1fa0559d987fde0044761b17b35f5abd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fa0559d987fde0044761b17b35f5abd">&#9670;&#160;</a></span>sum()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int range_queries::fenwick_tree::sum </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>id</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the sum of elements in range from 0 to ID. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>the type of the variables </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">id</td><td>Index in original array up to which sum is evaluated. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Sum of elements in range from 0 to id. </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 90</span> {</div>
<div class="line"><span class="lineno"> 91</span> <span class="keywordtype">id</span>++;</div>
<div class="line"><span class="lineno"> 92</span> T res = 0;</div>
<div class="line"><span class="lineno"> 93</span> <span class="keywordflow">while</span> (<span class="keywordtype">id</span> &gt; 0) {</div>
<div class="line"><span class="lineno"> 94</span> res += <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">bit</a>[id];</div>
<div class="line"><span class="lineno"> 95</span> <span class="keywordtype">id</span> -= <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801">offset</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><span class="lineno"> 96</span> }</div>
<div class="line"><span class="lineno"> 97</span> <span class="keywordflow">return</span> res;</div>
<div class="line"><span class="lineno"> 98</span> }</div>
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_ab492ebf07cab0e3c32d277ad986de801"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801">range_queries::fenwick_tree::offset</a></div><div class="ttdeci">int offset(int x)</div><div class="ttdoc">Returns the highest power of two which is not more than x.</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:41</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/d0d/classrange__queries_1_1fenwick__tree_a1fa0559d987fde0044761b17b35f5abd_cgraph.svg" width="370" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="a0914a4b1401a7c427de91c92885724fe" name="a0914a4b1401a7c427de91c92885724fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0914a4b1401a7c427de91c92885724fe">&#9670;&#160;</a></span>sum_range()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int range_queries::fenwick_tree::sum_range </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>l</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>r</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the prefix sum in range from L to R. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">l</td><td>Left index of range. </td></tr>
<tr><td class="paramname">r</td><td>Right index of range. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Sum of elements in range from L to R. </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 106</span>{ <span class="keywordflow">return</span> <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd">sum</a>(r) - <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd">sum</a>(l - 1); }</div>
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_a1fa0559d987fde0044761b17b35f5abd"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd">range_queries::fenwick_tree::sum</a></div><div class="ttdeci">int sum(T id)</div><div class="ttdoc">Returns the sum of elements in range from 0 to ID.</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:90</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/d0d/classrange__queries_1_1fenwick__tree_a0914a4b1401a7c427de91c92885724fe_cgraph.svg" width="574" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="a19dea5e88bbd7683a719030623315de9" name="a19dea5e88bbd7683a719030623315de9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19dea5e88bbd7683a719030623315de9">&#9670;&#160;</a></span>update()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void range_queries::fenwick_tree::update </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>val</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Updates the value of an element in original array and accordingly updates the values in BIT array. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>the type of the variables </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">id</td><td>Index of element in original array. </td></tr>
<tr><td class="paramname">val</td><td>Value with which element's value is updated. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 75</span> {</div>
<div class="line"><span class="lineno"> 76</span> <span class="keywordtype">id</span>++;</div>
<div class="line"><span class="lineno"> 77</span> <span class="keywordflow">while</span> (<span class="keywordtype">id</span> &lt;= <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a>) {</div>
<div class="line"><span class="lineno"> 78</span> <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">bit</a>[id] += val;</div>
<div class="line"><span class="lineno"> 79</span> <span class="keywordtype">id</span> += <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801">offset</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><span class="lineno"> 80</span> }</div>
<div class="line"><span class="lineno"> 81</span> }</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/d0d/classrange__queries_1_1fenwick__tree_a19dea5e88bbd7683a719030623315de9_cgraph.svg" width="370" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>range_queries/<a class="el" href="../../d6/d2e/fenwick__tree_8cpp.html">fenwick_tree.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dd/d69/namespacerange__queries.html">range_queries</a></li><li class="navelem"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">fenwick_tree</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,11 @@
var classrange__queries_1_1fenwick__tree =
[
[ "fenwick_tree", "de/d0d/classrange__queries_1_1fenwick__tree.html#a5ea37183524553bbf2234a36a44a4b9a", null ],
[ "fenwick_tree", "de/d0d/classrange__queries_1_1fenwick__tree.html#aef7ba885b91af093e9e514358fa0f36c", null ],
[ "offset", "de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801", null ],
[ "sum", "de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd", null ],
[ "sum_range", "de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe", null ],
[ "update", "de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9", null ],
[ "bit", "de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6", null ],
[ "n", "de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6", null ]
];

View File

@@ -0,0 +1,7 @@
<map id="range_queries::fenwick_tree::sum_range" name="range_queries::fenwick_tree::sum_range">
<area shape="rect" id="Node000001" title="Returns the prefix sum in range from L to R." alt="" coords="5,5,161,46"/>
<area shape="rect" id="Node000002" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" title="Returns the sum of elements in range from 0 to ID." alt="" coords="209,5,364,46"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="161,23,194,23,194,28,161,28"/>
<area shape="rect" id="Node000003" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" title="Returns the highest power of two which is not more than x." alt="" coords="412,5,567,46"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="364,23,397,23,397,28,364,28"/>
</map>

View File

@@ -0,0 +1 @@
0a4e921e0cb7860f4fe331f15c0fb383

View File

@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: range_queries::fenwick_tree::sum_range Pages: 1 -->
<svg width="430pt" height="39pt"
viewBox="0.00 0.00 429.50 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>range_queries::fenwick_tree::sum_range</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Returns the prefix sum in range from L to R.">
<polygon fill="#999999" stroke="#666666" points="116.5,-30.5 0,-30.5 0,0 116.5,0 116.5,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="58.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum_range</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" target="_top" xlink:title="Returns the sum of elements in range from 0 to ID.">
<polygon fill="white" stroke="#666666" points="269,-30.5 152.5,-30.5 152.5,0 269,0 269,-30.5"/>
<text text-anchor="start" x="160.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="210.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M116.58,-15.25C124.66,-15.25 133.04,-15.25 141.31,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.08,-18.75 151.08,-15.25 141.08,-11.75 141.08,-18.75"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="421.5,-30.5 305,-30.5 305,0 421.5,0 421.5,-30.5"/>
<text text-anchor="start" x="313" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="363.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M269.08,-15.25C277.16,-15.25 285.54,-15.25 293.81,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="293.58,-18.75 303.58,-15.25 293.58,-11.75 293.58,-18.75"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: range_queries::fenwick_tree::sum_range Pages: 1 -->
<svg width="430pt" height="39pt"
viewBox="0.00 0.00 429.50 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>range_queries::fenwick_tree::sum_range</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Returns the prefix sum in range from L to R.">
<polygon fill="#999999" stroke="#666666" points="116.5,-30.5 0,-30.5 0,0 116.5,0 116.5,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="58.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum_range</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" target="_top" xlink:title="Returns the sum of elements in range from 0 to ID.">
<polygon fill="white" stroke="#666666" points="269,-30.5 152.5,-30.5 152.5,0 269,0 269,-30.5"/>
<text text-anchor="start" x="160.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="210.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M116.58,-15.25C124.66,-15.25 133.04,-15.25 141.31,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.08,-18.75 151.08,-15.25 141.08,-11.75 141.08,-18.75"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="421.5,-30.5 305,-30.5 305,0 421.5,0 421.5,-30.5"/>
<text text-anchor="start" x="313" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="363.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M269.08,-15.25C277.16,-15.25 285.54,-15.25 293.81,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="293.58,-18.75 303.58,-15.25 293.58,-11.75 293.58,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@@ -0,0 +1,5 @@
<map id="range_queries::fenwick_tree::update" name="range_queries::fenwick_tree::update">
<area shape="rect" id="Node000001" title="Updates the value of an element in original array and accordingly updates the values in BIT array." alt="" coords="5,5,161,46"/>
<area shape="rect" id="Node000002" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" title="Returns the highest power of two which is not more than x." alt="" coords="209,5,364,46"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="161,23,194,23,194,28,161,28"/>
</map>

View File

@@ -0,0 +1 @@
acdb7718408beae1e9044f86664b7c21

View File

@@ -3,9 +3,9 @@
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree::update Pages: 1 -->
<svg width="255pt" height="27pt"
viewBox="0.00 0.00 254.50 27.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Title: range_queries::fenwick_tree::update Pages: 1 -->
<svg width="277pt" height="39pt"
viewBox="0.00 0.00 277.00 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -16,23 +16,25 @@
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 23.25)">
<title>FenwickTree::update</title>
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>range_queries::fenwick_tree::update</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="107.5,-19.25 0,-19.25 0,0 107.5,0 107.5,-19.25"/>
<text text-anchor="middle" x="53.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::update</text>
<g id="a_Node000001"><a xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
<polygon fill="#999999" stroke="#666666" points="116.5,-30.5 0,-30.5 0,0 116.5,0 116.5,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="58.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="246.5,-19.25 143.5,-19.25 143.5,0 246.5,0 246.5,-19.25"/>
<text text-anchor="middle" x="195" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
<g id="a_Node000002"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="269,-30.5 152.5,-30.5 152.5,0 269,0 269,-30.5"/>
<text text-anchor="start" x="160.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="210.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
@@ -40,8 +42,8 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M107.79,-9.62C115.91,-9.62 124.36,-9.62 132.64,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="132.4,-13.13 142.4,-9.62 132.4,-6.13 132.4,-13.13"/>
<path fill="none" stroke="#63b8ff" d="M116.58,-15.25C124.66,-15.25 133.04,-15.25 141.31,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.08,-18.75 151.08,-15.25 141.08,-11.75 141.08,-18.75"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: range_queries::fenwick_tree::update Pages: 1 -->
<svg width="277pt" height="39pt"
viewBox="0.00 0.00 277.00 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>range_queries::fenwick_tree::update</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
<polygon fill="#999999" stroke="#666666" points="116.5,-30.5 0,-30.5 0,0 116.5,0 116.5,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="58.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="269,-30.5 152.5,-30.5 152.5,0 269,0 269,-30.5"/>
<text text-anchor="start" x="160.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="210.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M116.58,-15.25C124.66,-15.25 133.04,-15.25 141.31,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.08,-18.75 151.08,-15.25 141.08,-11.75 141.08,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -0,0 +1,5 @@
<map id="range_queries::fenwick_tree::sum" name="range_queries::fenwick_tree::sum">
<area shape="rect" id="Node000001" title="Returns the sum of elements in range from 0 to ID." alt="" coords="5,5,161,46"/>
<area shape="rect" id="Node000002" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" title="Returns the highest power of two which is not more than x." alt="" coords="209,5,364,46"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="161,23,194,23,194,28,161,28"/>
</map>

View File

@@ -0,0 +1 @@
5b71e6f10aadc5d42d4ab6c8b86a5737

View File

@@ -3,9 +3,9 @@
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree::sum Pages: 1 -->
<svg width="244pt" height="27pt"
viewBox="0.00 0.00 244.00 27.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Title: range_queries::fenwick_tree::sum Pages: 1 -->
<svg width="277pt" height="39pt"
viewBox="0.00 0.00 277.00 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -16,23 +16,25 @@
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 23.25)">
<title>FenwickTree::sum</title>
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>range_queries::fenwick_tree::sum</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="97,-19.25 0,-19.25 0,0 97,0 97,-19.25"/>
<text text-anchor="middle" x="48.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum</text>
<g id="a_Node000001"><a xlink:title="Returns the sum of elements in range from 0 to ID.">
<polygon fill="#999999" stroke="#666666" points="116.5,-30.5 0,-30.5 0,0 116.5,0 116.5,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="58.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="236,-19.25 133,-19.25 133,0 236,0 236,-19.25"/>
<text text-anchor="middle" x="184.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
<g id="a_Node000002"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="269,-30.5 152.5,-30.5 152.5,0 269,0 269,-30.5"/>
<text text-anchor="start" x="160.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="210.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
@@ -40,8 +42,8 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M97.5,-9.62C105.35,-9.62 113.57,-9.62 121.7,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="121.67,-13.13 131.67,-9.62 121.67,-6.13 121.67,-13.13"/>
<path fill="none" stroke="#63b8ff" d="M116.58,-15.25C124.66,-15.25 133.04,-15.25 141.31,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.08,-18.75 151.08,-15.25 141.08,-11.75 141.08,-18.75"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: range_queries::fenwick_tree::sum Pages: 1 -->
<svg width="277pt" height="39pt"
viewBox="0.00 0.00 277.00 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>range_queries::fenwick_tree::sum</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Returns the sum of elements in range from 0 to ID.">
<polygon fill="#999999" stroke="#666666" points="116.5,-30.5 0,-30.5 0,0 116.5,0 116.5,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="58.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="269,-30.5 152.5,-30.5 152.5,0 269,0 269,-30.5"/>
<text text-anchor="start" x="160.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="210.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M116.58,-15.25C124.66,-15.25 133.04,-15.25 141.31,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.08,-18.75 151.08,-15.25 141.08,-11.75 141.08,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -0,0 +1,9 @@
<map id="range_queries::fenwick_tree::fenwick_tree" name="range_queries::fenwick_tree::fenwick_tree">
<area shape="rect" id="Node000001" title="Class Constructor." alt="" coords="5,27,161,68"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/assign.html#" title=" " alt="" coords="222,5,351,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="160,34,207,27,207,32,161,39"/>
<area shape="rect" id="Node000003" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" title="Updates the value of an element in original array and accordingly updates the values in BIT array." alt="" coords="209,55,364,96"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="161,56,194,60,193,65,160,61"/>
<area shape="rect" id="Node000004" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" title="Returns the highest power of two which is not more than x." alt="" coords="412,55,567,96"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="364,73,397,73,397,78,364,78"/>
</map>

View File

@@ -0,0 +1 @@
4b9dc88d4bac9f9a9b1736db49bc7ba5

View File

@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: range_queries::fenwick_tree::fenwick_tree Pages: 1 -->
<svg width="430pt" height="76pt"
viewBox="0.00 0.00 429.50 75.88" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 71.88)">
<title>range_queries::fenwick_tree::fenwick_tree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Class Constructor.">
<polygon fill="#999999" stroke="#666666" points="116.5,-51.5 0,-51.5 0,-21 116.5,-21 116.5,-51.5"/>
<text text-anchor="start" x="8" y="-38" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="58.25" y="-26.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::fenwick_tree</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/assign.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="259.25,-67.88 162.25,-67.88 162.25,-48.62 259.25,-48.62 259.25,-67.88"/>
<text text-anchor="middle" x="210.75" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::assign</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M116.58,-44.63C127.91,-46.29 139.81,-48.03 151.19,-49.69"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="150.49,-53.27 160.89,-51.25 151.5,-46.34 150.49,-53.27"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" target="_top" xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
<polygon fill="white" stroke="#666666" points="269,-30.5 152.5,-30.5 152.5,0 269,0 269,-30.5"/>
<text text-anchor="start" x="160.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="210.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M116.58,-28.25C124.66,-27.12 133.04,-25.95 141.31,-24.8"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.66,-28.14 151.08,-23.3 140.7,-21.21 141.66,-28.14"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="421.5,-30.5 305,-30.5 305,0 421.5,0 421.5,-30.5"/>
<text text-anchor="start" x="313" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="363.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M269.08,-15.25C277.16,-15.25 285.54,-15.25 293.81,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="293.58,-18.75 303.58,-15.25 293.58,-11.75 293.58,-18.75"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: range_queries::fenwick_tree::fenwick_tree Pages: 1 -->
<svg width="430pt" height="76pt"
viewBox="0.00 0.00 429.50 75.88" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 71.88)">
<title>range_queries::fenwick_tree::fenwick_tree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Class Constructor.">
<polygon fill="#999999" stroke="#666666" points="116.5,-51.5 0,-51.5 0,-21 116.5,-21 116.5,-51.5"/>
<text text-anchor="start" x="8" y="-38" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="58.25" y="-26.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::fenwick_tree</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/assign.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="259.25,-67.88 162.25,-67.88 162.25,-48.62 259.25,-48.62 259.25,-67.88"/>
<text text-anchor="middle" x="210.75" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::assign</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M116.58,-44.63C127.91,-46.29 139.81,-48.03 151.19,-49.69"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="150.49,-53.27 160.89,-51.25 151.5,-46.34 150.49,-53.27"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" target="_top" xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
<polygon fill="white" stroke="#666666" points="269,-30.5 152.5,-30.5 152.5,0 269,0 269,-30.5"/>
<text text-anchor="start" x="160.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="210.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M116.58,-28.25C124.66,-27.12 133.04,-25.95 141.31,-24.8"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.66,-28.14 151.08,-23.3 140.7,-21.21 141.66,-28.14"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
<polygon fill="white" stroke="#666666" points="421.5,-30.5 305,-30.5 305,0 421.5,0 421.5,-30.5"/>
<text text-anchor="start" x="313" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="363.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M269.08,-15.25C277.16,-15.25 285.54,-15.25 293.81,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="293.58,-18.75 303.58,-15.25 293.58,-11.75 293.58,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -0,0 +1,5 @@
<map id="range_queries::fenwick_tree::fenwick_tree" name="range_queries::fenwick_tree::fenwick_tree">
<area shape="rect" id="Node000001" title="Class Constructor." alt="" coords="5,5,161,46"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/assign.html#" title=" " alt="" coords="209,13,338,39"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="161,23,194,23,194,28,161,28"/>
</map>

View File

@@ -0,0 +1 @@
369b0a3dade4ebd8e74be2fc02e581f3

View File

@@ -3,9 +3,9 @@
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: FenwickTree::FenwickTree Pages: 1 -->
<svg width="276pt" height="27pt"
viewBox="0.00 0.00 275.50 27.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Title: range_queries::fenwick_tree::fenwick_tree Pages: 1 -->
<svg width="258pt" height="39pt"
viewBox="0.00 0.00 257.50 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -16,14 +16,15 @@
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 23.25)">
<title>FenwickTree::FenwickTree</title>
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>range_queries::fenwick_tree::fenwick_tree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title=" ">
<polygon fill="#999999" stroke="#666666" points="134.5,-19.25 0,-19.25 0,0 134.5,0 134.5,-19.25"/>
<text text-anchor="middle" x="67.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::FenwickTree</text>
<g id="a_Node000001"><a xlink:title="Class Constructor.">
<polygon fill="#999999" stroke="#666666" points="116.5,-30.5 0,-30.5 0,0 116.5,0 116.5,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="58.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::fenwick_tree</text>
</a>
</g>
</g>
@@ -31,8 +32,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/assign.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="267.5,-19.25 170.5,-19.25 170.5,0 267.5,0 267.5,-19.25"/>
<text text-anchor="middle" x="219" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::assign</text>
<polygon fill="white" stroke="#666666" points="249.5,-24.88 152.5,-24.88 152.5,-5.63 249.5,-5.63 249.5,-24.88"/>
<text text-anchor="middle" x="201" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::assign</text>
</a>
</g>
</g>
@@ -40,8 +41,8 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M134.8,-9.62C142.97,-9.62 151.26,-9.62 159.3,-9.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="159.06,-13.13 169.06,-9.62 159.06,-6.13 159.06,-13.13"/>
<path fill="none" stroke="#63b8ff" d="M116.9,-15.25C124.94,-15.25 133.21,-15.25 141.27,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.08,-18.75 151.08,-15.25 141.08,-11.75 141.08,-18.75"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
-->
<!-- Title: range_queries::fenwick_tree::fenwick_tree Pages: 1 -->
<svg width="258pt" height="39pt"
viewBox="0.00 0.00 257.50 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>range_queries::fenwick_tree::fenwick_tree</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Class Constructor.">
<polygon fill="#999999" stroke="#666666" points="116.5,-30.5 0,-30.5 0,0 116.5,0 116.5,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
<text text-anchor="middle" x="58.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::fenwick_tree</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/assign.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="249.5,-24.88 152.5,-24.88 152.5,-5.63 249.5,-5.63 249.5,-24.88"/>
<text text-anchor="middle" x="201" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::assign</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M116.9,-15.25C124.94,-15.25 133.21,-15.25 141.27,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.08,-18.75 151.08,-15.25 141.08,-11.75 141.08,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -1,14 +1,13 @@
<map id="range_queries::heavy_light_decomposition::Tree&lt; X &gt;" name="range_queries::heavy_light_decomposition::Tree&lt; X &gt;">
<area shape="rect" id="Node000001" title="A Basic Tree, which supports binary lifting." alt="" coords="470,91,615,147"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="241,5,380,46"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="378,50,472,88,470,93,376,55"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list.html" title=" " alt="" coords="15,13,117,39"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="132,23,241,23,241,28,132,28"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="232,148,389,189"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="403,146,469,132,470,137,404,151"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="5,113,127,139"/>
<area shape="poly" id="edge5_Node000001_Node000005" title=" " alt="" coords="141,119,151,119,470,116,470,121,151,124,142,125"/>
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="142,136,232,152,231,157,141,141"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="252,213,369,239"/>
<area shape="poly" id="edge6_Node000001_Node000006" title=" " alt="" coords="370,205,388,198,492,145,495,150,390,203,372,210"/>
<area shape="rect" id="Node000001" title="A Basic Tree, which supports binary lifting." alt="" coords="465,94,610,150"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="222,5,361,46"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="360,49,466,91,464,96,358,54"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list.html" title=" " alt="" coords="5,13,108,39"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="123,23,222,23,222,28,123,28"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="213,71,370,111"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="385,100,465,110,464,115,385,105"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="231,140,352,165"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="367,149,441,142,464,138,465,143,441,148,367,154"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector.html" title=" " alt="" coords="233,189,350,215"/>
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="364,189,440,169,487,148,489,153,442,174,365,194"/>
</map>

Some files were not shown because too many files have changed in this diff Show More