Doubt in Tree Queries

I have been read about basics data structures and algorithms for arrays and matrices. I have also also done some basic graphs algorithms, as mention in “geeksforgeeks”. Basic array querying using Segment tree is also done.

But I have facing problems on visualising tree queries. Can anyone suggest some tutorials for it and what kind of data structures are required for it?

3 Likes

You should really give this a try : VisuAlgo

It allows you to visualise a lot of common algorithms and data structures. You can even play around ,put in your own values, run queries, and see the way the queries are executed on the data structure.

It is a very helpful tool, specially for beginners like us to understand the inner working of these ds correctly.

I hope this was helpful

1 Like

You can also refer to this links to learn more about trees

https://blog.anudeep2011.com/heavy-light-decomposition/

3 Likes

One can also refer to this thread : On Euler tour trees - Codeforces

1 Like

Thank you so much.

1 Like