Prove that a tree with n vertices has n-1 edges

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2022
  • In this video, I will show you how to prove that a tree with n vertices or nodes has n-1 edges using proof by induction. For example, if you are given a tree with 10 vertices or nodes, then you know for sure that there are 9 edges. So, what exactly is a tree? A tree is an undirected graph that is a connected graph and has no cycles, parallel edges, or loops. I will prove this statement using mathematical statement. The induction proof that a tree of n nodes has n-1 edges is a basic theorem in graph theory which is important in both discrete math and computer science classes. If you are given a graph of n vertices with no cycles, loops, or parallel edges, and you find out that the graph has exactly n-1 edges, then you know that it is a tree.
    If you enjoyed my video, please don't forget to subscribe to my channel :)

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

  • @yourinternetfriend.7817
    @yourinternetfriend.7817 ปีที่แล้ว +3

    Thank you so much ! This was really quick to learn and helpful to understand…just watching this video before my exams 😂😂

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

      Glad it helped! Don't forget to subscribe and share with others! It means a lot :))

  • @sakshishrivastava9839
    @sakshishrivastava9839 3 หลายเดือนก่อน +2

    Thankyou so much sir....
    ❤from india

    • @QuocDatPhung
      @QuocDatPhung  3 หลายเดือนก่อน +1

      You're very welcome! You can find all of my Computer Science videos here: th-cam.com/play/PLeTO6OT3-FKmuxOu4RtupTay1yrMp6QGC.html

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

    Thank you so much was very helpful

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

      Anytime! If you could kindly subscribe and share with classmates, I'd really appreciate it! As well, you can see my Data Structure and Algorithm playlist here: th-cam.com/play/PLeTO6OT3-FKmuxOu4RtupTay1yrMp6QGC.html

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

    Cam on nhieu!

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

      You're so welcome Clara! Please kindly subscribe and find the rest of my Data Structures & Algorithm videos in this playlist: th-cam.com/play/PLeTO6OT3-FKmuxOu4RtupTay1yrMp6QGC.html