NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we...

19
Outline NP vs coNP NP hard problems not in NP The Chromatic number problem 11/6/19 Theory of Computation - Fall'19 Lorenzo De Stefani 1 From Sipser Chapter 7

Transcript of NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we...

Page 1: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

Outline

•  NPvscoNP•  NPhardproblemsnotinNP•  TheChromaticnumberproblem

11/6/19 TheoryofComputation-Fall'19

LorenzoDeStefani 1

FromSipserChapter7

Page 2: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

Recall•  NPisclassoflanguagesthathavepolytimeverifiers–  NPcomesfromNondeterministicPolynomialtime–  Alternateformulation:nondeterministicTMacceptsdecidesthelanguageinpolynomialtime

•  ANon-DeterministicTuringMachine(NDTM)isapolynomial-timedeciderifithaltsonanyinputoneveryexecutionbranchinpolynomialtime

11/6/19 TheoryofComputation-Fall'19LorenzoDeStefani 2

Page 3: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

Recall•  ConsideralanguageLinNP•  Thenthereexistsapoly-timeNDTMdeciderDforL

•  Wait...canweusethistoconstructadeciderfor?

•  Waitwait...butthenand!!•  Waitwaitwait...ifthisworkswecandoitforanyLinNP–  SoNP=coNP?????

11/6/19 TheoryofComputation-Fall'19LorenzoDeStefani 3

D

Accept

Rejectw

D

Accept

Reject

ww Accept

Reject

L̄<latexit sha1_base64="2EbAoRaMenXPXwzb3QItfmVVRoQ=">AAAB7nicbVDLSsNAFL2pr1pfVZduBovgqiRWfOyKbly4qGAf0IYymU7aoZNJmJkIJeQj3LhQxK3f486/cZIGUeuBC4dz7uXee7yIM6Vt+9MqLS2vrK6V1ysbm1vbO9XdvY4KY0lom4Q8lD0PK8qZoG3NNKe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xl25YlftHGiWOFNSgSlM/sPtRSQJqdCEY6W6jh1rL8VSM8LpuOQmisaYDHGfdg0VOKTKS/Orx2jPKD0URNI8oVGu/pxIcajUKPRNMsR6oP56mfif1010cOKlTMSJpoJMFgUJRzpCWQWoxyQlmo8MwUQycysiAywx0aaoUl7CaYaj7y/PktZB1alVa9eHlfrZtI4i7MAu7IMDx1CHC2hAEwhIeIRneLEerCfr1XqbRAvWdGYbfsF6/wK4eZIj</latexit>

D’

Page 4: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

Soyay!!

11/6/19 TheoryofComputation-Fall'19LorenzoDeStefani 4

Page 5: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

Notquite!

11/6/19 TheoryofComputation-Fall'19LorenzoDeStefani 5

Page 6: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

Whatgoeswrong

11/6/19 TheoryofComputation-Fall'19LorenzoDeStefani 6

Canweactuallyconstructthisnon-deterministicpolynomialtimeTMdeciderD’for?•  Twopossibleapproaches:

1.  TakeDandinverttheuniqueacceptandrejectstates.•  Doesthisactuallywork?•  No!IngeneraltheconstructedmachineD1willnotcorrectlyrecognize

–  Theremaybeexception(someproblemsarebothNPandcoNP)

•  Example:givenLinNPand–  RunDonw:ingeneralsome(atleastone)executionbrancheswillendin

acceptandsomeinreject–  NowrunD1onw,–  ThebranchesthatwereacceptingforDwillrejectforD1andviceversa–  IftherewasonerejectbranchwhenrunningDthentherewillbean

acceptingbranchonD1–  ButthenD1willacceptw!Thisisanabsurdaseitheror

L̄<latexit sha1_base64="/CNvENZPOPLT00e+zFMRermS+34=">AAAB7nicbVDLSsNAFL2pr1pfUZduBovgqiRafOyKbly4qGAf0IYymU7aoZNJmJkIJfQj3LhQxK3f486/cZIGUeuBC4dz7uXee/yYM6Ud59MqLS2vrK6V1ysbm1vbO/buXltFiSS0RSIeya6PFeVM0JZmmtNuLCkOfU47/uQ68zsPVCoWiXs9jakX4pFgASNYG6nT97FMb2cDu+rUnBxokbgFqUKB5sD+6A8jkoRUaMKxUj3XibWXYqkZ4XRW6SeKxphM8Ij2DBU4pMpL83Nn6MgoQxRE0pTQKFd/TqQ4VGoa+qYzxHqs/nqZ+J/XS3Rw4aVMxImmgswXBQlHOkLZ72jIJCWaTw3BRDJzKyJjLDHRJqFKHsJlhrPvlxdJ+6Tmntbqd/Vq46qIowwHcAjH4MI5NOAGmtACAhN4hGd4sWLryXq13uatJauY2YdfsN6/AHo2j80=</latexit>

