Plog: Its Algorithms And Applications