Examples of python algorithms