w 2 L̄<latexit sha1_base64="a6mRnm+AzWHlG0TuhBoLbLncwpM=">AAAB8nicbVDLSsNAFJ3UV62vqks3g0VwVRItPnZFNy5cVLAPSEKZTCft0MkkzNwoJfQz3LhQxK1f486/cZoG8XXgwuGce7n3niARXINtf1ilhcWl5ZXyamVtfWNzq7q909Fxqihr01jEqhcQzQSXrA0cBOslipEoEKwbjC9nfveOKc1jeQuThPkRGUoeckrASO69x6UXEJVdT/vVml23c+C/xClIDRVo9avv3iCmacQkUEG0dh07AT8jCjgVbFrxUs0SQsdkyFxDJYmY9rP85Ck+MMoAh7EyJQHn6veJjERaT6LAdEYERvq3NxP/89wUwjM/4zJJgUk6XxSmAkOMZ//jAVeMgpgYQqji5lZMR0QRCialSh7C+QwnXy//JZ2junNcb9w0as2LIo4y2kP76BA56BQ10RVqoTaiKEYP6Ak9W2A9Wi/W67y1ZBUzu+gHrLdPogORnw==</latexit>

w 2 L<latexit sha1_base64="KdpedO6KeMtcKlvAgsC42cgrV+A=">AAAB7XicbVDLSsNAFL2pr1pfVZduBovgqiRafOyKbly4qGAf0IYymU7asZOZMDNRSug/uHGhiFv/x51/Y5IGUeuBC4dz7uXee7yQM21s+9MqLCwuLa8UV0tr6xubW+XtnZaWkSK0SSSXquNhTTkTtGmY4bQTKooDj9O2N75M/fY9VZpJcWsmIXUDPBTMZwSbRGo99JhA1/1yxa7aGdA8cXJSgRyNfvmjN5AkCqgwhGOtu44dGjfGyjDC6bTUizQNMRnjIe0mVOCAajfOrp2ig0QZIF+qpIRBmfpzIsaB1pPASzoDbEb6r5eK/3ndyPhnbsxEGBkqyGyRH3FkJEpfRwOmKDF8khBMFEtuRWSEFSYmCaiUhXCe4uT75XnSOqo6x9XaTa1Sv8jjKMIe7MMhOHAKdbiCBjSBwB08wjO8WNJ6sl6tt1lrwcpnduEXrPcvMYmPBA==</latexit>

w 2 L<latexit sha1_base64="KdpedO6KeMtcKlvAgsC42cgrV+A=">AAAB7XicbVDLSsNAFL2pr1pfVZduBovgqiRafOyKbly4qGAf0IYymU7asZOZMDNRSug/uHGhiFv/x51/Y5IGUeuBC4dz7uXee7yQM21s+9MqLCwuLa8UV0tr6xubW+XtnZaWkSK0SSSXquNhTTkTtGmY4bQTKooDj9O2N75M/fY9VZpJcWsmIXUDPBTMZwSbRGo99JhA1/1yxa7aGdA8cXJSgRyNfvmjN5AkCqgwhGOtu44dGjfGyjDC6bTUizQNMRnjIe0mVOCAajfOrp2ig0QZIF+qpIRBmfpzIsaB1pPASzoDbEb6r5eK/3ndyPhnbsxEGBkqyGyRH3FkJEpfRwOmKDF8khBMFEtuRWSEFSYmCaiUhXCe4uT75XnSOqo6x9XaTa1Sv8jjKMIe7MMhOHAKdbiCBjSBwB08wjO8WNJ6sl6tt1lrwcpnduEXrPcvMYmPBA==</latexit>

Page 7: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

Whatgoeswrong

11/6/19 TheoryofComputation-Fall'19LorenzoDeStefani 7

Canweactuallyconstructthisnon-deterministicpolynomialtimeTMdeciderD’for?•  Twopossibleapproaches:

2. JustinvertthefinaldecisionofD.Thatis,acceptifatleastonebranchacceptorrejectotherwise•  Doesthisactuallywork?•  No!SuchamachineisNOTaNDTMbydefinition•  Inordertodosowewouldneedtoevaluateallpossiblenon-deterministic

branches!

