Thank you for watching this video. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi
After finding so many videos about the Adjacency list i am not able to understand from them. Your This video is just amazing And you clear my all doubt. All other are representing this Program in the cpp with the help of the vector which is not worth it in the data structure. Thank you man for making this video.
Glad it was helpful! Thank you for watching this video. Cheers! would you mind hitting like button and subscribe to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.
Great Explanation Sir, I suppose this is a directed graph , for ex: when we will traverse the graph we have 0(src) -> 1(dest) but not 1(src) to 0(dest)
Thank you for watching and commenting. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.
Great video..really helped me. One query, couldn't we have used the array to store the vertices data itself? There could have been another 'int' variable in 'adjlist' and while initialising the array in main function we could have the stored vertices value (0,1,2 and so on) in the variable?
Glad you think so! Thank you for watching this video and commenting. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via *WhatsApp* , *Facebook* and *Twitter* . Link to subscribe the channel goo.gl/hFueBi
Thank you for watching this video. Don't forget to *_like , subscribe_* and hit that *_notification_* bell 🔔. And also share this video in your circle via *WhatsApp* , *Facebook* and *Twitter* . Link to subscribe the channel goo.gl/hFueBi
Thank you for sharing. There is however a huge problem in the while loop. a while loop is not an if/else loop. Hence, it does not mean " until" but "as long as". great job though.
Thank you for watching this video and commenting. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi
Thank you for watching this video and commenting. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi
Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.
You're welcome, Don't forget to *_like , subscribe_* and hit that *_notification_* bell 🔔. And also share this video in your circle via *WhatsApp* , *Facebook* and *Twitter* . Link to subscribe the channel goo.gl/hFueBi
You're very welcome! Thank you for watching this video and commenting. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via *WhatsApp* , *Facebook* and *Twitter* . Link to subscribe the channel goo.gl/hFueBi
Thank you for watching and commenting. Cheers! would you mind hitting *_like_* button and *_subscribe_* to my channel! That will be awesome. I would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.
I don't think this is a good implementation of what you were showing earlier on in the video.. Firstly lets say I use exact same code as you in the end: addNode(0,1); addNode(0,3); addNode(1,2); This is what shows when you run: Adjacency list for vertex 0 0 1 3 Adjacency list for vertex 1 1 2 Adjacency list for vertex 2 Adjacency list for vertex 3 As you can see this is incorrect. Output should be like this: Adjacency list for vertex 0 0 1 3 Adjacency list for vertex 1 1 0 2 Adjacency list for vertex 2 2 1 Adjacency list for vertex 3 3 0 You need to make it so the edge is shown from source to destination, and destination to source. You need to do both ways!
Thank you *Kuasa* for watching this video and commenting. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi
Thank you for watching this video. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi
After finding so many videos about the Adjacency list i am not able to understand from them. Your This video is just amazing And you clear my all doubt. All other are representing this Program in the cpp with the help of the vector which is not worth it in the data structure. Thank you man for making this video.
Glad it was helpful! Thank you for watching this video. Cheers! would you mind hitting like button and subscribe to our channel!
That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.
Great Explanation Sir,
I suppose this is a directed graph , for ex: when we will traverse the graph we have 0(src) -> 1(dest) but not 1(src) to 0(dest)
Best explanation of adjacency list on you tube👍
Thank you for watching and commenting.
Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel!
That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.
Why not.... Done👍
Great video..really helped me. One query, couldn't we have used the array to store the vertices data itself? There could have been another 'int' variable in 'adjlist' and while initialising the array in main function we could have the stored vertices value (0,1,2 and so on) in the variable?
Such a great explaination 😊😊
Glad you think so! Thank you for watching this video and commenting.
Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via *WhatsApp* , *Facebook* and *Twitter* . Link to subscribe the channel goo.gl/hFueBi
Hello Sir great Explaination but in print function i think the loop should start from 0 such that adjlist[0] be acccessed.. isn't it?
🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
Thank you for watching this video. Don't forget to *_like , subscribe_* and hit that *_notification_* bell 🔔. And also share this video in your circle via *WhatsApp* , *Facebook* and *Twitter* . Link to subscribe the channel goo.gl/hFueBi
Good video on data structure to represent graph using linked list.
Thank you very much. Please do share the video in facebook, twitter and whatsapp. And also do not forget to subscribe to our channel.😀
It really helped me
Thank u , u explained so well👍👍
Thank you for sharing. There is however a huge problem in the while loop. a while loop is not an if/else loop. Hence, it does not mean " until" but "as long as". great job though.
Thank you for commenting and sharing your thoughts. Please share the video in your network via facebook, twitter and whatsapp.😀
Bah alors françois
Great sir
Sir very well explanation. Can you pls do a video on implementation of BST using linked list
Thank you for watching this video and commenting.
Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi
Very well explained sir! Thank you so much.. :)
Thank you for watching this video and commenting.
Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi
Yes sure!❤️
Great Explaination Sir!
Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel!
That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.
Thanks Sir
how nice you explain it,,sir
Thank you for your comment. Please share this video in your circle via whatsapp, facebook and twitter. Subscribe to our channel.
Thank you
You're welcome, Don't forget to *_like , subscribe_* and hit that *_notification_* bell 🔔. And also share this video in your circle via *WhatsApp* , *Facebook* and *Twitter* . Link to subscribe the channel goo.gl/hFueBi
Thank you so much for the awesome tutorial!
God bless you!
:):):)
You're very welcome! Thank you for watching this video and commenting.
Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via *WhatsApp* , *Facebook* and *Twitter* . Link to subscribe the channel goo.gl/hFueBi
THANKS A LOT !!!!
Solid explanation. Thank you.
Thank you for watching and commenting. Cheers! would you mind hitting *_like_* button and *_subscribe_* to my channel!
That will be awesome. I would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.
Amazing 💕
Thanks 🤗Glad it helped! Subscribe and share the video.
I don't think this is a good implementation of what you were showing earlier on in the video..
Firstly lets say I use exact same code as you in the end:
addNode(0,1);
addNode(0,3);
addNode(1,2);
This is what shows when you run:
Adjacency list for vertex 0
0 1 3
Adjacency list for vertex 1
1 2
Adjacency list for vertex 2
Adjacency list for vertex 3
As you can see this is incorrect. Output should be like this:
Adjacency list for vertex 0
0 1 3
Adjacency list for vertex 1
1 0 2
Adjacency list for vertex 2
2 1
Adjacency list for vertex 3
3 0
You need to make it so the edge is shown from source to destination, and destination to source. You need to do both ways!
Thank you ....It helps me in implementation of code.
Thanks. Please like this video, Share it in facebook, twitter and Whatsapp. Do not forget to subscribe to our channel.
good video man
Thank you *Kuasa* for watching this video and commenting.
Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi
Thank you so much nice explaination
Thank you for your comment. Share this video link in your network with your friends via facebook, whatsapp and twitter.😀
How is list[0] pointing to 0
You explained that there's no self loop consideration
Plz explain
Good explanation , can you just correct while condition
Yes something is wrong in while loop of addnode..
Did u correct it..?
thank u for the code! its really clear!!!
Thank you very much. Please subscribe to our channel. Share our videos in facebook, Whatsapp and twitter if you like any of our videos.😀
I have problem printing the list because some of my vertices does not have any edges to any vertices.
in the while loop: add a curly brackets between temp=temp->next; and temp->next=dest; to make it work.
That's not required
How to print the path after this
can u share codes?
Here code:
#include
#include
#define maxNode 4
typedef struct Node {
int vertexNum;
struct Node* next;
}Node;
typedef struct List {
Node* head;
}List;
List* adjlist[maxNode] = {0};
void addNode(int s,int d)
{
Node *dest,*tmp,*src;
if(adjlist[s]->head==NULL) {
src = (Node*)malloc(sizeof(Node));
src->vertexNum=s;
src->next=NULL;
adjlist[s]->head = src;
}
dest = (Node*)malloc(sizeof(Node));
dest->vertexNum=d;
dest->next=NULL;
tmp=adjlist[s]->head;
while(tmp->next!=NULL){
tmp=tmp->next;
}
tmp->next=dest;
}
void printList(){
int i;
for(i=0;ihead;
printf("Adjacency list for vertex %d
",i);
while(p) {
printf("%d",p->vertexNum);
p=p->next;
}
printf("
");
}
}
void main()
{
int i;
for(i=0; ihead = NULL;
}
addNode(0,1);
addNode(0,3);
addNode(1,2);
printList();
}
While loop condition is absolutely wrong.
Instead we can write......
Do{
Printf("%d",p->vertexNum);
p=p->next;
}while(p->next != NULL)
@@meenakshihattewar5811 not not sir . is while(p!=NULL)
Sir explain adjacent list . But not understand sir
Can you pl share your ppt...
not working !
Segmentation fault
code de dete to shi rehta.
isliye mene video like nhi kri