Nothing close enough? Start from a blank flowchart → Describe it in one paragraph.
How to use a flowchart template.
- 01Name the algorithm and its inputs
Start with 'Create a flowchart for binary search on a sorted array, inputs: array A and target T.'
- 02Describe the main loop or recursion
Explain the loop condition or base case — e.g. 'Repeat while low ≤ high; compute mid; compare A[mid] to T.' ChatDiagram maps this to a decision diamond with loop-back arrow.
- 03Specify return values and exit conditions
Describe what is returned when found, not found, or when recursion bottoms out. ChatDiagram adds these as terminator nodes.
- 04Annotate complexity (optional)
Add a note like 'O(log n) time' and ChatDiagram places it as a diagram annotation next to the loop.
- 05Export for assignment or review
Download as PNG to embed in your report, or share a link with your study group or code reviewer.
Questions about flowchart templates
How do I show a recursive algorithm in a flowchart?
Represent the recursive call as a predefined-process symbol (a rectangle with double vertical lines), labelled with the function name and new arguments. Show the base case as a decision diamond at the top of the flow. The return path from the recursive call flows back into the current call's result accumulation step.
What is the difference between a flowchart and pseudocode for an algorithm?
Pseudocode expresses logic in language-like text and is closer to code. A flowchart uses visual shapes and arrows to show the same logic, making branching, looping, and parallelism more immediately visible. Flowcharts are better for communicating to a mixed audience; pseudocode is better for transcribing directly into a programming language.
How do I draw a merge sort flowchart?
Start with a decision: 'Is the array length ≤ 1? Return array.' Otherwise, split into left and right halves (two predefined-process symbols for recursive calls), then flow into a merge step. The merge step compares head elements of both halves in a loop, appending the smaller to the result until one half is exhausted, then appends the remainder.
Can I use an algorithm flowchart in a university assignment?
Yes — most CS courses accept flowcharts as valid algorithm documentation alongside pseudocode. Check your style guide for preferred symbols (ISO 5807 is the international standard). ChatDiagram's output uses standard flowchart shapes and can be exported as a high-resolution PNG suitable for printed or digital submission.