L̄<latexit sha1_base64="/CNvENZPOPLT00e+zFMRermS+34=">AAAB7nicbVDLSsNAFL2pr1pfUZduBovgqiRafOyKbly4qGAf0IYymU7aoZNJmJkIJfQj3LhQxK3f486/cZIGUeuBC4dz7uXee/yYM6Ud59MqLS2vrK6V1ysbm1vbO/buXltFiSS0RSIeya6PFeVM0JZmmtNuLCkOfU47/uQ68zsPVCoWiXs9jakX4pFgASNYG6nT97FMb2cDu+rUnBxokbgFqUKB5sD+6A8jkoRUaMKxUj3XibWXYqkZ4XRW6SeKxphM8Ij2DBU4pMpL83Nn6MgoQxRE0pTQKFd/TqQ4VGoa+qYzxHqs/nqZ+J/XS3Rw4aVMxImmgswXBQlHOkLZ72jIJCWaTw3BRDJzKyJjLDHRJqFKHsJlhrPvlxdJ+6Tmntbqd/Vq46qIowwHcAjH4MI5NOAGmtACAhN4hGd4sWLryXq13uatJauY2YdfsN6/AHo2j80=</latexit>

•  ThisisnotaNDTM!•  EquivalentDTMwouldrunin

exponentialtime

Page 8: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

NPandcoNP•  ThesearethewaythatwecanapproachconstructingD1and

theybothfail.•  OurcurrentknowledgeisthatisnotclearwhetherNP=coNP•  Thisdiscussionshouldhighlightwhyitisingeneralbetterto

reasononNPandcoNPintermsofcertificates!

11/6/19 TheoryofComputation-Fall'19LorenzoDeStefani 8

P<latexit sha1_base64="5tsa+7MfOU5B0wZ6R6OOKoTg+TU=">AAAB6HicbVDLSsNAFL2pr1pfVZdugkVwVRIrPnZFNy5bsA9og0ymN+3YySTMTIQS+gVuXCji1k9y5984aYOo9cDA4ZxzmXuPH3OmtON8WoWl5ZXVteJ6aWNza3unvLvXVlEiKbZoxCPZ9YlCzgS2NNMcu7FEEvocO/74OvM7DygVi8StnsTohWQoWMAo0UZqNu7KFafqzGAvEjcnFchh8h/9QUSTEIWmnCjVc51YeymRmlGO01I/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QUpFnBgi8OyjKGGukW52uDugimDDJpYgrKjd1cUjpBA2tp5KXsJFhtPvk+dJ+6juH9ePb09qjcuijjLswT4cgg9n0IBraEILMIzgEZ7hxeHOk/PqvM2iJaeY2YVfcN6/AOgGjkk=</latexit>

Page 9: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

NP-hardproblemsnotinNP•  BydefinitionsNP-HardproblemsareNP-Completebutarenot

necessarilyNP•  WewilldiscussaNP-hardlanguageforwhichwecannotsay

whetheritisNP•  ChromaticnumberofaGraphGistheminimumvalueksuch

thatGisk-colorable•  CN={<G,k>|kisG’schromaticnumber}

–  Careful!Weareinterestedintheminimumvaluekforwhichthegraphiscolorable

•  WeshallclaimthatCNisNOTinNPunlessNP=coNP

11/7/19 TheoryofComputation-Fall'19LorenzoDeStefani 9

Page 10: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

•  Lasttimewesawthat3SAT≤p3COLORING•  Thereductionproceedsgivenaninputbooleanexpression

ΦtocreateagraphGΦ

11/7/19 TheoryofComputation-Fall'19LorenzoDeStefani 10

CNisNP-hard

Page 11: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

Observations–  Gφismustrequireatleast3colors

•  Asbyconstructionwehavesometriangles–  φissatisfiableimpliesGφis3-colorable->Itschromaticnumberis3

•  foreachclauseCj=(a∨b∨c)atleastoneofa,b,ciscoloredTrue.OR-gadgetforCjcanbe3-coloredsuchthatoutputisTrue.

–  Gφis3-colorableimpliesφissatisfiable•  consideranyclauseCj=(a∨b∨c).itcannotbethatalla,b,careFalse.Ifso,outputofOR-gadgetforCjhastobecoloredFalsebutoutputisconnectedtoBaseandFalseandhencethegraphwouldnotbe3-colorable

–  ThisimpliesthatifφisNOTsatisfiablethenGφisnot3-colorable•  Itrequiresatleastfourcolors!

–  TheconstructionissuchthatφisNOTsatisfiablethenGφis4-colorable->Itschromaticnumberis4

11/7/19 TheoryofComputation-Fall'19LorenzoDeStefani 11

