This study turns the design and screen of new compounds into a computer integer crunch of the control arrays using a scaffold based Turing machine model. If small organic fragments are stored in a fragment database (FDB) in which each fragment is labelled by an integer in an array, the position and frequency of the integer control how the fragment clicks on a scaffold (template compound). This method can robustly screen a large number of candidate fragments for solar cells and other applications such as drug design with minimal human assistance. As a proof of concept, we consider terminal imide substituents on the core perylene diimide (PDI) to develop PDI derivatives capable of absorbing UV–vis light for solar cell applications. Time dependent-density functional theory (TD-DFT) method was employed in the calculations. When the imide substituents are electron donors such as azobenzene (DPI-7), they produce a larger bathochromic shift (Δλmax) from the core DPI band position. The UV–vis absorption transitions of these DPI derivatives have more charge transfer (CT) character, as the highest occupied molecular orbitals (HOMO) are located on the fragments rather than the core DPI region. Our study presents a robust and efficient high-performance organic dye screen design strategy, and further research in DPI-based solar cell design will focus on promoting the HOMO to LUMO transitions of the optical spectra.