Blogs / Personal blogs

Douglas Orr

douglasorr.github.io

My grab bag of various diversions/essays mostly about machine learning and software engineering, but some other topics too.

Popular posts
1
Total points
137
HN comments
81
Rank
#17,054 personal

Visit douglasorr.github.io → On Hacker News Jan 2020 – Jan 2020

Software Engineering 1Databases & Data 1

1

Finding unique items: hash vs. sort

A while back, I was trying to speed up some code which finds unique items in a collection. For example, transforming "AABBADCAB" => "ABDC" . There are two ways to do this efficiently - one is based on sorting, the other based on hashing. So, which is faster? I couldn't find the answer, so I ran some experiments and…