Page 12: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

•  Weusethesamereductionfunctionusedwhenshowing

that3SAT≤p3COLinordertoshowthat3SAT≤pCN•  Thereductionproceedsgivenaninputbooleanexpression

ΦtocreateagraphGΦ

•  WethencreateaninstanceoftheCNproblemas<GΦ,3>•  Byconstruction:–  ΦissatisfiableimpliesGΦ’schromaticnumberis3–  ΦisNOTsatisfiableimpliesGΦ’schromaticnumberis4

•  Asshownbeforethereductionrequirespolynomialtime•  Hencewehave3SAT≤pCNàCNisNP-Hard!

11/7/19 TheoryofComputation-Fall'19LorenzoDeStefani 12

CNisNP-hard

� 2 3SAT () < G�, 3 >2 CN<latexit sha1_base64="WQgRco85n/IxZ/FudPV4d0dGuV4=">AAACDnicbZDLSgMxGIUz9VbrbdSlm2ApuJAytcULiFS70JVU7A3aUjJppg3NZIYkI5ShT+DGV3HjQhG3rt35Nmamg6j1QODjnD8k/7F9RqWyrE8jNTe/sLiUXs6srK6tb5ibWw3pBQKTOvaYJ1o2koRRTuqKKkZaviDItRlp2qNKlDfviJDU4zU19knXRQNOHYqR0lbPzHX8IYUdymHx9rymwXHg6WUvjOzJfvEsSirXPTNr5a1YcBYKCWRBomrP/Oj0PRy4hCvMkJTtguWrboiEopiRSaYTSOIjPEID0tbIkUtkN4zXmcCcdvrQ8YQ+XMHY/XkjRK6UY9fWky5SQ/k3i8z/snagnONuSLkfKMLx9CEnYFB5MOoG9qkgWLGxBoQF1X+FeIgEwko3mIlLOIl0+L3yLDQO8oVivnRTypYvkjrSYAfsgj1QAEegDK5AFdQBBvfgETyDF+PBeDJejbfpaMpI7myDXzLevwDxTppJ</latexit>

Page 13: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

•  RecallthatweshowedthatalanguageLisNP-Completeiffits

complementLiscoNP-complete–  3SATNP-CompleteiscoNP-complete

•  Weusethesamereductionfunctionusedwhenshowingthat3SAT≤p3COLinordertoshowthat3SAT≤pCN

•  ThereductionproceedsgivenaninputBooleanexpressionΦtocreateagraphGΦ

•  WethencreateaninstanceoftheCNproblemas<GΦ,4>–  ΦisNOTsatisfiableimpliesGΦ’schromaticnumberis4–  ΦissatisfiableimpliesGΦ’schromaticnumberis3

•  Asshownbeforethereductionrequirespolynomialtime•  Hencewehave3SAT≤pCNàCNiscoNP-Hard!

11/7/19 TheoryofComputation-Fall'19LorenzoDeStefani 13

CNiscoNP-hard

� 2 3SAT () < G�, 4 >2 CN<latexit sha1_base64="l3aPqaDEUsrcZBCDJsuTANB7QaY=">AAACGXicbVBLSwMxGMz6rPVV9eglWAQPUra2+ACRag96kop9QXcp2TTbhmazS5IVytK/4cW/4sWDIh715L8xu11ErQOBYWa+JN84AaNSmeanMTM7N7+wmFnKLq+srq3nNjab0g8FJg3sM1+0HSQJo5w0FFWMtANBkOcw0nKG1dhv3REhqc/rahQQ20N9Tl2KkdJSN2dawYBCi3Jo+ToXXxOVbs/rY625Ljy97EZxYrxfPotD1etuLm8WzARwmhRTkgcpat3cu9XzcegRrjBDUnaKZqDsCAlFMSPjrBVKEiA8RH3S0ZQjj0g7SjYbw12t9KDrC324gon6cyJCnpQjz9FJD6mB/OvF4n9eJ1TusR1RHoSKcDx5yA0ZVD6Ma4I9KghWbKQJwoLqv0I8QAJhpcvMJiWcxDj8XnmaNA8KxVKhfFPOVy7SOjJgG+yAPVAER6ACrkANNAAG9+ARPIMX48F4Ml6Nt0l0xkhntsAvGB9fcNqfcA==</latexit>

