In this section, we discuss MagicPIG's algorithms, briefly introducing importance sampling and Locality-Sensitive hashing and how they can be related to attention approximation problems.