Efficient Q-Tree Algorithm: Understanding Parent-Child Relationships

  • Thread starter Thread starter sayuri2009
  • Start date Start date
  • Tags Tags
    Algorithm Search
Click For Summary
The discussion revolves around understanding the concept of nodes in a quadtree structure. The term "u" refers to any node within the quadtree, not a specific one, and can function as both a parent and a child. The example provided suggests that if node B is the root, its relationships with other nodes can vary based on how the quadtree is constructed. Specifically, B's northwest (NW) child could be A, while the southwest (SW) child could be either C or D, depending on the tree's design. Additionally, it is noted that quadtrees are less effective for representing scattered points due to potential sparsity and imbalance, making them more suitable for structured data like a square lattice.
sayuri2009
Messages
13
Reaction score
2
TL;DR
Cities
Hi,

I don't get what the conditions below exactly means.

1610198442449.png

Its which u they are talking about? Is the u the parent or children? Does it mean u = B? and the children are A,C,D?
if u is in the quadtree rooted by v:NW then u:x < v:x and u:y ≥ v:y;

Thanks,
 
Technology news on Phys.org
sayuri2009 said:
Its which u they are talking about?
## u ## stands for any node, not any particular one.

sayuri2009 said:
Is the u the parent or children?
Every node can be both a parent and a child.

sayuri2009 said:
Does it mean u = B? and the children are A,C,D?
There are many ways to build a quadtree, but if you start with B at the root then ## B.parent = B.NE = B.SE = \mathrm{null} ##, ## B.NW = A ## and ## B.SW ## can be either of ## C ## or ## D ## depending on how you build the tree.

Edit: quadtrees are less useful for representing scattered points as they are likely to be sparse and unbalanced, they are more useful for representing a square lattice.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
9K
  • · Replies 83 ·
3
Replies
83
Views
12K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 175 ·
6
Replies
175
Views
26K
  • · Replies 67 ·
3
Replies
67
Views
15K
  • · Replies 77 ·
3
Replies
77
Views
12K
  • · Replies 13 ·
Replies
13
Views
3K