() 3SAT<latexit sha1_base64="VsKcV0Aepmh1UfJQwMQ88XGW/kQ=">AAAB/XicbVDJTsMwFHTKVsoWlhsXiwqJU5XQiuVW4MKxiG5SE1WO67RWnTiyHaQSVfwKFw4gxJX/4Mbf4KQRAspIlkYz8+zn8SJGpbKsT6OwsLi0vFJcLa2tb2xumds7bcljgUkLc8ZF10OSMBqSlqKKkW4kCAo8Rjre+Cr1O3dESMrDpppExA3QMKQ+xUhpqW/uOdT3ocN1Jr0iqd5eNKd9s2xVrAxwntg5KYMcjb754Qw4jgMSKsyQlD3bipSbIKEoZmRacmJJIoTHaEh6moYoINJNsu2n8FArA+hzoU+oYKb+nEhQIOUk8HQyQGok/3qp+J/Xi5V/5iY0jGJFQjx7yI8ZVBymVcABFQQrNtEEYUH1rhCPkEBY6cJKWQnnKU6+vzxP2scVu1qp3dTK9cu8jiLYBwfgCNjgFNTBNWiAFsDgHjyCZ/BiPBhPxqvxNosWjHxmF/yC8f4FLKaVLw==</latexit>

Page 14: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

Recap•  SofarweshowedthatCNisbothNP-hardandcoNP-hard

•  WeneverarguedwhetherCNisinNPorcoNP!

•  Thisisactuallyaveryhardquestion•  InthefollowingwewillshowitistiedtoPvsNPandtoNPvscoNP!

11/7/19 TheoryofComputation-Fall'19LorenzoDeStefani 14

Page 15: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

GraphK-coloring•  Recall:AgraphGisk-colorableifitsverticescanbepartitionedinkpartsV1,V2,...Vksuchthatanypairofnodeconnectedbyanedgeareinadifferentpart–  Ispossibletocolortheverticesofthegraphsothatallneighborverticesareassigneddifferentcolors

•  Givenagraph,thegoalofthek-coloringproblemistodecidewhetherthegraphiskcolorable

•  Equivalentlygiven<G>,thegoalistodecideifitbelongstothelanguage

11/7/19 TheoryofComputation-Fall'19LorenzoDeStefani 15

kCOL = {< G, k > |G is k-colorable}<latexit sha1_base64="ZyhuZPkQPPbWXkSI1Y9kfWU3Bzc=">AAACEXicbVDJSgNBEO2JW4xb1KOXxiDkoGGiwQVUgjnEg2AEs0AmhJ5OJ2lmpbtGDGN+wYu/4sWDIl69efNv7EwGUeODhserqlfVz/RtLkHXP7XE1PTM7FxyPrWwuLS8kl5dq0kvEJRVqWd7omESyWzusipwsFnDF4w4ps3qplUa1es3TEjuudcw8FnLIT2XdzkloKR2OmuVLi/wCTbC4/K2dXpXNoDdQoi5xNZOZE+U1dAYttMZPadHwJMkH5MMilFppz+MjkcDh7lAbSJlM6/70AqJAE6VY8oIJPMJtUiPNRV1icNkK4xWDvGWUjq46wn1XMCR+nMiJI6UA8dUnQ6BvvxbG4n/1ZoBdA9bIXf9AJhLx4u6gY3Bw6N4cIcLRsEeKEKo4OpWTPtEEAoqxFQUwtEI+99fniS13Vx+L1e4KmSKZ3EcSbSBNlEW5dEBKqJzVEFVRNE9ekTP6EV70J60V+1t3JrQ4pl19Ava+xe475yE</latexit>

Page 16: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

kCOLORisNP

– Certificate:foreachnodeanassignmentofoneofthekcolors

– Verifier:foreachedge(u,v)checkthatthereareassigneddifferentcolors

– Runsinpolynomial(linear)timewithrespecttothenumberofedges!

11/7/19 16TheoryofComputation-Fall'19LorenzoDeStefani

Page 17: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

IfP=NPàCNP•  P=NPandà•  Thatis,thereexistsapolytimealgorithmAtoverifyk-colorabilityforagivenk

•  ConsiderthefollowingalgorithmforCN–  GivenG=(V,E)–  Fori=1,2,…|V|

•  RunAonininput<G,i>•  HaltforthefirstisuchthatGisi-colorable

•  Polynomialruntime–  atmost|V|loops–  EachlooprequirestimeP(|V|)since

•  Thenwewouldhave

11/7/19 TheoryofComputation-Fall'19LorenzoDeStefani 17

