Algorithmic Patterns

Where code meets art.

Functional Programs

Declarative Logic

Recursive Recipes

More Algorithmic Patterns

Here are some algorithmic patterns for the modern age:

Quine

A program that outputs its own source code.

            #!/usr/bin/env python
            def quine(s):
                return quine.__code__
            print(quine.__code__)
        

Explore more algorithmic patterns: