This document discusses programmable logic arrays (PLAs) and programmable array logics (PALs). It describes how PLAs and PALs are implemented using programmable connections and compares their advantages over traditional gate-based designs. The document also discusses optimizations for PLA/PAL hardware cost and delay, including minimizing the number of product terms and balancing the number of transistors driven by each literal to reduce delay. It proposes using a cost function that considers both hardware cost and delay during the optimization process.