Algebraic characterization of quasi-isometric spaces via the Higson compactification