Get the latest tech news

Binary Search Tree with SIMD


Recently, I've been looking at cache friendly algorithm for common data structures like trees, tries, ... One such algorithm kept coming up to mind and that's why I decided to implement it in Go. You can find the paper describing the algorithm here.

And if you take time to understand how this maps back to the binary tree, you will notice that we are storing parent-children triangles. With this, we can now apply SIMD operations on both the parent and the children in order to either dtermine if the data we are looking for is in the triangle, or if we should continue our search. If you would like to have more details on the data structure implemented, or if you have feedback on this article, let me know in the comments section!

Get the Android app

Or read this on Hacker News

Read more on:

Photo of SIMD

SIMD

Photo of Binary Search Tree

Binary Search Tree

Related news:

News photo

Using SIMD for Parallel Processing in Rust

News photo

SIMD-accelerated computer vision on a $2 microcontroller

News photo

Scan HTML faster with SIMD instructions – Chrome edition