Cannabis is now entering a similar inflection point, where algorithms may shape what gets grown, how it’s sold, and who wins in a rapidly growing industry.