DEV Community

Discussion on: How often You Have to use the Concepts of Trees in your algo

Collapse
 
etcwilde profile image
Evan Wilde

I use trees in nearly everything I do. Whether I implement them is a different story. In C++ the std::map is usually implemented with a red-black tree. If you interact with a file system, you're usually working with a tree. Databases, trees. maps, trees. (unordered maps are not trees, they're a hash table). Sets, usually are trees.