Hashing and Hash table in data structure and algorithm

Поделиться
HTML-код
  • Опубликовано: 31 авг 2014
  • This video lecture is produced by S. Saurabh. He is B.Tech from IIT and MS from USA.
    hashing in data structure
    hash table
    hash function
    hashing in dbms
    To study interview questions on Linked List watch • Programming Interviews...
    To prepare for programming Interview Questions on Binary Trees
    • Programming Interviews...
    To study programming Interview questions on Stack, Queues, Arrays visit
    • Programming Interviews...
    To watch all Programming Interview Questions visit
    • Programming Interviews...
    To learn about Pointers in C visit
    • Pointers in C (All you...
    To learn C programming from IITian S.Saurabh visit
    • C Programming Tutorial

Комментарии • 66

  • @Shaltha
    @Shaltha 9 лет назад +2

    Came looking for an explanation of double hashing, ended up watching the entire playlist. I understand this chapter in my data structures class so much better now, thank you!

  • @sonisingh6781
    @sonisingh6781 8 лет назад +25

    Saurabh's pick line.......... He is B.Tech from IIT and MS from USA :)

  • @taymurahmed7119
    @taymurahmed7119 8 лет назад

    Love the way you are explains everything !!!
    Appreciated :)

  • @curtisshaw7688
    @curtisshaw7688 8 лет назад

    Best video on hashing. Hands down. Thanks.

  • @soulsaga
    @soulsaga 9 лет назад

    Hey man! Salutations from Australia! Thanks for explaining this out for me. It really helped me grasp why hash tables are so useful.

  • @Mr1Samurai1
    @Mr1Samurai1 9 лет назад

    Great stuff, very clear and concise.

  • @travellcriner6849
    @travellcriner6849 6 лет назад +4

    SUMMARY OF KEY POINTS: So basically a hash table is a thing involving hashing which is useful for hash tables. There're many distinct numbers congruent to one-another modulo a fixed integer. Hashing is fast because Hash tables and hash functions. Okay. Oh and multiples of 5, okay.
    Please let me know if I missed anything.

  • @lakhanbenwal9729
    @lakhanbenwal9729 7 лет назад +1

    You have saved my midsem . Thanks a lot :)

  • @szanqoole
    @szanqoole 9 лет назад

    wow what a teacher! amazing, I would love to be in a class that you teach, i never fully understood before today. thanks

  • @vinodkp7905
    @vinodkp7905 7 лет назад

    Very simple and helpful. thank you...

  • @assaulterevil2493
    @assaulterevil2493 8 лет назад

    It made me easy to understand hashing

  • @vishalarora919
    @vishalarora919 8 лет назад

    Well Done!!! From Canada

  • @preethimukundkumaresh8928
    @preethimukundkumaresh8928 6 лет назад

    Thank you so much it was really helpful to study!!

  • @srirambalachander4286
    @srirambalachander4286 9 лет назад +1

    Thanks for the video..waiting for the next lecture...post it soon :-)

    • @saurabhschool
      @saurabhschool  9 лет назад +3

      Yes, I have posted all videos on hash table

  • @joshsmit779
    @joshsmit779 7 лет назад

    Excellent explanation!

  • @qee540
    @qee540 8 лет назад +10

    I think you made a mistake in the 2 row '1' where the value of " X " is 21.
    there are all of us relying on you. thx

  • @asifanwarsadi7676
    @asifanwarsadi7676 9 лет назад

    Hey, thumbs up! It helped me a lot. Thanks :)

  • @PrettySparkle1
    @PrettySparkle1 7 лет назад

    Great!

  • @VikashSharma-wv5vv
    @VikashSharma-wv5vv 8 лет назад

    Very well explained

  • @spreen_co
    @spreen_co 9 лет назад

    **mouse wiggles restlessly**
    'oke?'

  • @DoItNowNotThen
    @DoItNowNotThen 7 лет назад

    thank u you explained very nice

  • @themikster1212
    @themikster1212 7 лет назад +6

    ok

  • @nilashishchakraborty3983
    @nilashishchakraborty3983 8 лет назад

    Thanks a ton for the lesson, Saurabh.
    I have a basic doubt regarding the advantages of Hash Tables. As we know, that implementing hash tables costs us the overhead of hash function. However, if we use an array of structures to save our dictionary pair we will not have to waste CPU cycles for calculating the hash function. In an array of structures, the key(in the dictionary pair) shall serve as the index while performing a search. For e.g., I have to store the following data set:
    (1, ABC) (2, CDE) (3, EFG) (4, GHI)
    and if my structure is called "info" then we can perform a search in O(1) time using "info[1].data" to retrieve "ABC". We will also have the advantage of never having a collision(if keys are primary :D). So my question is why do we use Hash Tables at all? Thank You. :)

  • @sajinarayanan4941
    @sajinarayanan4941 8 лет назад

    Nice video.

  • @Kemolz1
    @Kemolz1 7 лет назад

    great vid, its my first day im just curious to know why you would present h(x)=x%10 and not something thats more general equation of h(x)=x%size or something because i missed it and then came back to let you know how easy that small amount of important information was a little obscured for me. other wise great video

  • @gabrielpereiramendes3463
    @gabrielpereiramendes3463 5 лет назад

    Thanks a lot!

  • @shohrabhossain2022
    @shohrabhossain2022 4 года назад

    awesome....:)

  • @rekha8875
    @rekha8875 9 лет назад

    thank you soooo much......😊

  • @Msvip11
    @Msvip11 8 лет назад

    thank you so much

  • @amitkashyap2986
    @amitkashyap2986 9 лет назад +1

    Keep up the good work saurabh :-)

  • @priya24gill
    @priya24gill 9 лет назад +28

    you made a mistake...
    in very first step, when you took mod of 21 with 10 i.e 21mod 10=1
    but you save 1 in 1 storage table,
    you have to save 21 at 1....

  • @TheLiakos7
    @TheLiakos7 7 лет назад +1

    Can u send me the code of this algorithm? In Dev C++? in C language

  • @anshulrally287
    @anshulrally287 9 лет назад

    Thanks for the lecture. BTW, which drawing program , pen tablet and screen recording software you use for recording your lectures ?

    • @saurabhschool
      @saurabhschool  9 лет назад

      I use i ball pen tablet and camstudio for desk top recording

    • @anshulrally287
      @anshulrally287 9 лет назад

      saurabhschool and the drawing program on which you wrote with pen tablet ?

    • @muhammadmustafa2365
      @muhammadmustafa2365 7 лет назад

      Anshul Rally😍😄😍

  • @joneshshrestha
    @joneshshrestha 7 лет назад +3

    Hashing okay and okay Hash okay Table okay in okay data okay structure okay

  • @SpMeKP
    @SpMeKP 9 лет назад +1

    How about some code as well?

  • @angladephil
    @angladephil 6 лет назад

    This video is very (much) OK !

  • @toufiq-ul-alam6475
    @toufiq-ul-alam6475 7 лет назад

    i assume that it will be 21 in the index number 1?

  • @kamleshbachani8132
    @kamleshbachani8132 9 лет назад

    Correct me if i am wrong but we cannot enter anything at the 0(zero) index!!!!!!

    • @seventea7
      @seventea7 9 лет назад

      Kamlesh Bachani Yeah you can, 20 mod 10 is 0. Or (any multiple of 10) mod 10 = 0.

  • @priyanshudwivedi28
    @priyanshudwivedi28 6 лет назад +1

    Sir ek knowledge dijiye ki engineering ke exam me 7 number ke question ke ans kitne page me attend sahi rahta hai... Tnqeww

  • @jeathtunes769
    @jeathtunes769 8 лет назад

    how can 48.7 devided by 10 is equals to 8?

  • @Merajmohdkhan
    @Merajmohdkhan 9 лет назад

    very good explanation although its understandable but just make it perfect please correct 21 value.

  • @moizazeem7362
    @moizazeem7362 8 лет назад

    ay belol

  • @PouyanArephpoor
    @PouyanArephpoor 6 лет назад

    I just want to tell you I didnt watch your video because there was a long advertising at beginning :( I Very disturbing one

  • @marcushandley3017
    @marcushandley3017 8 лет назад

    Isn't this just a dictionary?

    • @yoteango
      @yoteango 7 лет назад

      Yes. A hash table is basically a dictionary.

  • @jacknoble1184
    @jacknoble1184 5 лет назад

    why can't anyone make an instructional video about hashing without it being completely fucking mind numbing?

  • @scotthawkins8707
    @scotthawkins8707 6 лет назад +5

    I didn't understand a single point that You tried to explain.
    Sorry.!

  • @sachinjaiswal4632
    @sachinjaiswal4632 6 лет назад

    Writing is so poor

  • @rahuljain4691
    @rahuljain4691 7 лет назад

    I think S.Saurabh needs to do some extra homework before explaining the topics.