algorithm and flowchart for beginners - Search