The first algorithm is
BaseRank, which is an algorithm on the knowledge base that computes the base rank. The lower the rank for the statement the more
defeasible it is, and infinite ranks are classical statements, true in every valuation in every ranked model of the knowledge base.
Rational Closure is an alternative syntactic defenition of minimal ranked entailment, whereby it takes in a defeasible query a |~ b and returns
true if it is entailed by the knowledge base.
The above algorithm essentially works by checking if there exists an exceptional subset of the knowledge base such that the query is entailed. If the antecedent (ancestor formula) of the lowest base is exceptional (does not entail the knowledge base for any valuation) then the lowest rank is removed.
Both algorithms were described
here, along with a thorough explanation of the KLM framework for those interested.