codes about algorithm