Is there an algorithm for the perfect biryani?

A new book argues that cooking, at its heart, is chemistry. And algorithms are the key to it.