We barely know which regions of the brain recognize shapes, let alone exactly how it does so, yet we've built machines that can do it.
A great example would be a greedy algorithm. It works for some problems but doesn't for some others. Take a simple enough problem and you get optimal solution. Push the algorithm to its limits and you don't even get a good solution. You don't have to understand how the best algorithms for a task work to come up with a greedy algorithm.