News for hackers. Stuff that matters.

How has algorithms and data structures helped you?

How has knowledge of algorithms and data structures benefited you in real-world projects? I've been studying it for nearly three months, but while coding i still faced a problem that would give the click "hey i could use binary trees to solve this", but something that i actively noticed is the capacacity of understanding abstract things quicker (like OOP). so i would like to know your perspective towards this topic and daily problem that comes up at work.
( 2 comments | on HN )
Re:How has algorithms and data structures helped you? by JackSlateur on Friday December 01, 2023 @05:40PM (#38493543)
Those are tools

For instance, sometimes I work with IP addresses, like "I have to grab the entry that matches this IP the most"

When you know the existence of radix trees, the problem is easy to solve : use a lib, create a tree, populate it, and then do some lookups

When you don't, you write an aweful foreach and crazy algorithm to compare entries

Re:How has algorithms and data structures helped you? by destevil on Friday December 01, 2023 @05:29PM (#38493429)
Yup. Use 'em every day.