2<latexit sha1_base64="OGutpjBGqXjN2B7YqOyu423H7bU=">AAAB6nicbVDLSsNAFL2pr1pfUZduBovgqiRafOyKblxWtA9oQ5lMJ+3QySTMTIQS+gluXCji1i9y5984SYOo9cCFwzn3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YoDj9OON26kfueBSsVCcasnEXUDPBTMZwRrI92NG9dXfSZQ875csat2BjRPnJxUIIfJf/QHIYkDKjThWKmeY0faTbDUjHA6LfVjRSNMxnhIe4YKHFDlJtnCU3RglAHyQ2me0ChTf04kOFBqEngmGWA9Un+9VPzP68XaP3MTJqJYU0FmH/kxRzpE6fVowCQlmk8MwUQysysiIywx0aajUlbCeYqT75PnSfuo6hxXaze1Sv0ir6MIe7APh+DAKdThEprQAgIBPMIzvFjSerJerbdZtGDlM7vwC9b7F+rwj/g=</latexit>

kCOL 2 P<latexit sha1_base64="fV/gJqsxAlP0PdbFdR2q3PdVkto=">AAAB8HicbVDLSsNAFL2pr1pfVZduBovgqiRafOyK3bgQrGAf0gaZTCft0MkkzEyEEvoVblwo4tbPceffOEmDqPXAwOGcc5l7jxdxprRtf1qFhcWl5ZXiamltfWNzq7y901ZhLAltkZCHsuthRTkTtKWZ5rQbSYoDj9OON26kfueBSsVCcasnEXUDPBTMZwRrI92NG9dXfSZQ875csat2BjRPnJxUIIfJf/QHIYkDKjThWKmeY0faTbDUjHA6LfVjRSNMxnhIe4YKHFDlJtnCU3RglAHyQ2me0ChTf04kOFBqEngmGWA9Un+9VPzP68XaP3MTJqJYU0FmH/kxRzpE6fVowCQlmk8MwUQysysiIywx0aajUlbCeYqT75PnSfuo6hxXaze1Sv0ir6MIe7APh+DAKdThEprQAgIBPMIzvFjSerJerbdZtGDlM7vwC9b7F+rwj/g=</latexit>

CN 2 P<latexit sha1_base64="KsCAhyxZfwYFoVWQeAGyQbf73ZU=">AAAB7nicbVDLSsNAFL2pr1pfVZduBovgqiRafOyK3biSCqYttEEm00k7dDIJMxOhhH6EGxeKuPV73Pk3TtIgaj0wcDjnXObe48ecKW3bn1ZpaXllda28XtnY3Nreqe7udVSUSEJdEvFI9nysKGeCupppTnuxpDj0Oe36k1bmdx+oVCwSd3oaUy/EI8ECRrA2Urd1M2ACte+rNbtu50CLxClIDQqY/MdgGJEkpEITjpXqO3asvRRLzQins8ogUTTGZIJHtG+owCFVXpqvO0NHRhmiIJLmCY1y9edEikOlpqFvkiHWY/XXy8T/vH6igwsvZSJONBVk/lGQcKQjlN2OhkxSovnUEEwkM7siMsYSE20aquQlXGY4+z55kXRO6s5pvXHbqDWvijrKcACHcAwOnEMTrqENLhCYwCM8w4sVW0/Wq/U2j5asYmYffsF6/wKEtI8s</latexit>

Page 18: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

IfCNNPàNP=coNPToprovetheclaimweshowthatifCNNPthen:

1.  2. 

•  Weprovidetheprooffor2.:ForanyLcoNP,ifCNNPthenLNP–  ToproveitweconstructaNDTMNthatdecidesLasfollows:–  SinceCNNPthereexistaNDTMMdecidingCNinpolynomialtime–  OninputwforL:

1.  ReducetoancoNP-Hardlanguage,suchasCN–  OnesuchreductionexisitsforanyLgiventhedefinitionofcoNP-Hardness–  ForinputwobtaininstanceofCN<G,k>

2.  UseMdecidingCNinpolynomialtimeon<G,k>3.  Naccepts/rejectsifMdoes

–  NdecidesLinpolynomialtimeàLNP

11/7/19 TheoryofComputation-Fall'19LorenzoDeStefani 18

2<latexit sha1_base64="OGutpjBGqXjN2B7YqOyu423H7bU=">AAAB6nicbVDLSsNAFL2pr1pfUZduBovgqiRafOyKblxWtA9oQ5lMJ+3QySTMTIQS+gluXCji1i9y5984SYOo9cCFwzn3cu89fsyZ0o7zaZWWlldW18rrlY3Nre0de3evraJEEtoiEY9k18eKciZoSzPNaTeWFIc+px1/cp35nQcqFYvEvZ7G1AvxSLCAEayNdNdnYmBXnZqTAy0StyBVKNAc2B/9YUSSkApNOFaq5zqx9lIsNSOczir9RNEYkwke0Z6hAodUeWl+6gwdGWWIgkiaEhrl6s+JFIdKTUPfdIZYj9VfLxP/83qJDi68lIk40VSQ+aIg4UhHKPsbDZmkRPOpIZhIZm5FZIwlJtqkU8lDuMxw9v3yImmf1NzTWv22Xm1cFXGU4QAO4RhcOIcG3EATW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+w3r8AfAKTow==</latexit>

