A New Algorithm for Conformity and Its Application