Quadtree explanation and C implementation [closed]
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Please explain quadtrees and provide simple code (preferably in C) for insertion and searching.
Wikipedia has a good article on quadtrees. The quadtree section in these slides is very good.
Here are some C implementations (found via Googling for quadtree c -"c++" -"c#"):
- http://hyantes.gforge.inria.fr/doc/quadtree_8c-source.html
- http://xw2k.nist.gov/dads/html/quadtree.html
- http://www.informatik.uni-ulm.de/acm/Locals/1999/src/quadtree.C
精彩评论