We have developed a guided ptychography iterative engine (gPIE) algorithm that applies the concept of optimization to conventional ePIE (extended engine) approach. Instead accessing random or spiral trajectory among collected diffraction patterns implement phase-retrieval, gPIE guides searching direction through local minimum and minimizes cost function, which is difference between calculated i...