title: How to calculate the parity bit of the following bit sequence?
body: <p>The sequence is:</p>
  
  <p>00111011</p>
  
  <p>How do i calculate the parity bit for the above sequence? This question is from Databases- The complete book by jeffery ullman (<strong>Exercise 13.4.1 a</strong>)</p>
  
  <p>I am not sure what the answer to this question should be.</p>
  
  <p>Is it as simple as :</p>
  
  <p>i)Even Parity : the number of 1s is 5 (odd) so just append a 1 and the answer is : 001110111</p>
  
  <p>ii)Odd Parity: likewise , just append 0: 001110110</p>
  
  <p>OR:</p>
  
  <p>am i on a totally wrong path here? I looked up on the net but could not find anything concrete . Also, the text for the above question in the text book is not clear.</p>