Cooperative vehicular networks: An optimal and machine learning approach. (October 2022)