Data structures and algorithms I actually used while working at tech companies
blog.pragmaticengineer.com
Data structures and algorithms I actually used while working at tech companies
1–10 of 547 posts
Re: Data structures and algorithms I actually used while working at tech companies
#2Re: Data structures and algorithms I actually used while working at tech companies
#3I remember a stint in research, about data analytic non the less, where rarely anyone had a good grasp of SQL or any other way to persist data for that matter. It really puzzles me to this day.
Might be me finding most ORMs to be harmful if used without understanding of the underlying technologies.
Re: Data structures and algorithms I actually used while working at tech companies
#4The problem was to divide a text into a number of tweets to make it a thread, with the obvious constraint that no tweet should have more than 280 characters, but you still wanted to minimize some cost based on how far your tweets were from 280 chars and where you divided them (e.g., dividing after a full stop is better than after a comma, which is better than between two works, which is way better than midword).
With a reasonable cost function, this really seems a textbook dynamic programming example (possibly much more credible than the entering-a-treasure-cave-with-a-rucksack story).
Re: Data structures and algorithms I actually used while working at tech companies
#5Re: Data structures and algorithms I actually used while working at tech companies
#6But the general understanding of algorithms and complexity did help even in CRUD apps. It gives the bricks to form mental model of the underlying system. I don't need to code a b-tree but I may need to tweak its params.
Re: Data structures and algorithms I actually used while working at tech companies
#7I recently had an A-ha moment when I realized that the problem I was trying to solve admitted a simple solution with dynamic programming, something I had never used outside programming competitions. The problem was to divide a text into a number of tweets to make it a thread, with the obvious constraint that no tweet should have more than 280 characters, but you still wanted to minimize some cost based on how far you…
That immediately brings Tex box badness to my mind. And the related line wrapping algorithm: http://www.tug.org/TUGboat/tb21-3/tb68fine.pdf
Re: Data structures and algorithms I actually used while working at tech companies
#8Would you rather be interviewed on algorithm questions or Ravens progressive matrices? They both test the same thing, but at least one you can study for, is somewhat relevant to the job (and is legal).
Re: Data structures and algorithms I actually used while working at tech companies
#9Re: Data structures and algorithms I actually used while working at tech companies
#10It's OK to ask people general questions (what's algorithmic complexity, what kind of algorithms and data structures they know about, what are the tradeofs, etc).
But expecting people to remember the exact steps of an algorithm they last used 10 years ago at university is just stupid. It's like asking engineers to remember the tensile strength of a material they could use once a decade. That's what the documentation is for. It will take 3 minutes to look it up when I need it (if I need it at all).