Attiyah's bsearch