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

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

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

    I feel bad for those seniors in whose time these lectures were not available😛.
    Thanks, sir this will make me understand Linked List easily.

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

      Example me ☹

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

      @@anveshatagore542 lmao

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

      @@ihateracistandblackpeople4272 you hate black people but you hate racist what the hell that is a contradiction my dear friend

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

      @@hetaeramancer 🙂

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

      @@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!

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

    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 ! ❤️🇪🇬🇪🇬🇪🇬🇳🇪🇳🇪🇳🇪

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

      Glad!!
      Love from INDIA
      🇮🇳❤️

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

    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

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

    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😁😁😁😁😁😁😁

  • @hiro0two
    @hiro0two 28 วันที่ผ่านมา

    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!

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

    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

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

      You will have it soon.

  • @pushpendrasingh-kd4kl
    @pushpendrasingh-kd4kl 4 ปีที่แล้ว +3

    Jis topic mein struggle kr raha tha ek baar mein smj aa gya wonderful explanation love it sir...

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

    Jaspreet Singh Sir is the best :))

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

    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!

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

    Thanks for giving the presentation sir😊

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

    This is teaching of highest order!!
    Thank you.

  • @NinaNanni
    @NinaNanni 10 หลายเดือนก่อน +2

    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

  • @48_prasenjitmondal6
    @48_prasenjitmondal6 4 ปีที่แล้ว +3

    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

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

    Making ds easy by revising prerequisite just before teaching ds🤗

  • @sayandeepsoren361
    @sayandeepsoren361 4 หลายเดือนก่อน

    Sir, I can surely say that no one on TH-cam has taught these topics better than you. Thank you Sir.

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

    Thank you sir for solving my doubt. Now I can easily understand this

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

    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;
    }

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

    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😊❤️

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

      The next lecture is on Linked List.

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

      @@nesoacademy yehhhhh😊😊😊😊😊

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

      Thank u 😘❤️

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

      @@nesoacademy Why linked list videos are not completed? Where are the left parts of linked list?

  • @DompeLK
    @DompeLK 11 หลายเดือนก่อน

    Absolutely your videos feel like magic. Perfectly understanding than university.

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

    Just this one video explained every doubt i had with linked list algorithms, TY so much.

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

    clear like water.

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

    Sir your teaching skills are amazing thanku sooo mush sir

  • @HopeNHopes
    @HopeNHopes 3 หลายเดือนก่อน

    Love from iran🇮🇷🤞
    I am a CS student from IUST

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

    I love Neso Academy. 💝

  • @mothilalmothilaljadav8123
    @mothilalmothilaljadav8123 11 หลายเดือนก่อน

    Thank you so much sir for giving this presentation

  • @anshulsoni4994
    @anshulsoni4994 4 หลายเดือนก่อน

    Thank you 😊
    Very good explanation 👍🏻

  • @PJay-ns3eh
    @PJay-ns3eh 4 ปีที่แล้ว +2

    You are just amazing Sir 😍Thanks very much

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

    Nice nice explanation of self references structure 😇😊

  • @j.r.r.tolkien8724
    @j.r.r.tolkien8724 2 ปีที่แล้ว +1

    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'.

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

    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

  • @Nishakumari-tt8fh
    @Nishakumari-tt8fh 4 ปีที่แล้ว +3

    Nice explaination ! 🐰

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

    Thank you so much! Now I understand Linked lists, Queue, etc

  • @Harshith-tm5wr
    @Harshith-tm5wr 10 หลายเดือนก่อน

    thank you very much sir it helped me a lot🙌🙌🙌🙌

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

    Thankyou very much Sir, Now I have cleared all my doubts in pointer and Structure.

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

    Easily understood your efforts are commendable.

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

    Thanks sir
    It helped a lot

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

    Sir how 65 is becoming one and 66 as 2

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

    Nice explanation sir. Tq❤

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

    var1.i equals one how shouldn't it be 65?

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

    love the way you teach sir hats off💫

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

    Lots of thanks sir! I finally understood what a self-referential structure actually does :)

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

    Thankuuuu so much sir

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

    Tnk u sir

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

    Thank you sir for your great explanation ❤

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

    感謝分享,講的簡單易懂

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

    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.

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

    Thank you so much 👌

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

    This is pure gold.

  • @Red-g1f
    @Red-g1f 4 ปีที่แล้ว +1

    Neso academy upload all the lectures fast .

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

    Thanks man

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

    What an amazing explanation, thank you so much...

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

    That was an excellen explanation sir .

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

    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.

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

    Thanks alot for your wonderful videos

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

    Thank you so much sir. it was really helpful.

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

    Really Helpful sir

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

    thank you very much Sir!

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

    In the visualization part why you have written 1 in the cell of var1.i ? Shouldn't it be 65 instead of 1 ?

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

    so, what exactly is pointer ptr pointing to?

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

    neso academy , gate is 6 months from now, please upload all the lectures

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

    I feel that neso academy stop this project of data structures
    And they will not upload any videos on data structures

    • @m.g.dodiya1891
      @m.g.dodiya1891 4 ปีที่แล้ว +3

      I am also agree

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

      In lockdown i think this is right time to upload all lectures

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

      He is uploading more vids.

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

    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?

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

    Dear Neso Academy , Please reply 🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼. what is the difference between datastructures and advanced datastructures?

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

    Thankyou so much sir

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

    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

    • @Dikku716
      @Dikku716 5 หลายเดือนก่อน

      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 .

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

    Where can I find following videos ??

  • @anjanakanakaraj3348
    @anjanakanakaraj3348 3 หลายเดือนก่อน

    Sir will this course be continued?
    if yes, when?
    hoping for a reply

  • @shivammishra-ri6xz
    @shivammishra-ri6xz 4 ปีที่แล้ว

    Pls upload the whole data structure course

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

    what happens when we do this
    struct code *var1 in main( )

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

    Why did you visiluage i=1, when you have allocated 65 to i ???

  • @pratikkurra4754
    @pratikkurra4754 5 หลายเดือนก่อน

    Can anyone please explain where dot operator is used and where arrow is used. It's confusing

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

    When you upload stack. Linked list main data structure for gate??

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

    Sirr provide the videos for for c++ and phython !

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

    Why can’t we just use a simple pointer ?

    • @HopeNHopes
      @HopeNHopes 3 หลายเดือนก่อน

      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

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

    If I want to access var1.i=65 by using this format what I do ??......

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

    sir there ain't gonna be any more videos here right??

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

    I didn't understand what happens to 65 and 66 of integer values??? Someone pls explain

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

    Var1.i =65
    Then why 1 is written in block

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

    Sir please upload algorithms for gate

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

    Can't we use normal pointer instead of struct pointer

    • @006daredevil
      @006daredevil 2 ปีที่แล้ว

      no we cannot because struct code is a user defined datatype of ptr pointer which points to struct code type of data.

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

    Sir please i want whole course on phython language

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

    Sir we are waiting for algorithms

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

    ❤️

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

    🙏🙏🙏🙏🙏🙏🙏Please please... #algorithm for gate

  • @5b2rajesh78
    @5b2rajesh78 ปีที่แล้ว

    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?

  • @pushpendrasingh-kd4kl
    @pushpendrasingh-kd4kl 4 ปีที่แล้ว

    Sir plse upload videos more faster plse sie