1. A circuit comprising: a crossbar lattice having an input nanowire, an output nanowire and a plurality of memristors, wherein each memristor in the plurality of memristors is assigned one of: a flow state and a no-flow state in accordance with a Boolean formula such that the circuit provides at least one sneak path allowing current to flow between the input nanowire and the output nanowire when the Boolean formula is logically true.