Funds run by computers that follow rules set by humans account for 35% of America's stockmarket, 60% of institutional equity assets and 60% of trading activity. New artificial-intelligence programs are also writing their own investing rules, in ways their human masters only partly understand. Industries from pizza-delivery to Hollywood are being changed by technology, but finance is unique because it can exert voting power over firms, redistribute wealth and cause mayhem in the economy.