Quick-CP
Sunday, September 22, 2024
Rope Data Structure
Segment Tree 01
This image depicts a segment tree. It is drawn as a binary tree structure with nodes labeled by ranges (e.g., 1-7, 1-4, 5-7, etc.). The root node represents the full range (1-7), and each node's children represent smaller subranges. The numbers written in red beside each node appear to be indices or labels for the nodes.
This image explains how the segment tree is divided into nodes. The formula for dividing nodes ((begin + end)/2) is provided, along with an example. The tree on the right side of the image highlights how the range 1-7 is divided into two parts: S1 (1-4) and S2 (5-7).
This image illustrates the numbering of nodes in the segment tree. On the left, a list shows the indices representing the ranges. On the right, the segment tree is shown again, with the nodes marked with green numbers, correlating to the index list on the left.
Rope Data Structure
Rope data structure XOR বাইনারি অপারেশনটা দিয়ে বেশ মজার মজার সব কাজ করা যায় যেগুলো প্রথম দেখায় ম্যাজিকের মত মনে হয়, কিন্তু একটু ভিতরের দি...