2<latexit sha1_base64="OGutpjBGqXjN2B7YqOyu423H7bU=">AAAB6nicbVDLSsNAFL2pr1pfUZduBovgqiRafOyKblxWtA9oQ5lMJ+3QySTMTIQS+gluXCji1i9y5984SYOo9cCFwzn3cu89fsyZ0o7zaZWWlldW18rrlY3Nre0de3evraJEEtoiEY9k18eKciZoSzPNaTeWFIc+px1/cp35nQcqFYvEvZ7G1AvxSLCAEayNdNdnYmBXnZqTAy0StyBVKNAc2B/9YUSSkApNOFaq5zqx9lIsNSOczir9RNEYkwke0Z6hAodUeWl+6gwdGWWIgkiaEhrl6s+JFIdKTUPfdIZYj9VfLxP/83qJDi68lIk40VSQ+aIg4UhHKPsbDZmkRPOpIZhIZm5FZIwlJtqkU8lDuMxw9v3yImmf1NzTWv22Xm1cFXGU4QAO4RhcOIcG3EATWkBgBI/wDC8Wt56sV+tt3lqyipl9+AXr/QtlyI4D</latexit>

2<latexit sha1_base64="OGutpjBGqXjN2B7YqOyu423H7bU=">AAAB6nicbVDLSsNAFL2pr1pfUZduBovgqiRafOyKblxWtA9oQ5lMJ+3QySTMTIQS+gluXCji1i9y5984SYOo9cCFwzn3cu89fsyZ0o7zaZWWlldW18rrlY3Nre0de3evraJEEtoiEY9k18eKciZoSzPNaTeWFIc+px1/cp35nQcqFYvEvZ7G1AvxSLCAEayNdNdnYmBXnZqTAy0StyBVKNAc2B/9YUSSkApNOFaq5zqx9lIsNSOczir9RNEYkwke0Z6hAodUeWl+6gwdGWWIgkiaEhrl6s+JFIdKTUPfdIZYj9VfLxP/83qJDi68lIk40VSQ+aIg4UhHKPsbDZmkRPOpIZhIZm5FZIwlJtqkU8lDuMxw9v3yImmf1NzTWv22Xm1cFXGU4QAO4RhcOIcG3EATWkBgBI/wDC8Wt56sV+tt3lqyipl9+AXr/QtlyI4D</latexit>

2<latexit sha1_base64="OGutpjBGqXjN2B7YqOyu423H7bU=">AAAB6nicbVDLSsNAFL2pr1pfUZduBovgqiRafOyKblxWtA9oQ5lMJ+3QySTMTIQS+gluXCji1i9y5984SYOo9cCFwzn3cu89fsyZ0o7zaZWWlldW18rrlY3Nre0de3evraJEEtoiEY9k18eKciZoSzPNaTeWFIc+px1/cp35nQcqFYvEvZ7G1AvxSLCAEayNdNdnYmBXnZqTAy0StyBVKNAc2B/9YUSSkApNOFaq5zqx9lIsNSOczir9RNEYkwke0Z6hAodUeWl+6gwdGWWIgkiaEhrl6s+JFIdKTUPfdIZYj9VfLxP/83qJDi68lIk40VSQ+aIg4UhHKPsbDZmkRPOpIZhIZm5FZIwlJtqkU8lDuMxw9v3yImmf1NzTWv22Xm1cFXGU4QAO4RhcOIcG3EATWkBgBI/wDC8Wt56sV+tt3lqyipl9+AXr/QtlyI4D</latexit>

2<latexit sha1_base64="OGutpjBGqXjN2B7YqOyu423H7bU=">AAAB6nicbVDLSsNAFL2pr1pfUZduBovgqiRafOyKblxWtA9oQ5lMJ+3QySTMTIQS+gluXCji1i9y5984SYOo9cCFwzn3cu89fsyZ0o7zaZWWlldW18rrlY3Nre0de3evraJEEtoiEY9k18eKciZoSzPNaTeWFIc+px1/cp35nQcqFYvEvZ7G1AvxSLCAEayNdNdnYmBXnZqTAy0StyBVKNAc2B/9YUSSkApNOFaq5zqx9lIsNSOczir9RNEYkwke0Z6hAodUeWl+6gwdGWWIgkiaEhrl6s+JFIdKTUPfdIZYj9VfLxP/83qJDi68lIk40VSQ+aIg4UhHKPsbDZmkRPOpIZhIZm5FZIwlJtqkU8lDuMxw9v3yImmf1NzTWv22Xm1cFXGU4QAO4RhcOIcG3EATWkBgBI/wDC8Wt56sV+tt3lqyipl9+AXr/QtlyI4D</latexit>

