NP-Complete Reductions: Clique, Independent Set, Vertex Cover, and Dominating Set

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024

ความคิดเห็น • 32

  • @furkan-sahin
    @furkan-sahin 2 ปีที่แล้ว +4

    Thank you for painting such a clear picture of something I struggled to understand!

    • @kells9k
      @kells9k ปีที่แล้ว

      baby doll

    • @mixmix862
      @mixmix862 ปีที่แล้ว

      @@kells9k ok

  • @ropopal1094
    @ropopal1094 2 ปีที่แล้ว +3

    man you are smart and funny and explain well! thank you so much for your free videos and your great attitude. i declare you as my official teacher

    • @davidtaylor2809
      @davidtaylor2809 2 ปีที่แล้ว

      Thanks. Meanwhile, some of my actual students hunt around for different videos because they don't like my style...

    • @katchie2888
      @katchie2888 2 ปีที่แล้ว

      @@davidtaylor2809 different strokes for different folks. thanks for the vid!

  • @andersimenes1937
    @andersimenes1937 3 ปีที่แล้ว +1

    Great video! Thanks.

  • @cagan8
    @cagan8 2 ปีที่แล้ว +2

    Any approximate time in the future you are thinking of covering Approximation Algorithms?

    • @AlgorithmswithAttitude
      @AlgorithmswithAttitude  2 ปีที่แล้ว +1

      No immediate plans, but for sure one introductory algorithm would fit nicely into the NP playlist. It is a good suggestion, I will think about it.

  • @laolun2278
    @laolun2278 3 ปีที่แล้ว +3

    I'm not sure which part of my comprehension went wrong, but what makes vertex cover different from dominating set? They seem pretty much the same.

    • @pyetwi
      @pyetwi 3 ปีที่แล้ว +3

      Dominating set deals with the coverage of vertices while vertex cover deals with the coverage of edges.

    • @Rievax17
      @Rievax17 2 ปีที่แล้ว

      It’s like every vertex cover is a dominating set but not all dominating sets are vertex covers

    • @klaotische5701
      @klaotische5701 ปีที่แล้ว

      @@Rievax17 Yes, that's the exact reason why the reduction is only one side.

  • @user-il9vr9oe7b
    @user-il9vr9oe7b 4 วันที่ผ่านมา

    What about partial reductions to restricted 2sats to deduce restricted 3sats that make it easy to solve the main 3sat problem. To fiddly and approach for humans but not ai.

  • @extremeforlife8563
    @extremeforlife8563 8 หลายเดือนก่อน

    Am I wrong in saying that the independent set is the graph compliment of clique, while the independent set is the vertex complement of vertex over?

    • @AlgorithmswithAttitude
      @AlgorithmswithAttitude  7 หลายเดือนก่อน +1

      Basically, yes, though to make it precise, the wording is a bit tricky. If a set of vertices in a graph forms a clique, that set of vertices is an independent set in the complement graph. And, if a set of vertices is a vertex cover in a graph, the complement of those vertices is an independent set in the same graph.

  • @mohamedgamal93
    @mohamedgamal93 3 ปีที่แล้ว

    Amazing video!

  • @caialyu2833
    @caialyu2833 3 ปีที่แล้ว

    AMAZING THANK YOU SO MUCH!!!!!!!!!!!!!!!!!!!!

  • @vidhisanghavi8048
    @vidhisanghavi8048 2 ปีที่แล้ว

    Why we need 3 nodes for vertex cover we could do in 2 also. 6 and 3. why 4 is there ? 6 is connected to 1,2,4,5,7 and 3 is connected to 7 and 5

    • @AlgorithmswithAttitude
      @AlgorithmswithAttitude  2 ปีที่แล้ว +1

      A vertex cover is a set of vertices that covers every edge. The (1,4) edge is not covered by your two vertices. (Your description shows that your vertices form a dominating set.)

  • @yunoletmehaveaname
    @yunoletmehaveaname 9 หลายเดือนก่อน

    If a problem is NP-Hard, does that make it automatically np-complete?

    • @AlgorithmswithAttitude
      @AlgorithmswithAttitude  9 หลายเดือนก่อน +1

      No, the problem could be so hard that it is not NP.

    • @jaimecastillo9711
      @jaimecastillo9711 9 หลายเดือนก่อน

      A problem is NP-Complete if it is NP hard & has a non-deterministic polynomial time algorithm.

  • @rohandevaki4349
    @rohandevaki4349 2 ปีที่แล้ว

    what is , , between two things not in the set? and to something not in the set? are they both not different ? at 3:55

    • @AlgorithmswithAttitude
      @AlgorithmswithAttitude  2 ปีที่แล้ว

      For the given independent set of 1, 2, 5, and 7, consider the edges of the graph. Some edges, like the edge between 3 and 4, go between two vertices not in the set. Other edges, like the edge between 1 and 6, go from between one thing in the set, and one thing not in the set. But no edge goes between two things in the set, as then it wouldn't be an independent set.

  • @АлександрДунай-е9ъ
    @АлександрДунай-е9ъ วันที่ผ่านมา

    Anderson Lisa Lewis Christopher Rodriguez Margaret

  • @rohandevaki4349
    @rohandevaki4349 2 ปีที่แล้ว

    how are you telling a independent set? there is no edge between 6 and 3, isnt it also a independent set? , why didnt you include it ? at 0:38

    • @AlgorithmswithAttitude
      @AlgorithmswithAttitude  2 ปีที่แล้ว

      6 and 3 are an independent set of just 2 vertices. The highlighted set of 1, 2, 5, and 7 have 4 vertices, and every two of them are independent: there is no edge from 1 to 2, or 1 to 5, or 1 to 7, or 2 to 5, or 2 to 7, or 5 to 7.

  • @rohandevaki4349
    @rohandevaki4349 2 ปีที่แล้ว

    you are just reading it, no proper explaination

    • @AlgorithmswithAttitude
      @AlgorithmswithAttitude  2 ปีที่แล้ว +12

      Your other two comments are much more constructive. They specifically point out an area which is confusing you, and I can respond to them to try to clarify what is being said or described at those points in the video. This comment is...less helpful. I have attempted to make a helpful video. Maybe it is good, maybe it is bad. This comment is about as helpful as you just writing "Hey, you should make this video, but better." It doesn't really give me a lot to go on, no specific time, nothing. I definitely do more than just read in the video. Do I sometimes read the words on the slides? Yes. I also wrote the slides. And created the animations. And wrote the script. So...take it easy.

    • @rohandevaki4349
      @rohandevaki4349 2 ปีที่แล้ว

      @@AlgorithmswithAttitude it is a bad video, i already referred other teachers tutorial, it is far better than yours, try to explain properly

    • @AlgorithmswithAttitude
      @AlgorithmswithAttitude  2 ปีที่แล้ว +10

      @@rohandevaki4349 Maybe you should post that link here too. If I find it to be helpful I will leave the link up. Again, let's keep it constructive.
      I don't find it particularly easy to make videos. There is some balance between trying to keep it brief, yet having all of the material in it. Also, I do understand that there are videos of lectures out there, which might present the same material but take 3 times longer to present it. There are enough of those out there that I am not trying to make another one, as there is no need.
      You have tried to make films before, right? Would you find comments written as yours are here to be helpful?