21

In my digital logic lecture today, my professor introduced a symbol code called Patty Code. I copied this table off the whiteboard:

     | Symbol | Binary | Odd Patty | Even Patty |
     |--------+--------+-----------+------------|
     | a      |     00 |       100 | 000        |
     | b      |     01 |       001 | 101        |
     | c      |     10 |       010 | 110        |
     | d      |     11 |       111 | 011        |

I did try Googling for both "patty code" and "patti code" with nothing substantial.

I asked my professor after lecture what is Patty Code. He said it's used occasionally. I asked him if it's another name for excess-3 or grey code, to which he said it is different to both of those codes.

Is my professor yanking my class's chain, or is this actually a real code?

EDIT

I want to leave record that the professor that gave me this misconception has a relatively strong accent. He is very knowledgeable and always gives me a satisfactory answer to EE related questions. So I finished that class, and am happy with the result. Hopefully nobody else has to Google this question!

Winny
  • 321
  • 3
  • 9

3 Answers3

60

Parity. The word is Parity. Hopefully it was just misheard.

W5VO
  • 18,303
  • 7
  • 63
  • 94
  • I'm 99% certain he wrote Patty on the board. (!) This looks like what he meant, though. – Winny Jan 31 '17 at 17:37
  • @EugeneSh. so there isn't a common "parity code", only the practice of adding parity to an existing code (say binary)? – Winny Jan 31 '17 at 17:40
  • 4
    @Winny I removed the comments as I've realized that I haven't recognized the encoding correctly. It is parity bit though, not parity code. I assume it's your prof handwriting issue.. – Eugene Sh. Jan 31 '17 at 17:41
  • 41
    Patty Code, Patty Code, EE man; Adding up bits, As fast as you can; To even or odd, Mark it with a bit; And you stop bad data glitches and won't have a fit! – Robert Columbia Jan 31 '17 at 21:30
  • 14
    Once there was a pirate captain whose shoulder-bird would often whistle and squawk out "Pieces of nine! Pieces of nine!" Turns out it was a parroty error. – Mason Wheeler Feb 01 '17 at 16:17
  • 1
    I had a calculus professor pronounce a Greek letter "btheda". And he drew something that looked like ó, but connected. I went and found a greek alphabet online and discovered it was `δ` - a lower case delta. Of course that's much better than my Operating Systems professor who was talking about forking child process, but her accent made her say, "... fook a child process." It was even worse when everyone started laughing and she tried even harder, but still pronounced it the same. – Wayne Werner Feb 01 '17 at 21:20
  • 1
    @Winny: Sometimes, people transcribe their accent. Or you get second generation usage by someone who learned it from someone who had it wrong. –  Feb 01 '17 at 23:36
  • 1
    Anyone who didn't read @RobertColumbia's comment in "the tune" is probably lying. – Aloha Feb 02 '17 at 08:03
  • I am laughing so hard at this thread! Ah! the days of professors with thick accents and poor handwriting! :) – Ryan Griggs Feb 02 '17 at 16:23
21

Yes, it's "parity". The code adds a third bit to make the number of ones either even or odd:

00 -> 100 = 1 one = odd
01 -> 001 = 1 one = odd
10 -> 010 = 1 one = odd
11 -> 111 = 3 ones = odd

00 -> 000 = 0 ones = even
01 -> 101 = 2 ones = even
10 -> 110 = 2 ones = even
11 -> 011 = 2 ones = even
Adam Haun
  • 21,331
  • 4
  • 50
  • 91
0

this is called parity code and the last bit is adding each time is called parity bit. for example:

last bit of even and odd is parity bit like if u have 0000000 then odd parity will be 00000001 and even parity will be 00000000. another example..if you have 1101001 then even parity will be 11010010 and odd parity will be 11010011 . it's based on count of 1. if count of 1 in the given bit is even then in even parity 0 will be added as a parity bit and 1 will be added in case of odd parity...and it will alter if number of 1 is odd in the given bit

hope you got your answer...and there's nothing like patty bit. and from your table i am pretty sure that it is parity not patty