trial and error
noun
°The process of finding a solution to a problem by trying many possible solutions and learning from mistakes until a way is found.
"Navigating by trial and error may get you there eventually, but using a map is faster."