Circuit satisfiability problem

The circuit on the left is satisfiable but the circuit on the right is not.

In theoretical computer science, the circuit satisfiability problem (also known as CIRCUIT-SAT, CircuitSAT, CSAT, etc.) is the decision problem of determining whether a given Boolean circuit has an assignment of its inputs that makes the output true.[1] In other words, it asks whether the inputs to a given Boolean circuit can be consistently set to 1 or 0 such that the circuit outputs 1. If that is the case, the circuit is called satisfiable. Otherwise, the circuit is called unsatisfiable. In the figure to the right, the left circuit can be satisfied by setting both inputs to be 1, but the right circuit is unsatisfiable.

CircuitSAT is closely related to Boolean satisfiability problem (SAT), and likewise, has been proven to be NP-complete.[2] It is a prototypical NP-complete problem; the Cook–Levin theorem is sometimes proved on CircuitSAT instead of on the SAT, and then CircuitSAT can be reduced to the other satisfiability problems to prove their NP-completeness.[1][3] The satisfiability of a circuit containing arbitrary binary gates can be decided in time .[4]

Proof of NP-completeness

Given a circuit and a satisfying set of inputs, one can compute the output of each gate in constant time. Hence, the output of the circuit is verifiable in polynomial time. Thus Circuit SAT belongs to complexity class NP. To show NP-hardness, it is possible to construct a reduction from 3SAT to Circuit SAT.

Suppose the original 3SAT formula has variables , and operators (AND, OR, NOT) . Design a circuit such that it has an input corresponding to every variable and a gate corresponding to every operator. Connect the gates according to the 3SAT formula. For instance, if the 3SAT formula is the circuit will have 3 inputs, one AND, one OR, and one NOT gate. The input corresponding to will be inverted before sending to an AND gate with and the output of the AND gate will be sent to an OR gate with

Notice that the 3SAT formula is equivalent to the circuit designed above, hence their output is same for same input. Hence, If the 3SAT formula has a satisfying assignment, then the corresponding circuit will output 1, and vice versa. So, this is a valid reduction, and Circuit SAT is NP-hard.

This completes the proof that Circuit SAT is NP-Complete.

Planar Circuit SAT

Assume that we are given a planar Boolean circuit (i.e. a Boolean circuit whose underlying graph is planar) containing only NAND gates with exactly two inputs. Planar Circuit SAT is the decision problem of determining whether this circuit has an assignment of its inputs that makes the output true. This problem is NP-complete. Moreover, if the restrictions are changed so that any gate in the circuit is a NOR gate, the resulting problem remains NP-complete.[5]

Circuit UNSAT

Circuit UNSAT is the decision problem of determining whether a given Boolean circuit outputs false for all possible assignments of its inputs. This is the complement of the Circuit SAT problem, and is therefore Co-NP-complete.

Reduction from CircuitSAT

Reduction from CircuitSAT or its variants can be used to show NP-hardness of certain problems, and provides us with an alternative to dual-rail and binary logic reductions. The gadgets that such a reduction needs to construct are:

  • A wire gadget. This gadget simulates the wires in the circuit.
  • A split gadget. This gadget guarantees that all the output wires have the same value as the input wire.
  • Gadgets simulating the gates of the circuit.
  • A True terminator gadget. This gadget is used to force the output of the entire circuit to be True.
  • A turn gadget. This gadget allows us to redirect wires in the right direction as needed.
  • A crossover gadget. This gadget allows us to have two wires cross each other without interacting.

Minesweeper Inference Problem

This problem asks whether it is possible to locate all the bombs given a Minesweeper board. It has been proven to be CoNP-Complete via a reduction from Circuit UNSAT problem.[6] The gadgets constructed for this reduction are: wire, split, AND and NOT gates and terminator.[7] There are three crucial observations regarding these gadgets. First, the split gadget can also be used as the NOT gadget and the turn gadget. Second, constructing AND and NOT gadgets is sufficient, because together they can simulate the universal NAND gate. Finally, since three NANDs can be composed intersection-free to implement an XOR, and since XOR is enough to build a crossover,[8] this gives us the needed crossover gadget.

