Skip to main content
. 2023 Jan 3;23(1):531. doi: 10.3390/s23010531
Algorithm 3 Change the Pseudonym
  • 1:

    procedureShould_I_Change_my_Pseudonym()

  • 2:

        if ((the speed variation, i.e., the difference between Max_speed and Min_speed), is ≥Speed_var_thr) AND (the time while vi was silent is ≥Min_silent_time) AND (the time while vi was silent is ≤Max_silent_time) AND (the distance while vi was silent is ≥Min_silent_dist) AND (the set My_set of vi is ≥ the threshold k_prv) AND (the Set_novelty_ratio value is ≥10%)) then

  • 3:

               Change_the_Pseudonym();                                      ▹ and reinitialize the regular pseudonym change timer

  • 4:

        else if (the time while vi was silent is >Max_silent_time) then

                Force v_i to leave the silence state in order to ensure efficient pseudonym changes and achieve the vivacity and assiduity requirements.

  • 5:

        end if

  • 6:

    end procedure