貪欲どんよくほうであれば
don yoku hōdeareba

Noun
Da Copula

The "-eba" conditional form ("if/when…") of 貪欲法

1. If greedy method; Were greedy method

Ba Conditional
Mathematics