简体   繁体   English

将任何命题公式转换为CNF格式的复杂性

[英]Complexity for converting any propositional formula to CNF format

What is the complexity for converting any propositional formula to CNF format? 将任何命题公式转换为CNF格式的复杂性是多少? Is it an NP-complete problem? 这是NP完全问题吗?

The standard algorithm to transform a general Well-Formed Formula to an equivalent CNF has an exponential run time , since in the worst case a n-clauses WFF is equivalento to a 2^n-clauses CNF . 将一般Well-Formed公式转换为等效 CNF的标准算法具有指数运行时间 ,因为在最坏的情况下,n子句WFF等效于2 ^ n子句CNF

However, you can transform in polynomial time an arbitrary boolean formula into a CNF that is not stricty equivalent, but satisfable only if the boolean formula is satisfable . 但是,您可以在多项式时间内将任意布尔公式转换为非严格等效的CNF ,但仅在布尔公式可满足时才可满足 This is the standard reduction used to prove that 3CNF is NP-complete, givent that the more general SAT is NP-complete. 这是用于证明3CNF是NP完全的标准还原,使得更一般的SAT是NP完全的。 See here . 看到这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM