Solution for some search problems