Describe and analyze an algorithm to determine