greedy algorithm
RU: жадный алгоритм
An algorithm that builds a solution one piece at a time, taking the locally best choice at each step and never reconsidering it, with no backtracking. It is simple and fast, but only correct when that choice can be proven safe.