The Tseytin transformation

The Tseytin transformation is a straightforward reduction from Circuit-SAT to SAT. The transformation is easy to describe if the circuit is wholly constructed out of 2-input NAND gates (a functionally-complete set of Boolean operators): assign every net in the circuit a variable, then for each NAND gate, construct the conjunctive normal form clauses (v1v3) ∧ (v2v3) ∧ (¬v1 ∨ ¬v2 ∨ ¬v3), where v1 and v2 are the inputs to the NAND gate and v3 is the output. These clauses completely describe the relationship between the three variables. Conjoining the clauses from all the gates with an additional clause constraining the circuit's output variable to be true completes the reduction; an assignment of the variables satisfying all of the constraints exists if and only if the original circuit is satisfiable, and any solution is a solution to the original problem of finding inputs that make the circuit output 1.[1][9] The converse—that SAT is reducible to Circuit-SAT—follows trivially by rewriting the Boolean formula as a circuit and solving it.

See also

References

  1. ^ a b c David Mix Barrington and Alexis Maciel (July 5, 2000). "Lecture 7: NP-Complete Problems" (PDF).
  2. ^ Luca Trevisan (November 29, 2001). "Notes for Lecture 23: NP-completeness of Circuit-SAT" (PDF). Archived from the original (PDF) on December 26, 2011. Retrieved February 4, 2012.
  3. ^ See also, for example, the informal proof given in Scott Aaronson's lecture notes from his course Quantum Computing Since Democritus.
  4. ^ Sergey Nurk (December 1, 2009). "An O(2^{0.4058m}) upper bound for Circuit SAT".
  5. ^ "Algorithmic Lower Bounds: Fun With Hardness Proofs at MIT" (PDF).
  6. ^ Scott, Allan; Stege, Ulrike; van Rooij, Iris (2011-12-01). "Minesweeper May Not Be NP-Complete but Is Hard Nonetheless". The Mathematical Intelligencer. 33 (4): 5–17. doi:10.1007/s00283-011-9256-x. ISSN 1866-7414. S2CID 122506352.
  7. ^ Kaye, Richard (Mar 2000). "Minesweeper is NP-complete" (PDF). The Mathematical Intelligencer. 22 (2): 9–15. doi:10.1007/BF03025367. S2CID 122435790.
  8. ^ see File:Crossover xor.gif and File:Crossover nand.pdf
  9. ^ Marques-Silva, João P. and Luís Guerra e Silva (1999). "Algorithms for Satisfiability in Combinational Circuits Based on Backtrack Search and Recursive Learning" (PDF). Archived from the original (PDF) on 2022-07-02.

Read other articles:

Disambiguazione – Puškin rimanda qui. Se stai cercando altri significati, vedi Puškin (disambigua). «La nostra memoria serba sin dall'infanzia un nome allegro: Puškin. Questo nome, questo suono, riempie molti giorni della nostra vita. Accanto ai cupi nomi degli imperatori, dei condottieri, di inventori di armi per uccidere, di torturatori e di martiri, si affaccia un nome, Puškin. [Egli] seppe portare con allegria e gentilezza il suo fardello, sebbene il suo ruolo di poeta non fos…

  「俄亥俄」重定向至此。关于其他用法,请见「俄亥俄 (消歧义)」。 俄亥俄州 美國联邦州State of Ohio 州旗州徽綽號:七葉果之州地图中高亮部分为俄亥俄州坐标:38°27'N-41°58'N, 80°32'W-84°49'W国家 美國加入聯邦1803年3月1日,在1953年8月7日追溯頒定(第17个加入联邦)首府哥倫布(及最大城市)政府 • 州长(英语:List of Governors of {{{Name}}}]]) • …

Ohio railroad (1885–1926) Cincinnati, Lebanon and Northern RailwayCL&N (red)OverviewHeadquartersCincinnati, Ohio, U.S.[1]LocaleMiami Valley, OhioDates of operation1885–1926SuccessorPennsylvania RailroadTechnicalTrack gauge4 ft 8+1⁄2 in (1,435 mm) standard gaugePrevious gaugeoriginally 3 ft (914 mm) The Cincinnati, Lebanon and Northern Railway (CL&N) was a local passenger and freight-carrying railroad in the southwestern part of the U.S.…

