PyBlog © 2016 – 2026

Java

2 posts tagged “Java”.

Hybrid Spatial Index: Quad-KD and R-KD trees

Spatial Index

Introducing hybrid quad-kd and r-kd tree structures that combine the quadtree, KD-tree, and R-tree to speed up search over mixed point and...

Visitor Pattern: Avoid Switch Case for ENUMs

Design Patterns

Replacing sprawling switch statements over enums with the Visitor pattern in Java, for code that stays clean and easy to extend.