Novel Distributed Algorithms for Intelligent Transportation Systems