Art algorithm