Skip to main content
. 2023 May 12;23(10):4699. doi: 10.3390/s23104699
Algorithm 1 Message Classification on Type
  • Input:  

    msg={msgi1,msgi2,,msgin,msgj1,msgj2,,msgjn,,msgkm},

  •            TypeList={TypeList1TypeList2, …, TypeListn}.

  • Output: 

    EvalList={SumList1,SumList2,,SumListn}.

  • 1:

    Step 1: Message classification

  • 2:

    for each messagekmmsg do

  • 3:

       Check the type of message (there is this field in the message);

  • 4:

       Then classify according to the type of messagekm;

  • 5:

       Add messagekm to TypeListn;

  • 6:

       if msg == NULL then

  • 7:

          Stop classifying message;

  • 8:

       end if

  • 9:

    end for

  • 10:

    //TypeList is a two-dimensional list;

  • 11:

    Step 2: Message summary list generation

  • 12:

    for each TypeListjTypeList do

  • 13:

        generate a summary of TypeListj. i.e., TextRank Algorithm.

  • 14:

        add the summary to SumListi;

  • 15:

        Generate EvalList={SumList1,SumList2,,SumListn};

  • 16:

    end for

  • 17:

    send EvalList to all other RSUs.