Wednesday, September 19, 2012

English in CS Terms either...or vs neither...nor

I always had problems with either...or vs neither...nor. Being a CS major I decides to put this into terms I can understand.

either...or = (a not b) or (b not a)
neither...nor = (not a and not b)