DEV Community

Discussion on: What is your favourite data structure?

Collapse
 
miguelmj profile image
MiguelMJ • Edited
  1. Sets and maps made from AVL trees. They embody the beauty of binary search.
  2. Priority queues (no matter the implementation). I think they are elegant and bring that elegance to the algorithms they appear in.
  3. Matrices. For me, they are difficult to understand, but their versatility seem to be endless! Graphs and automata, neural networks, geometry for robotics and videogames, everything in computer vision... they're just everywhere!