Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
7  
I've heard of party code like bring a bottle etc.. – Andy aka yesterday
1  
@MatthewWhited Change the instructor because of handwriting? Really? I hope you don't take this approach when choosing a doctor.. – Eugene Sh. yesterday
4  
Yes, he doesn’t have the required skills to be instructing if people cannot understand him. – Matthew Whited yesterday
3  
Next lecture I'll ask him if he means parity code, and refer to the text :) – Winny yesterday
1  
It wouldn't surprise me if he introduced the concept of parity at the next lecture, and simply presented it under a pseudonym to see who figured it out (or who was paying attention if the answer is given away in the text or other assignment). – Adam Davis yesterday
up vote 51 down vote accepted

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

share|improve this answer
    
I'm 99% certain he wrote Patty on the board. (!) This looks like what he meant, though. – Winny yesterday
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. yesterday
32  
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 yesterday
8  
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 20 hours ago
1  
@Winny: Sometimes, people transcribe their accent. Or you get second generation usage by someone who learned it from someone who had it wrong. – Hurkyl 12 hours ago

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
share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.