Research Article

Multiaccess Edge Computing-Based Simulation as a Service for 5G Mobile Applications: A Case Study of Tollgate Selection for Autonomous Vehicles

Algorithm 2

Find the optimal buffer
Parameters: , , , , , , C(self-determination condition).
INITIALIZATION:
1: set
2: set
BUFFER DECISION:
3: do
  LOOP:
4:  for to do
5:   If &&
   || then
6:     If
7:      set
8:      set
9:     End if
10:    End if
11:   End for
12:  set
13:  set
14:  If then
15:   set
16:  End if
17:  If then
18:   set
19:  End if
20: while
FINALIZATION:
21: return result