Representation of graph using adjacency matrix and adjacency list

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

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

  • @TomerBenDavid
    @TomerBenDavid 4 ปีที่แล้ว +37

    Cool searched for "adjacency list tech doze" because I knew there would be the best concise explanation in a short time and it prooved right.

    • @techdose4u
      @techdose4u  4 ปีที่แล้ว +12

      :P thanks but it's dose Hahaha :)

  • @RANAND-xd3zu
    @RANAND-xd3zu 4 ปีที่แล้ว +70

    Sir, you made a mistake from the adjacent list 1 pointing through 0,2 and 3 you forget the 0 this is an undirected graph

  • @indraalapati989
    @indraalapati989 4 ปีที่แล้ว +15

    Nice explanation. I would like to add one more point under adjacency list -> If your model frequently manipulates vertices, the adjacency list is a better choice.

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

    Great video! Super clear and one of the better ones available on TH-cam! Much thanks Sir!

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

    Keep up the great work sir :)
    Very well curated lectures.
    Thank you.

  • @DineshSharma-pp3ox
    @DineshSharma-pp3ox 2 ปีที่แล้ว +2

    This video tutorial is very helpful

  • @RanjanaShinde-e1l
    @RanjanaShinde-e1l 8 หลายเดือนก่อน

    Thank you so much sir for giving nice explanation ☺️

  • @dangelokwakye6658
    @dangelokwakye6658 4 ปีที่แล้ว +4

    This video was a very big help ♥

  • @antiviruskaif8297
    @antiviruskaif8297 2 หลายเดือนก่อน

    awesome explainer

  • @udithweerasinghe6402
    @udithweerasinghe6402 ปีที่แล้ว +4

    in the adjacency list , you marked from 1 to 2 & 3 only, don't we need to mark for 0 as well since there is a link from 1 to 0?

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

    Commenting as it can reach to more people ❤️

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

    Simply excellent narration

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

    Amazing bht achi samjh ai sir

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

      Badhiya 👌🏼

  • @SiddharthRay1
    @SiddharthRay1 4 ปีที่แล้ว +10

    why array of pointer "1" don't have node 1 to 0 ? since "2" does have 2 ti 1 and 2 to 3

    • @techdose4u
      @techdose4u  4 ปีที่แล้ว +6

      Yes you are correct. I should have included 0. 0 will be present in array of pointers for node 1.

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

      @@techdose4u thanks for the response. video was awesome 👌

    • @techdose4u
      @techdose4u  4 ปีที่แล้ว

      Thanks for pointing out the mistake bdw.

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

      He forgor💀

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

    Great video sir😍👍..... it's very easy to understand but I need inverse adjacency list examples

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

    Finally I am at Graph.

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

    great video

  • @Yoshi-bw8ds
    @Yoshi-bw8ds 3 ปีที่แล้ว +1

    Huge help bro, thanks

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

      Welcome

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

      @@techdose4u Hey I have a question. How do I implement an algorithm to reduce the graph from weighted to an unweighted graph? Let’s say I’m given a set of edge weights like {1, 2} in a weighted undirected graph. How do I transform a graph so that all edge weights in a graph are equal (where preferably each edge weight in new graph equals to 1)? I know I may have to add or remove edges and intermediate vertices but is there a way to think about this?

  • @impatientgaming9868
    @impatientgaming9868 10 หลายเดือนก่อน

    good one

  • @atharvsatpute7889
    @atharvsatpute7889 7 หลายเดือนก่อน

    Sir. Their was 3 edges from vertex 1 =1-0, 1-3, 1-2
    You don't mention in adjacency list at video time 5:28 please check ti if I write

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

    which software you are using for drawing adjacency matrix and list in this video?

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

    Code implementation is missed. I have one doubt if we have nodes with big number like 160, 300, 2000, 5000 how that will be mapped to array index while representing by adjacency list.

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

    that's impressive

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

    Does graph only contains the sequence labelling of data such as 0 1 2 3 for 4 nodes can we have 34 79 82 12 in vertice labelling

  • @naveenkumar-rb4ug
    @naveenkumar-rb4ug 3 ปีที่แล้ว

    Sir you used Source nodes as node pointers. But in real world there is lot of information associated with a node. So how can we implement that as pointer only. Dont we need to have an array of Vertices nodes instead of Vertices pointer array. Plz clarify

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

      It's the same thing in this case. It just serves to visualize it, it's not an actual linked list.

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

    What is the application of adjacency matrix and list

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

      You will understand as see more of the videos in graph playlist.

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

      Can yoy share some link of application because i am needy for that

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

      To store a graph or to represent it, you need either adjacency list or matrix.

  • @MDIRFAN-cp7ol
    @MDIRFAN-cp7ol 2 ปีที่แล้ว +1

    where is code sir

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

    Great Explaination Sir.
    I have a request,can you please make a video on ways to implement the graph DS in C++, because there are lot of ways(vectors, set, array of LL etc) and it quite confusing.
    Thanks in advance. @techdose

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

      Yes I will make after including all videos of graph.

    • @dfrsacw3988
      @dfrsacw3988 4 ปีที่แล้ว

      @@techdose4u How many videos ????

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

      @@dfrsacw3988 5-6 videos approx. You can remind me after couple of weeks for this topic.

    • @dfrsacw3988
      @dfrsacw3988 4 ปีที่แล้ว

      @@techdose4u OK. Thank you. :)

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

      Pls I am reminding my problem 😂

  • @English-zv3jk
    @English-zv3jk 2 ปีที่แล้ว

    5:07 here 1 should be linked with 0 also naa?? He hasn't written that

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

    adj list is wrong the 1 have the 0,2,3 b relations

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

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

    adjancy matrix is easy

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

    👍

  • @varundawan3637
    @varundawan3637 10 หลายเดือนก่อน

    Not great video bros he didn't explained loop in directed graph for adjacency list

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

    From this explanation it isn't clear that how do we represent a flower-like directed graph using Adjacency List.
    🌻-like i.e., where the "black thing at center" is node 0 / petals are edges & petal tips are other nodes...

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

    READ ABOUT ISLAM ❤