2<latexit sha1_base64="OGutpjBGqXjN2B7YqOyu423H7bU=">AAAB6nicbVDLSsNAFL2pr1pfUZduBovgqiRafOyKblxWtA9oQ5lMJ+3QySTMTIQS+gluXCji1i9y5984SYOo9cCFwzn3cu89fsyZ0o7zaZWWlldW18rrlY3Nre0de3evraJEEtoiEY9k18eKciZoSzPNaTeWFIc+px1/cp35nQcqFYvEvZ7G1AvxSLCAEayNdNdnYmBXnZqTAy0StyBVKNAc2B/9YUSSkApNOFaq5zqx9lIsNSOczir9RNEYkwke0Z6hAodUeWl+6gwdGWWIgkiaEhrl6s+JFIdKTUPfdIZYj9VfLxP/83qJDi68lIk40VSQ+aIg4UhHKPsbDZmkRPOpIZhIZm5FZIwlJtqkU8lDuMxw9v3yImmf1NzTWv22Xm1cFXGU4QAO4RhcOIcG3EATWkBgBI/wDC8Wt56sV+tt3lqyipl9+AXr/QtlyI4D</latexit>

Page 19: NP vs coNP NP hard problems not in NP The Chromatic ......NP and coNP • These are the way that we can approach constructing D1 and they both fail. • Our current knowledge is that

WhatifNP=coNP!

11/7/19 TheoryofComputation-Fall'19LorenzoDeStefani 19

P<latexit sha1_base64="5tsa+7MfOU5B0wZ6R6OOKoTg+TU=">AAAB6HicbVDLSsNAFL2pr1pfVZdugkVwVRIrPnZFNy5bsA9og0ymN+3YySTMTIQS+gVuXCji1k9y5984aYOo9cDA4ZxzmXuPH3OmtON8WoWl5ZXVteJ6aWNza3unvLvXVlEiKbZoxCPZ9YlCzgS2NNMcu7FEEvocO/74OvM7DygVi8StnsTohWQoWMAo0UZqNu7KFafqzGAvEjcnFchh8h/9QUSTEIWmnCjVc51YeymRmlGO01I/URgTOiZD7BkqSIjKS2eLTu0jowzsIJLmCW3P1J8TKQmVmoS+SYZEj9RfLxP/83qJDi68lIk40Sjo/KMg4baO7Oxqe8AkUs0nhhAqmdnVpiMiCdWmm9KshMsMZ98nL5L2SdWtVWvN00r9Kq+jCAdwCMfgwjnU4QYa0AIKCI/wDC/WvfVkvVpv82jBymf24Res9y/CYY0L</latexit>

NP = coNP<latexit sha1_base64="1i6wTgNpq/NmYFkfoVtjqBHHVmU=">AAAB7nicbVDLSgMxFL3js9ZX1aWbYBFclRktPhZC0Y2rUsE+oB0kk2ba0EwyJBmhDP0INy4Ucev3uPNvTKeDqPVA4HDOueTeE8ScaeO6n87C4tLyymphrbi+sbm1XdrZbWmZKEKbRHKpOgHWlDNBm4YZTjuxojgKOG0Ho+up336gSjMp7sw4pn6EB4KFjGBjpXa9cUlkvXFfKrsVNwOaJ15OypDD5j96fUmSiApDONa667mx8VOsDCOcToq9RNMYkxEe0K6lAkdU+2m27gQdWqWPQqnsEwZl6s+JFEdaj6PAJiNshvqvNxX/87qJCc/9lIk4MVSQ2UdhwpGRaHo76jNFieFjSzBRzO6KyBArTIxtqJiVcDHF6ffJ86R1XPFOKtXbarl2lddRgH04gCPw4AxqcAMNaAKBETzCM7w4sfPkvDpvs+iCk8/swS8471+nfo9D</latexit>

NP-HardandcoNP-Hard

•  Careful!WedidnotprovethatNP=coNP!•  WejustarguedthatifCNwasNPthatwouldimplythatNP=coNP

•  Challengingopenresearchquestion!