The Quadratic Unconstrained Binary Optimization Problem: Theory, Algorithms, and Applications