AIMA.Core.Logic.Propositional.Algorithms.PLResolution.plResolution C# (CSharp) Method

plResolution() public method

public plResolution ( KnowledgeBase kb, String alpha ) : bool
kb KnowledgeBase
alpha String
return bool
        public bool plResolution(KnowledgeBase kb, String alpha)
        {
            return plResolution(kb, (Sentence)new PEParser().parse(alpha));
        }

Same methods

PLResolution::plResolution ( KnowledgeBase kb, Sentence alpha ) : bool
PLResolution::plResolution ( String kbs, String alphaString ) : bool

Usage Example

 public void testMultipleClauseResolution()
 {
     // test (and fix) suggested by Huy Dinh. Thanks Huy!
     PLResolution plr = new PLResolution();
     KnowledgeBase kb = new KnowledgeBase();
     String fact = "((B11 <=> (P12 OR P21)) AND (NOT B11))";
     kb.tell(fact);
     plr.plResolution(kb, "(B)");
 }