Research Article

Reversible Fragile Watermarking Scheme for Relational Database Based on Prediction-Error Expansion

Algorithm 3

Encode_Bit
(1)lsd = GetLSD (ti.Aj)
(2)T = GetMSD (ti.Aj) //Most significant digits of ti.Aj
(3)e = lsd−hi //Prediction error
(4) = 2∗e + Wj[i] //expanded prediction error
(5)newval =  + hi //New value of the LSD
(6)newval = To_number (T, newval)
(7)//Update the watermarked attribute value
(8)ti·Aj = newval