Skip to main content
. 2016 Jul 1;16(7):1023. doi: 10.3390/s16071023
Algorithm 1 CMNC
Input:
    data content δ,
    the channel set C={C1,C2,,CN},
    the class set ω=ω1,ω2,,ωM
Output:
    the transmission strategy in the millimeter-meter network
  1:  for the sensor node DSD do
  2:   for the sensor node data x do
  3:       extract data content δ from the sensor node
  4:   end for
  5:  end for
  6:  for the sensor node DSD do
  7:   for the data content δ do
  8:       compare to the training set (ϑ,L) using Equations (18), (19), (20)
  9:   end for
10:  end for
11:  calculate the combination of the BPA and the belief function of the sensor node DS by Equations (24), (25)
12:  for the sensor node DSD do
13:   for the data content δ do
14:       get the maximize belief function as the basis of assigning class by Equation (28)
15:   end for
16:  end for
17:  get the class label ε(DS) by Equation (30)
18:  for the class set ω=ω1,ω2,,ωM do
19:   for the channel set C={C1,C2,,CN} do
20:       compare the number of channels and classes
21:       if M>N then
22:             running the high response priority assignment method
23:             calculate the Priority of the class by using Equation (32)
24:       else
25:             sequentially assigned to channel
26:       end if
27:   end for
28:  end for
29:  assign the channel to the corresponding class
30:  for each class ω do
31:   for the sensor node D belongs to the same class do
32:       get the neighborList
33:       if neighborList[μ,ν] = 1 then
34:             some data have been gotten
35:       else
36:             some data have not been gotten
37:       end if
38:   end for
39:  end for
40:  obtain the data to be transferred x1,,xn
41:  generate a random linear encoding package Xi=ςx=ς1x1+ς2x2+,,+ςnxn
42:  for each class ω do
43:   for the sensor node D belong to the same class do
44:       transmit the linear encoding package
45:       if the receiver gets enough Xi then
46:             decoding package and gets the original data xi
47:       else
48:             continue to receive Xi
49:       end if
50:   end for
51:  end for