[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-488639-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-488639-en":130,"doc-similar-488639":182},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","cs-580-lecture-21-np-completeness","CS 580 - Lecture 21: NP-Completeness","","Lecture 21 from CS 580 (Algorithm Design and Analysis) focusing on NP-completeness and the relationship between NP and co-NP. It reviews midterm logistics and then develops core concepts: Circuit SAT and 3-SAT as NP-complete problems, templates for proving NP-completeness, and the structure of membership vs non-membership proofs. The lecture contrasts SAT with TAUTOLOGY and HAM-CYCLE with NO-HAM-CYCLE, introduces definitions for NP and co-NP, and discusses open questions such as whether NP equals co-NP.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/cs-580-lecture-21-np-completeness/488639/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/cs-580-lecture-21-np-completeness/488639.png","ImageObject",300,407,{"name":42,"@type":43},"Valentina","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-10-01",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",6,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problems are highlighted as NP-complete in the recap?","Question",{"text":63,"@type":64},"The lecture recap states that Circuit SAT is NP-Complete (and in NP), and that 3-SAT is NP-Complete. It also mentions a template approach for proving a problem is NP-Complete.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What is the “asymmetry of NP” discussed in the lecture?",{"text":68,"@type":64},"The lecture explains that for NP we only need short proofs for yes instances. It then asks how one would provide short proofs that a formula or graph property is not satisfied or not present.",{"name":70,"@type":61,"acceptedAnswer":71},"How does the lecture frame the NP vs co-NP question?",{"text":72,"@type":64},"It defines NP as problems with polynomial-time verifiers and co-NP as complements of NP decision problems. It emphasizes the fundamental question of whether NP equals co-NP and presents a theorem relating implications between these classes.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},488639,1792231598,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":55,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":115,"preview_urls":146},13056703020460,"https://ap-avatar.wpscdn.com/avatar/be000253dac470eee5d?_k=1778207105932848923","CS 580: Algorithm Design and Analysis  \nJeremiah Blocki Purdue University Spring 2018  \nHomework 5 due tonight at 11:59 PM (on Blackboard)  \nMidterm 2 on April 4th at 8PM (MATH 175) Practice Midterm Released Soon 3x5 Index Card (Double Sided)  \nMidterm 2  \n• When?  \n• April 4th from 8PM to 10PM (2 hours)  \n• Where?  \n• MATH 175  \n• What can I bring?  \n• 3x5 inch index card with your notes (double sided)  \n• No electronics (phones, computers, calculators etc…)  \nMidterm 2  \n• When?  \n• April 4th from 8PM to 10PM (2 hours)  \n• Where?  \n• MATH 175  \n• What material should I study?  \n• The midterm will cover recent topics more heavily  \n• Network Flow  \n• Max-Flow Min-Cut, Augmenting Paths, etc…  \n• Ford Fulkerson, Dinic’s Algorithm etc…  \n• Applications of Network Flow (e.g. , Maximum Bipartite Matching)  \n• Linear Programming  \n• NP-Completeness  \n• Polynomial time reductions, P, NP, NP-Hard, NP-Complete, coNP  \n• PSPACE (only basic questions)  \nRecap  \n•Circuit SAT is NP-Complete  \n• Circuit SAT is in NP  \n• For all decision problems X in NP we have (X 􀁤 P Circuit SAT )  \n• 3-SAT is NP-Complete  \n• Decision problems which have a polynomial time algorithm.  \n•Template for proving a problem Y is NP-Complete  \n8.9 co-NP and the Asymmetry of NP  \nAsymmetry of NP  \nAsymmetry of NP. We only need to have short proofs of yes instances.  \nEx 1. SAT vs. TAUTOLOGY.  \n􀂄 Can prove a CNF formula is satisfiable by giving such an assignment.  \n􀂄 How could we prove that a formula is not satisfiable?  \nEx 2. HAM-CYCLE vs . NO-HAM-CYCLE.  \n􀂄 Can prove a graph is Hamiltonian by giving such a Hamiltonian cycle.  \n􀂄 How could we prove that a graph is not Hamiltonian?  \nRemark. SAT is NP-complete and SAT 􀁻 P TAUTOLOGY , but how do we classify TAUTOLOGY?  \nnot even known to be in NP  \nNP and co-NP  \nNP. Decision problems for which there is a poly-time certifier.  \nEx. SAT, HAM-CYCLE, COMPOSITES.  \nDef. Given a decision problem X, its complement  X is the same problem with the yes and no answers reverse .  \nEx.  X  = { 0, 1, 4, 6, 8, 9, 10, 12, 14, 15,… } X = { 2, 3, 5, 7, 11, 13, 17, 23, 29,… }  \nco-NP. Complements of decision problems in NP.  \nEx. TAUTOLOGY, NO-HAM-CYCLE, PRIMES.  \nNP = co-NP ?  \nFundamental question. Does NP = co-NP?  \n􀂄 Do yes instances have succinct certificates iff no instances do?  \n􀂄 Consensus opinion: no .  \nTheorem. If NP 􀁺 co-NP, then P 􀁺 NP.  \nPf idea.  \n􀂄 P is closed under complementation.  \n􀂄 If P = NP, then NP is closed under complementation.  \n􀂄 In other words, NP = co-NP.  \n􀂄 This is the contrapositive of the theorem.  \nGood Characterizations  \nGood characterization. [Edmonds 1965] NP 􀀔 co-NP.  \n􀂄 If problem X is in both NP and co-NP, then:  \n– for yes instance, there is a succinct certificate  \n– for no instance, there is a succinct disqualifier  \n􀂄 Provides conceptual leverage for reasoning about a problem.  \nEx. Given a bipartite graph, is there a perfect matching.  \n􀂄 If yes, can exhibit a perfect matching.  \n􀂄 If no, can exhibit a set of nodes S such that |N(S)| \u003C |S| .  \nGood Characterizations  \n10  \nObservation. P 􀂎 NP 􀀔 co-NP.  \n􀂄 Proof of max-flow min-cut theorem led to stronger result that max-flow and min-cut are in P.  \n􀂄 Sometimes finding a good characterization seems easier than finding an efficient algorithm.  \nFundamental open question. Does P = NP 􀀔 co-NP?  \n􀂄 Mixed opinions.  \n􀂄 Many examples where problem found to have a non-trivial good characterization, but only years later discovered to bein P.  \n– linear programming [Khachiyan, 1979]  \n– primality testing [Agrawal-Kayal-Saxena, 2002]  \nFact. Factoring is in NP 􀀔 co-NP, but not known to be in P.  \nif poly-time algorithm for factoring, can break RSA cryptosystem","cbCaidAraGCia2SW","https://ap.wps.com/l/cbCaidAraGCia2SW","pdf",2106932,88,"English","# Midterm 2 Logistics\n## Study Scope and Allowed Materials\n# Recap of NP-Completeness\n## Circuit SAT in NP and NP-Complete\n## 3-SAT NP-Complete\n# Co-NP and Asymmetry of NP\n## Asymmetry of NP Proofs\n## SAT vs TAUTOLOGY\n## Hamiltonian Cycle vs No-Hamiltonian-Cycle\n# NP and co-NP Relationships\n## Definitions of NP and co-NP\n## Does NP = co-NP?\n# Good Characterizations\n## Edmonds 1965 Characterization\n## Examples and Observations\n# Fundamental Open Questions\n## Does P = NP iff P is characterized with co-NP","[{\"question\":\"What problems are highlighted as NP-complete in the recap?\",\"answer\":\"The lecture recap states that Circuit SAT is NP-Complete (and in NP), and that 3-SAT is NP-Complete. It also mentions a template approach for proving a problem is NP-Complete.\"},{\"question\":\"What is the “asymmetry of NP” discussed in the lecture?\",\"answer\":\"The lecture explains that for NP we only need short proofs for yes instances. It then asks how one would provide short proofs that a formula or graph property is not satisfied or not present.\"},{\"question\":\"How does the lecture frame the NP vs co-NP question?\",\"answer\":\"It defines NP as problems with polynomial-time verifiers and co-NP as complements of NP decision problems. It emphasizes the fundamental question of whether NP equals co-NP and presents a theorem relating implications between these classes.\"}]","CS 580 - Lecture 21: NP-Completeness | PDF",1790815286,222,[147,151,155,159,163,166,170,174,178],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/7eefc27a56baa3316bb1a8e804ae345f.webp",983,759,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e0370d6156acf2e2cc10b61532d65e48.webp",982,758,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c4d9c1b942c994faf1491792b50d6e9c.webp",981,757,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/fb746829cc34075b3b764465eb8290b9.webp",980,756,{"page_no":97,"url":164,"width":165,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/21f8dfe750997eff28e897c8635057d0.webp",979,{"page_no":55,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/50717fecafeb38351d672053ca3df7a1.webp",978,755,{"page_no":105,"url":171,"width":172,"height":173},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d7e132aa2931aab20d5170991aaed06d.webp",977,754,{"page_no":110,"url":175,"width":176,"height":177},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/fb917d5a07a52bd7dd5139bb07894e94.webp",976,753,{"page_no":115,"url":179,"width":180,"height":181},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/1c220f7709cf4a4ba8ad733080852b99.webp",975,752,{"list":183,"token":11},[184,190,196,202,208,214,221,228,234,240],{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":55,"category_name":29,"create_tm":189},272293,"SAT in AI - High Performance Search Methods with Applications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899772427/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796243099&Signature=mGU8fG19YBSTu9tNgrCQLaezWco%3D","sat-in-ai-high-performance-search-methods-with-applications",1789464186,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":110,"category_name":29,"create_tm":195},648278,"Visualization of Graphs - Lecture 8 - Hierarchical Layouts: Sugiyama Framework - Hierarchical Drawing - Motivation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229972337116/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796243099&Signature=gl4VLIqz2n6OpJnYTa5IRsUoz6Y%3D","visualization-of-graphs-lecture-8-hierarchical-layouts-sugiyama-framework-hierarchical-drawing-motivation",1792792942,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":97,"category_name":29,"create_tm":201},687581,"CS 45 - Lecture 6 - Command Line Environment","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262546/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796243099&Signature=XwD9Eo40LjCGnCR2yIfriPl8EkQ%3D","cs-45-lecture-6-command-line-environment",1794084186,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":30,"category_name":29,"create_tm":207},734740,"CS-D34DB4Q/CS-D43DB4Q/CS-D50DB4Q - Air Conditioner Service Information - Order No. MAC0603020C3","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230032939747/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796243099&Signature=jlb%2FpNH2wV6grcf1bG1uOF1elk8%3D","cs-d34db4qcs-d43db4qcs-d50db4q-air-conditioner-service-information-order-no-mac0603020c3",1795418063,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":97,"category_name":29,"create_tm":213},648300,"Lecture 20 - LODs - Fall 2004","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229972124419/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796243099&Signature=GAc4BkP9hStyYXnLJB5zKz3%2BHbQ%3D","lecture-20-lods-fall-2004",1792793021,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":29,"create_tm":220},489296,"SSUI-11-12-React - React for JavaScript","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926988879/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796243099&Signature=8zyu62QczbhHDwm1AX%2BsljI1AlU%3D","ssui-11-12-react-react-for-javascript",11,1790822029,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":226,"category_name":29,"create_tm":227},179737,"Deﬁning Security - Proving Security - Codes and Cryptography","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229877353379/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796243099&Signature=eOu1UzfYMI%2BArh7CXNW4hKq6rFU%3D","defining-security-proving-security-codes-and-cryptography",17,1788338056,{"doc_id":229,"doc_title":230,"file_type":137,"home_preview_img_url":231,"slug":232,"view_count":22,"category_name":29,"create_tm":233},760744,"Programming in Standard ML - Working Draft March 25, 2001","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044250511/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796243099&Signature=ShPHAeLZuYXiIulT%2B%2BR2APwjLeY%3D","programming-in-standard-ml-working-draft-march-25-2001",1795908965,{"doc_id":235,"doc_title":236,"file_type":137,"home_preview_img_url":237,"slug":238,"view_count":219,"category_name":29,"create_tm":239},561053,"AC/DC Drivers - Quasi-Resonant Control type DC/DC Converter IC - BM1Q00XFJ Series","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947637886/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796243099&Signature=A4LeOYpyO7k1lae3LvZ0VaZrvXA%3D","acdc-drivers-quasi-resonant-control-type-dcdc-converter-ic-bm1q00xfj-series",1791804864,{"doc_id":241,"doc_title":242,"file_type":137,"home_preview_img_url":243,"slug":244,"view_count":97,"category_name":29,"create_tm":245},685649,"Programming Languages - Week 6 CS 212 - Spring 2008","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000172748/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796243099&Signature=Uq%2BBSD4qgaGS9jMSoOh6NSvqxWo%3D","programming-languages-week-6-cs-212-spring-2008",1794016322]