E. Trapezium
Find the segments pairs that have the same slope, then I do not know what to do.
G. Binary Operation
For all 16 conditions, find some features.
Example :
A=0, B=0, C=0, D=0 : All zeros
A=0, B=0, C=0, D=1 : AND
A=0, B=1, C=1, D=1 : OR
A=0, B=1, C=1, D=0 : XOR
A=1, B=0, C=0, D=1 : XNOR
A=1, B=1, C=1, D=1 : All ones
Then… what about other 10 conditions? I do not know.