Skip to main content
. 2019 Jan 24;19(3):487. doi: 10.3390/s19030487
Algorithm 2: IP Marks matching algorithm
Input: (i) Pseudo Position Ln (ii) Marks sequence W
Output: (i) Current design Ln
/*Marks sequence W={w0,w1,w2,,wn}, Current design Ln means that the location of the information for embedding the Marks */
/*Compare the size of Ln and W*/
1: gets(Ln); gets(W);
/*Traversing each element of the collection Ln and the collection W*/
2: for (i=0; L[i]!=’\0’&&W[i]!=’\0’; i++);
3: if (L[i]W[i])
4: break;
5: else if L[i]=W[i]
6: Embed W[i] into Location L[i] in Ln;
7: Store L[i] in Ln;
8: End If
9: End For
10: Output Ln;