Research Article

A Resource Allocation Scheme for Intelligent Tasks in Vehicular Networks

Algorithm 1

Gradient Descent algorithm of resource allocation criterion modeling.
1: Input: Initial parameters , , data set , step length , and threshold ;
2: Output: Parameters .
3: while or do
4:   do
5:      
6:      
7:   end for
8:   Compute the loss based on MSE:
9:      
10:      
11:   Compute the gradient of and :
12:      ,
13:   Gradient descent based update strategy:
14:      ,
15: end while