algorithm picture