This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: false Boolean operators boolean values can either be true or false two variables p and q are boolean here are all their possible values according to a truth table p  q  p and q  p or q  t  t  t  t  t  f  f  t  f  t  f  t  f  f  f  f && is like an if then else : it only evaluates the part after it if the first result is trueabstract classes require a subclass to implement themfinal helps java to understand/compile the program easier. (as well as humans)square slice 9 3x3 squares: number the squares as such: 0 1 2 3 4 5 6 7 8 for example the 5th square would contain the location : (3,6) (3,7) (3,8) (4,6) (4,7) (4,8) (5,6) (5,7) (5,8)the starting squares for each of the nine squares are : (0,0) (0,3) (0,6) (0,0) (0,1) (0,2) (3,0) (3,3) (3,6) OR 3x (1,0) (1,1) (1,2) (6,0) (6,3) (6,6) (2,0) (2,1) (2,2)look at the first element of a square and then check its offsetseverything divisible by N is in column 0! [012][345][678]...
View
Full Document
 Spring '14
 StevenWatt
 Computer Science, Logic, 20 minutes, Boolean function, Logical connective

Click to edit the document details