Motorway in the Netherlands This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: A7 motorway Netherlands – news · newspapers · books · scholar · JSTOR (November 2016) (Learn how and when to remove this message) You can help expand this article with text translated from the corresponding article in Dutch. Click …

Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article ou cette section d'article est rédigé entièrement ou presque entièrement à partir d'une seule source (décembre 2022). N'hésitez pas à modifier cet article pour améliorer sa vérifiabilité en apportant de nouvelles références dans des notes de bas de page. Société genevoise des chemins de fer à voie étroite Situation Genève et département de la Haute-Savoie Type Ligne de tramways Entrée…

  此條目介紹的是来自威斯康星州的美国参议员(1947–57)。关于其他叫麦卡锡的人,请见「麦卡锡」。 本條目存在以下問題,請協助改善本條目或在討論頁針對議題發表看法。 此條目需要补充更多来源。 (2018年11月7日)请协助補充多方面可靠来源以改善这篇条目,无法查证的内容可能會因為异议提出而被移除。致使用者:请搜索一下条目的标题(来源搜索:约瑟夫·雷蒙…

لوار أتلانتيك الكلاسيكي 2021 تفاصيل السباقسلسلة21. لوار أتلانتيك الكلاسيكيمنافسةطواف أوروبا للدراجات 2021 1.1‏التاريخ2 أكتوبر 2021المسافات182٫8 كمالبلد فرنسانقطة البدايةLa Haie-Fouassière [الإنجليزية]‏نقطة النهايةLa Haie-Fouassière [الإنجليزية]‏المنصةالفائز ألان ريو [الإنجليزي…

Bupati PinrangPetahanaAhmadi AkilPenjabatsejak 2 Mei 2024KediamanRumah Jabatan BupatiMasa jabatan5 tahunDibentuk1960Pejabat pertamaA. Makkoelaoe Berikut ini adalah daftar bupati Pinrang yang menjabat sejak pembentukannya pada tahun 1960. No Potret Bupati Mulai menjabat Akhir menjabat Partai Wakil Bupati Periode Ref. 1 Andi Makkoelaoe 1960 1964   N/A 1 [1][2] 2 Andi Gazaling 1964 1965   N/A 2 3 Andi Dewang 15 Juli 1965 24 Desember 1968   N/A 3 [3] 4 Dau…

جوزيبي مارتينيلي معلومات شخصية الميلاد 11 مارس 1955 (العمر 69 سنة)إيطاليا الجنسية  إيطاليا الحياة العملية المهنة دراج،  ومدير رياضي  [لغات أخرى]‏  نوع السباق سباق الدراجات على الطريق بلد الرياضة إيطاليا  آخر تحديث 1 يناير 2014 تعديل مصدري - تعديل   جوزيبي مارتين…

 本表是動態列表,或許永遠不會完結。歡迎您參考可靠來源來查漏補缺。 潛伏於中華民國國軍中的中共間諜列表收錄根據公開資料來源,曾潛伏於中華民國國軍、被中國共產黨聲稱或承認,或者遭中華民國政府調查審判,為中華人民共和國和中國人民解放軍進行間諜行為的人物。以下列表以現今可查知時間為準,正確的間諜活動或洩漏機密時間可能早於或晚於以下所歸類…

ميركوسور الكتلة التجارية هي نوع من اتفاق بين الحكومات، في كثير من الأحيان جزء من منظمة حكومية دولية إقليمية، حيث الحواجز أمام التجارة الإقليمية (التعريفات الجمركية والحواجز غير الجمركية) يتم تخفيضها أو الغائها بين الدول المشاركة.[1][2][3] الوصف واحدة من التكتلات ا…

Le sol de Mars photographié par Viking 1 en 1975. Burns Cliff, affleurement rocheux à l'intérieur du cratère Endurance photographié par le rover MER Opportunity en 2004. Auto-portrait de Curiosity pris en 2012 dans le cratère Gale. L’exploration du système martien, qui comprend la planète Mars et ses deux satellites, tient une place particulièrement importante dans les programmes scientifiques d'exploration du Système solaire des principales puissances spatiales. En 2016, plus de qua…

35th season in franchise history Dickerson rushing the ball during an away game against the Cleveland Browns in 1987. 1987 Indianapolis Colts seasonOwnerRobert IrsayGeneral managerJim IrsayHead coachRon MeyerHome fieldHoosier DomeLocal radioWIBC–AM 1070ResultsRecord9–6Division place1st AFC EastPlayoff finishLost Divisional Playoffs(at Browns) 21–38Pro Bowlers 6[1] K Dean BiasucciLB Duane BickettRB Eric DickersonC Ray DonaldsonOT Chris HintonOG Ron Solt AP All-Pros 6[2]…

British peer The Earl of Gosford in 1897, dressed as Robert de la Marck. Archibald Brabazon Sparrow Acheson, 4th Earl of Gosford, KP (19 August 1841[1] – 11 April 1922) was a British peer. The son of Archibald Acheson, 3rd Earl of Gosford, he was born at Worlingham Hall, Suffolk,[2] in 1841, and educated at Harrow School; and succeeded to the earldom upon the death of his father in 1864.[3] He was Lord of the Bedchamber to Edward VII, Prince of Wales between 1886 and 19…

Suburb of Canberra, Australia ActonCanberra, Australian Capital TerritoryNewActon Precinct in April 2022ActonCoordinates35°16′46″S 149°07′10″E / 35.27944°S 149.11944°E / -35.27944; 149.11944Population2,848 (2021 census)[1]Established1928Postcode(s)2601Elevation567 m (1,860 ft)Location 2 km (1 mi) W of Canberra CBD 17 km (11 mi) WNW of Queanbeyan 87 km (54 mi) SW of Goulburn 286 km (178 mi) SW …

American Philatelic Research LibraryLocation100 Match Factory PlaceBellefonte, Pennsylvania 16823, United StatesTypeResearch libraryEstablishedOctober 1968; 55 years ago (1968-10)Other informationWebsitewww.stamplibrary.org The American Philatelic Research Library (APRL), based in Bellefonte, Pennsylvania, is the largest public philatelic library in the United States. The library serves the needs of the members of the American Philatelic Society (APS) – with which it is …

This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (August 2017) (Learn how and when to remove this message) David PhilipsonBorn(1862-08-09)August 9, 1862Wabash, IndianaDiedJune 29, 1949(1949-06-29) (aged 86)Boston, MassachusettsResting placeUnited Jewish CemeteryEducation Hebrew Union College University of Cincinnati Occupation(s)Rabbi, writer David Philipson …

Tasso di natalità per paese (2023) Il tasso di natalità è il rapporto tra il numero delle nascite in una comunità o in un popolo durante un periodo di tempo e la quantità della popolazione media dello stesso periodo[1]. Il tasso di natalità misura la frequenza delle nascite di una popolazione in un arco di tempo (normalmente un anno) ed è calcolato come rapporto tra il numero dei nati in quel periodo e la popolazione media. Indice 1 Descrizione 2 In politica 3 Controllo della popo…

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (يونيو 2019) فيليب بلاي   معلومات شخصية الميلاد أبريل 1960 (64 سنة)  مواطنة فرنسا  الحياة العملية المدرسة الأم معهد باريس للموسيقىجامعة نيس صوفيا أنتيبوليس  المهنة ع…

مجموعة الصواريخ جنود يمنيين على منصة الإطلاق الصواريخ الدولة الجمهورية اليمنية جزء من من القوات المسلحة اليمنية المقر الرئيسي العاصمة صنعاء تعديل مصدري - تعديل   مجموعة ألوية الصواريخ يعود تاريخه إلى السبعينيات في عهد جمهورية اليمن الديمقراطية الشعبية (اليمن الجنوبي)، ح…