# Visustin - Sample flow charts

This page presents sample flow charts created by Visustin, the flow chart generator software. All diagrams were created programmatically with no human adjustment.

## Algorithms flowcharted

Below you can find short algorithms flowcharted. You get to see the same code as a flow chart, UML style activity diagram, Visio diagram and a PDF version. See how much easier it is to understand the code by watching the flow chart rather than by reading the source alone.

Algorithm | HTML | Visio | Description | Language | ||
---|---|---|---|---|---|---|

Flow | UML | Flow | Flow | |||

DaysIn | UML | HTML | Visio | Get number of days in a month | VB.NET | |

IsValid | UML | HTML | Visio | Determine if date is valid | VB.NET | |

Roman | UML | HTML | Visio | Convert integer to roman number | VB.NET | |

Binary GCD | UML | HTML | Visio | Get greatest common divisor with shifts | C | |

Obfuscated maze | UML | HTML | Visio | Generate maze with obfuscated code | C | |

Counting | UML | HTML | Visio | Sort number array | C | |

Selection sort | UML | HTML | Visio | Sort number array | C | |

Spread | UML | HTML | Visio | Sort array | C | |

Quicksort | UML | HTML | Visio | Sort number array (recursive) | C | |

Quicksort, iterative | UML | HTML | Visio | Sort number array (not recursive) | C (pseudo) | |

Uniform binary search | UML | HTML | Visio | Find number in array | C | |

Check credit card | UML | HTML | Visio | Validate credit card numbers | JavaScript |

Tip: Try printing a PDF file to see how Visustin charts look on your printer.

## Algorithms flowcharted and explained

Short articles explaining with flow charts how simple algorithms work.

Algorithm | Description | Language |
---|---|---|

EscapeHTML | Escape special characters for HTML | VB6 |

Prime numbers | List prime numbers in range | Perl |

## Greatest Common Denominator flow charts

This example flowcharts the well-known Greatest Common Denominator (GCD) algorithm in various programming languages.

If you're interested, compare GCD in C to the Binary GCD algorithm earlier on this page. The algorithms perform the same task, but look different. The binary algorithm seems more complex, don't you think? There are more loops in the binary algorithm as it plays with the simple bit shift operators (>>). That's the where the "binary" comes in its name. The "regular" GCD algorithm manages with a single loop using the more powerful modulo operator (%).

## Flow charts in Word format

Visustin can export flow charts to MS Word documents. It is best suited for relatively small flow charts because of the limited page size in Word. For larger charts PDF is more suitable, as you can easily zoom a PDF in and out.

- GCD in Visual Basic doc
- DaysInMonth doc
- Check credit card doc