Self Referential Structures
ฝัง
- เผยแพร่เมื่อ 26 ส.ค. 2024
- Data Structures: Self Referential Structures
Topics discussed:
1) Self-referential structures.
2) Programming example of self-referential structure.
3) The use of self-referential structure.
C Programming Lectures: goo.gl/7Eh2SS
Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
Contribute: www.nesoacademy...
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy...
Website ► www.nesoacademy...
Forum ► forum.nesoacade...
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#DataStructuresByNeso #DataStructures #SelfReferentailStructures #Structures
I feel bad for those seniors in whose time these lectures were not available😛.
Thanks, sir this will make me understand Linked List easily.
Example me ☹
@@anveshatagore542 lmao
@@ihateracistandblackpeople4272 you hate black people but you hate racist what the hell that is a contradiction my dear friend
@@hetaeramancer 🙂
@@anveshatagore542 Me too and I learned a lot of coding anyway in the old days and there were no racial slur or other disturbing noize in the books!
You Indian people are so polite and have the sense of gratitude towards your teachers and also you are hard workers and very clever especially in technology and IT related topics. I really appreciate and respect the Indian nation! This is Muhammad from Egypt, sending my greeting to all of you and the instructor, too ! ❤️🇪🇬🇪🇬🇪🇬🇳🇪🇳🇪🇳🇪
Glad!!
Love from INDIA
🇮🇳❤️
oh my god !
thanks a lot sir....
no one told/teach me these many backgrounds to proceed linked list ...
kudos to ur self referntial structure example
now i got to know how linked list are made and excited to implement
This is so helpful ..I have become a genuine fan of neso academy. Neso ke alawa aur kisi bhi channel utna achha hi nahi lagta... East aur west, Neso is the BEST😁😁😁😁😁😁😁
oh my god i love you so much, i left from a 2 hour lecture not understanding A SINGLE thing about linked lists and self referential structures, but your 6 minutes video made me understand it all!
May i ask when's the next video?
Anyway thank you sire from the bottom of my heart
For always great content
Not all heroes do wear capes
And you're One of them
You will have it soon.
Jis topic mein struggle kr raha tha ek baar mein smj aa gya wonderful explanation love it sir...
Jaspreet Singh Sir is the best :))
I know sir Team Neso is trying their very best to upload new videos! I appreciate your efforts and am very glad to tell that it is because of your channel my engineering life was so smooth and i also want your channel to be the reason for a good end to my graduation ! Please complete this Playlist on data structure as soon as possible! It going to fetch us our dream jobs! Thanks again!
Thanks for giving the presentation sir😊
This is teaching of highest order!!
Thank you.
i just wanna say that i'm on video 30 and i'm already very excited. i understood everything so well, you explained it so eloquently and damn this list is so long which i'm sure will show me all i need to know about this topic and maybe more than i think i need. THANK YOU SO MUCH for you time and effort! you're a wonderful teacher
Please sir uploaded as much as video because I am eagerly waiting for your video. My day is not completed without seeing your video. Alot of love from my side🤗😍.Thank you
Making ds easy by revising prerequisite just before teaching ds🤗
Sir, I can surely say that no one on TH-cam has taught these topics better than you. Thank you Sir.
Thank you sir for solving my doubt. Now I can easily understand this
If you guys need it, I made it good example of this video using some code I made here it is :):
#include
#include
typedef struct structure{
int ASCII;
char letter;
struct structure *MyStructure;
}Structure;
void PrintStructure(Structure *Pointer_StructureOne) {
printf("StructureOne:
");
printf("Structure address: %p
", Pointer_StructureOne);
printf("\t- ASCII: %d
", Pointer_StructureOne->ASCII);
printf("\t- letter: %c
", Pointer_StructureOne->letter);
printf("\t- Structure's stored address: %p
", Pointer_StructureOne->MyStructure);
printf("StructureTwo:
");
printf("Structure Two's address: %p
", Pointer_StructureOne->MyStructure);
printf("\t- ASCII: %d
", Pointer_StructureOne->MyStructure->ASCII);
printf("\t- letter: %c
", Pointer_StructureOne->MyStructure->letter);
printf("\t- Structure's stored address: %p
", Pointer_StructureOne->MyStructure->MyStructure);
return;
}
int main()
{
Structure StructureOne = {65, 'A', NULL};
Structure StructureTwo = {66, 'B', &StructureOne};
StructureTwo.MyStructure->MyStructure = &StructureTwo;
PrintStructure(&StructureOne);
/*
Self refrential structures are those structures who point to the same structure data type as their own,
this may sound confusing but take a look at the below code and imagine the INT ptr being known as a
self-refrential data structure:
int * Ptr = NULL;
int Age = 15;
Ptr = &Age;
Age and Ptr are of both the same structure data type of 'int', therefore, Ptr is a
self-refrential data type.
* THESE COME USEFUL IN LINKED LISTS !
*/
return 0;
}
Plss reply
I am asking you second time.
When are you doing video on linked list
U are explanation is super.
Thank u for giving education for free of cost😊❤️
The next lecture is on Linked List.
@@nesoacademy yehhhhh😊😊😊😊😊
Thank u 😘❤️
@@nesoacademy Why linked list videos are not completed? Where are the left parts of linked list?
Absolutely your videos feel like magic. Perfectly understanding than university.
Just this one video explained every doubt i had with linked list algorithms, TY so much.
clear like water.
Sir your teaching skills are amazing thanku sooo mush sir
Love from iran🇮🇷🤞
I am a CS student from IUST
I love Neso Academy. 💝
Thank you so much sir for giving this presentation
Thank you 😊
Very good explanation 👍🏻
You are just amazing Sir 😍Thanks very much
Nice nice explanation of self references structure 😇😊
You shouldn't assume the address is 1000 you should suppose. Other than that thanks a lot for all the invaluable knowledge you've imparted to us so far. I found your lectures to be the most comprehensive yet simple to understand compared to all others'.
what confused me a lot is that I thought that it referred to itself, but in reality all you're saying is
"This variable will hold another thing of same type" you're not holding the original object, you're saying that this variable will hold information about another object of the same time
Nice explaination ! 🐰
Thank you so much! Now I understand Linked lists, Queue, etc
thank you very much sir it helped me a lot🙌🙌🙌🙌
Thankyou very much Sir, Now I have cleared all my doubts in pointer and Structure.
Easily understood your efforts are commendable.
Thanks sir
It helped a lot
Sir how 65 is becoming one and 66 as 2
Nice explanation sir. Tq❤
var1.i equals one how shouldn't it be 65?
love the way you teach sir hats off💫
Lots of thanks sir! I finally understood what a self-referential structure actually does :)
Thankuuuu so much sir
Tnk u sir
Thank you sir for your great explanation ❤
感謝分享,講的簡單易懂
sir can you please tell us by when can you complete the whole playlist in 6 months i have placements, also will you also teach algorithms or is this course only on data structures.
Thank you in advance.
The series is awesome thank you so much sir.
Thank you so much 👌
This is pure gold.
Neso academy upload all the lectures fast .
Thanks man
What an amazing explanation, thank you so much...
That was an excellen explanation sir .
so the struct node *ptr is basically a pointer that can point to variables of struct node only ike var1 and var2, or is a pointer that points to the struct node?
I am confused with this.
Thanks alot for your wonderful videos
Thank you so much sir. it was really helpful.
Really Helpful sir
thank you very much Sir!
In the visualization part why you have written 1 in the cell of var1.i ? Shouldn't it be 65 instead of 1 ?
so, what exactly is pointer ptr pointing to?
neso academy , gate is 6 months from now, please upload all the lectures
I feel that neso academy stop this project of data structures
And they will not upload any videos on data structures
I am also agree
In lockdown i think this is right time to upload all lectures
He is uploading more vids.
So what’s the point of this data structure? Does this give you anything that making a normal linked list (which is similar to the given example) does not, besides less overhead?
Dear Neso Academy , Please reply 🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼. what is the difference between datastructures and advanced datastructures?
Thankyou so much sir
i have doubt guys, for example if we have taken int datatype instead of the struct node type (self referential) for ptr pointer then also we can access the var2 right? so why do we need a self referential structure
Because that pointer is pointing to a struct code data type .. var 2 is not int data type .. It's of struct code type . that's why we require a pointer of the same data type . We could also have declared this pointer inside the main function and not in the structure itself .But then , we would have to use it for every variable . So we introduced it in the structure definition itself .
Where can I find following videos ??
Sir will this course be continued?
if yes, when?
hoping for a reply
Pls upload the whole data structure course
what happens when we do this
struct code *var1 in main( )
Why did you visiluage i=1, when you have allocated 65 to i ???
Can anyone please explain where dot operator is used and where arrow is used. It's confusing
When you upload stack. Linked list main data structure for gate??
Sirr provide the videos for for c++ and phython !
Why can’t we just use a simple pointer ?
Because we should determine what that pointer is pointing to.
It can't be just any pointer it should be a pointer to a same struct
If I want to access var1.i=65 by using this format what I do ??......
sir there ain't gonna be any more videos here right??
I didn't understand what happens to 65 and 66 of integer values??? Someone pls explain
Var1.i =65
Then why 1 is written in block
Sir please upload algorithms for gate
Can't we use normal pointer instead of struct pointer
no we cannot because struct code is a user defined datatype of ptr pointer which points to struct code type of data.
Sir please i want whole course on phython language
Sir we are waiting for algorithms
❤️
🙏🙏🙏🙏🙏🙏🙏Please please... #algorithm for gate
Sir, what if we declare the pointer for structure outside the structure. Can we create self-referential structures?
struct test
{
int data ;
};
struct test* node;
Is this validated as self-referential struct to create pointers?
Sir plse upload videos more faster plse sie