Skip to main content
. 2024 Mar 12;26(3):250. doi: 10.3390/e26030250
Algorithm A1 Adapted YWSC Scheme (N,K,M)
  • procedure 

    PLACEMENT(W1,,WN)

  •   1:

    Apply Algorithm 1 MAN Uncoded Symmetric Placement Scheme(N,K,M,W[N])

  • end procedure 

     

  • procedure 

    DELIVERY(R,DR)

  •   2:

    r|DR|

  •   3:

    tKM/N

  •   4:

    Assign the users, who do not request, a demand that is the most requested by the requesters and has DKDR

  •   5:

    𝒢  {G[K]:|G|=t}

  •   6:

    for  n[N]  do

  •   7:

    for  G 𝒢 do

  •   8:

      Divide sub-file Wn,G into t disjoint sub-pieces (Wn,G,i:iG) with equal size

  •   9:

    end for

  • 10:

    end for

  • 11:

    for  iK  do

  • 12:

    Ne(DK{i}) the number of distinct elements in DK{i}

  • 13:

    Ui¯{u1i,...,uNe(DK{i})i} from R as much as possible

  • 14:

    for EiK{i}:|Ei|=t users do

  • 15:

      if  EiUi¯==  then

  • 16:

       continue

  • 17:

      else if EiKR then

  • 18:

       continue

  • 19:

      else

  • 20:

       User i transmits YEii=kEiWdk,{Ei{i}}{k},i

  • 21:

      end if

  • 22:

    end for

  • 23:

    end for

  • end procedure