0-1 search