Algorithms for precise and imprecise conditional probability assessments