Browsing by Keywords жадный алгоритм