activity algorithm simulation 4330548