New York City's entire taxi fleet -- nearly 13,250 vehicles -- could be replaced by just 3,000 ridesharing cars if these services were optimized, according to a new study from the Computer Science and Artificial Intelligence Laboratory (CSAIL) at the Massachusetts Institute of Technology (MIT). CSAIL's Daniela Rus and her team created an algorithm that crunched data from three million New York City taxi rides, calculating routes and schedules for two-person, four-person, and ten-person vehicles. The results showed that 3,000 four-person cabs could help handle 98 percent of the City's demand (with a waiting time of 2.3 minutes), while 3,000 two-person cabs could handle 94 percent and just 2,000 ten-person vehicles could handle 95 percent. "To our knowledge, this is the first time that scientists have been able to experimentally quantify the trade-off between fleet size, capacity, waiting time, travel delay, and operational costs for a range of vehicles, from taxis to vans and shuttles," Rus said in a press release. "What's more, the system is particularly suited to autonomous cars, since it can continuously reroute vehicles based on real-time requests."