What do Facebook Inc. co-founder Mark Zuckerberg and Tesla Inc. Chief Executive Elon Musk have in common?

Both are grappling with big problems that stem, at least in part, from putting faith in artificial intelligence systems that have underdelivered.

Zuckerberg is dealing with algorithms that are failing to stop the spread of harmful content; Musk with software that has yet to drive a car in the ways he has frequently promised.