L-6.5: Imp Question on Hashing | Linear Probing for Collision in Hash Table | GATE Questions

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • #Hashing #HashTable #OpenAddressing #LinearProbing
    👉Subscribe to our new channel: / @varunainashots
    ►Design and Analysis of algorithms (DAA) (Complete Playlist):
    • Design and Analysis of...
    Other subject-wise playlist Links:
    --------------------------------------------------------------------------------------------------------------------------------------
    ► Operating System :
    • Operating System (Comp...
    ►Database Management System:
    • DBMS (Database Managem...
    ► Theory of Computation
    • TOC(Theory of Computat...
    ►Artificial Intelligence:
    • Artificial Intelligenc...
    ►Computer Networks (Complete Playlist):
    • Computer Networks (Com...
    ►Computer Architecture (Complete Playlist):
    • Computer Organization ...
    ►Structured Query Language (SQL):
    • Structured Query Langu...
    ►Discrete Mathematics:
    • Discrete Mathematics
    ►Compiler Design:
    • Compiler Design (Compl...
    ►Number System:
    • Number system
    ►Cloud Computing & BIG Data:
    • Cloud Computing & BIG ...
    ►Software Engineering:
    • Software Engineering
    ►Data Structure:
    • Data Structure
    ►Graph Theory:
    • Graph Theory
    ►Programming in C:
    • C Programming
    ►Digital Logic:
    • Digital Logic (Complet...
    ---------------------------------------------------------------------------------------------------------------------------------------
    Our social media Links:
    ► Subscribe to us on UA-cam: / gatesmashers
    ► Like our page on Facebook: / gatesmashers
    ► Follow us on Instagram: / gate.smashers
    ► Follow us on Instagram: / varunainashots
    ► Follow us on Telegram: t.me/gatesmash...
    ► Follow us on Threads: www.threads.ne...
    --------------------------------------------------------------------------------------------------------------------------------------
    ►For Any Query, Suggestion or notes contribution:
    Email us at: gatesmashers2018@gmail.com

КОМЕНТАРІ • 115

  • @muhammadiqbalbazmi9275
    @muhammadiqbalbazmi9275 5 років тому +38

    A vigorous teacher.
    Quality unmatched.

  • @AstroDeeptej
    @AstroDeeptej Рік тому +26

    i think our initial value for probe should be zero, and not 1, because if we apply the linear probing function for first try, then H(k, 0)=(h(k)+0)=h(k) seems correct but if we take 1 then H(k, 1)=(h(k) + 1) will be the ans for the first check itself

    • @AyushSingh-vz8sc
      @AyushSingh-vz8sc Рік тому +4

      Exactly
      I think maximum probe value should be 8
      Because in case of key=8-->
      8*8mod10=4
      And when probe value is 8
      Then hash function becomes
      (8*8)+8mod10=2
      Which is the correct position.
      However if we take probe number as 9 we get hash value as 3 which is incorrect as we are inserting the element on 2nd position.

    • @NoumanHafeez-y3p
      @NoumanHafeez-y3p 4 місяці тому

      Exactly@@AyushSingh-vz8sc

    • @mukulsharma5055
      @mukulsharma5055 Місяць тому

      Yes you are correct

  • @shubhamsingh-xw3tf
    @shubhamsingh-xw3tf 2 роки тому +23

    I was banging my head against the wall to understand Hashing and these set of videos are very apt and clear. Thank you so much sir ❤️

    • @codingjony7400
      @codingjony7400 8 місяців тому

      I was fucking your mom during your wall banging phase

    • @aary-s3e
      @aary-s3e 8 місяців тому

      bro maybe you are dumb

  • @junaidrashid6147
    @junaidrashid6147 3 роки тому +20

    I am from kashmir Sir I am big fan of u may u live long

    • @saurabhbaloni8209
      @saurabhbaloni8209 Рік тому +3

      Hope you guys don't breach the security 🙏

    • @akhilesh8324
      @akhilesh8324 8 місяців тому +1

      Yaha par patthar bazi mat karna

    • @Developwithimran
      @Developwithimran 8 місяців тому

      ​@@akhilesh8324 Pathar sY darty hoo darphok

  • @taneshbalodi3620
    @taneshbalodi3620 3 роки тому +7

    A BIGG thanks to you for saving me every time, Loads of love to you.

  • @suchitathakur5913
    @suchitathakur5913 3 роки тому +7

    Everything will be easy until a good teacher like you teaches 🧡🧡

  • @nooriiusman123
    @nooriiusman123 4 роки тому +3

    Great bht achaa smjhyea apne keep it up bro

  • @preetireddy5668
    @preetireddy5668 5 років тому +7

    You so good in ur concepts

  • @aadarshkumar7505
    @aadarshkumar7505 3 роки тому +2

    Very-2 good lacture sir. I am fan of u.
    I am a student of MCA and I try to many time to solve this question in the class but it not happen.
    And now it's to easy like 2-3 table.😀
    Thanks sir.🙏

  • @muhammadtayyabtahirqureshi7186
    @muhammadtayyabtahirqureshi7186 2 роки тому +4

    I like your videos before I watch them bcz im always sure that you will provide the best...

  • @nafisakhan5425
    @nafisakhan5425 3 роки тому +3

    Great explanation sir...

  • @mshayanilyas8976
    @mshayanilyas8976 2 роки тому +2

    Thank you Very Much
    You are a great Teacher

  • @vijone111
    @vijone111 5 років тому +8

    Always salute you Sir for your Skills

  • @akravi8926
    @akravi8926 5 років тому +3

    hats off sir.. thank you so much

  • @umamaheswariseralathan6924
    @umamaheswariseralathan6924 4 місяці тому

    I am from Tamil Nadu, but I could understand every concept of you sir, Thank you so much sir.

  • @moonfahim
    @moonfahim 3 місяці тому

    your explaining is so clear that I can say you the best teacher

  • @zeetechtube8273
    @zeetechtube8273 4 роки тому +1

    Quality Lectures kindly provide Linked List lectures please .

  • @himanshutiwari1951
    @himanshutiwari1951 4 місяці тому

    thanks for this valuable content sir if you were not on youtube then many of students not cleared their uni exams easily !!

  • @SangArt
    @SangArt 2 роки тому +5

    Sir, how did u get the max probe value as 9. I calculated and got 8. (4+8)mod10 is 2. So it comes to 2nd position. But if we take probe value is 9 then it will be (4+9)mod10 which is 3 then if it was 9 then it would have gone to 13th position right?

    • @kavithapriyacj4868
      @kavithapriyacj4868 2 роки тому +1

      i too have same doubt dude...any idea u got

    • @SangArt
      @SangArt 2 роки тому

      @@kavithapriyacj4868 I just found it to be 8

    • @SangArt
      @SangArt 2 роки тому

      @@kavithapriyacj4868 did u try calculating it

  • @Aisha0512
    @Aisha0512 5 років тому +3

    Thank you sir😎

  • @anudeepm4883
    @anudeepm4883 8 місяців тому +2

    sir in L-6.2 you said that open hasing includes (chaining) and closed hashing includes (linear, quadratic probing and double hasshing) but in this video its different. Can you plz clarify which one to follow

  • @ektatyagi2227
    @ektatyagi2227 3 роки тому +2

    Thankyouu sir ❤️ for making this hashing so easy❤️

  • @zoyashokat513
    @zoyashokat513 4 роки тому +1

    good teacher i like ur teaching method and appricate u

  • @Aarti-Sweetshots
    @Aarti-Sweetshots 3 роки тому +1

    Thanks Sir for starting this channel

  • @MuhammadAfzal-pl2sp
    @MuhammadAfzal-pl2sp 4 роки тому +2

    Good explanation. To day is my paper of this subject.

    • @GateSmashers
      @GateSmashers  4 роки тому +1

      All the best

    • @MuhammadAfzal-pl2sp
      @MuhammadAfzal-pl2sp 4 роки тому

      @@GateSmashersthank you so much sir. I have attempt. Joins, index are hot topics but you did not make videos on view and Hashing in DBMS. Also important topics.

  • @Itzsainiqueen29
    @Itzsainiqueen29 4 роки тому +1

    Sir ap bhut amazing study karte ho👏👏👏

  • @SHASHANKRUSTAGII
    @SHASHANKRUSTAGII 5 років тому +1

    Bahut efforts. Love u

  • @arpangupta2162
    @arpangupta2162 5 років тому +2

    Concept refreshed
    Motto successful

  • @uniqueelsa5959
    @uniqueelsa5959 2 роки тому +1

    UNDERRRATEDDDDDDDDDDD

  • @rohitkumarj632
    @rohitkumarj632 5 років тому +4

    Sir what if the table length is 8 and key elements are 9 and if linear probe must be used? Can it be possible?

  • @arjumandvillagecooking
    @arjumandvillagecooking 3 роки тому

    really helpful

  • @kiran-yl9wd
    @kiran-yl9wd 4 роки тому +1

    Thank you sir

  • @prajaktakhobragade7314
    @prajaktakhobragade7314 4 роки тому

    Best CS Teacher on UA-cam

  • @pushpanjalijha2779
    @pushpanjalijha2779 Рік тому

    Thank you for explaining

  • @asifnoor2863
    @asifnoor2863 4 роки тому

    Please upload one more video on hashing concept and especially for chaining

  • @abidjamil-v1y
    @abidjamil-v1y Рік тому

    dear sir, I am from Pakistan,,,,
    I am heartly thankfull of you.

  • @alishachhabra7995
    @alishachhabra7995 3 роки тому

    WOW video

  • @vinothinijawahar6938
    @vinothinijawahar6938 5 років тому +1

    Request for a session on greedy algo nd algos

  • @tarunbhatia9791
    @tarunbhatia9791 5 років тому +2

    Sir plz december 2019 ka net ka paper solve li video upload kr do plz ...

  • @GAU-C--RATNAKANTAHANSE
    @GAU-C--RATNAKANTAHANSE 3 роки тому

    Thank you sir.....

  • @hafsakarim768
    @hafsakarim768 3 роки тому

    Use Quadratic probing to insert the following keys to the
    table
    90, 20, 51, 60, 11,26, 38
    Hash function is hash(x) = x mod 12.
    kindely plz sir solve this problem

  • @rubabsheikh8407
    @rubabsheikh8407 4 роки тому

    Bravo....

  • @happycoding5163
    @happycoding5163 3 роки тому

    perfectly explained....

  • @rahuldevlekar6809
    @rahuldevlekar6809 3 роки тому +1

    Sir I want this to watch this hashing technique topic from starting to end . From intro to end . Please send me link of rest lec .

  • @krishanudutta2943
    @krishanudutta2943 3 роки тому

    Excellent sir

  • @sundramdubey5782
    @sundramdubey5782 5 років тому +1

    nice & thanks....... 4th comment

  • @adu21
    @adu21 2 роки тому

    Thanks sir

  • @shivanidhavi7625
    @shivanidhavi7625 4 роки тому

    best best best😍👌

  • @PratimaYadav-bg3ug
    @PratimaYadav-bg3ug 3 роки тому

    Thanku sir 🙏

  • @muhammadzulqurnain4153
    @muhammadzulqurnain4153 3 роки тому

    Thanks

  • @AadeshingaleOfficial-zl5fd
    @AadeshingaleOfficial-zl5fd 7 місяців тому

    Nice Sir ☺️

  • @amiqsamuel1557
    @amiqsamuel1557 4 роки тому

    v.good tutorial

  • @achyutkumarsingh7308
    @achyutkumarsingh7308 4 роки тому

    Tnk you sir

  • @shonekuncheria3307
    @shonekuncheria3307 2 роки тому +3

    is linear probing used in open addressing or closed addressing?
    you said in the previous video that it is used in closed addressing

    • @debaratibanik01
      @debaratibanik01 2 роки тому +3

      Linear probing is used in open addressing ( open addressing is called closed hashing) (and the chaining is called open hashing)

  • @aakashgautam2200
    @aakashgautam2200 4 роки тому +2

    probe value should be 8 you counted 1 for the first time but it must be started from 0 .

    • @alishachhabra7995
      @alishachhabra7995 3 роки тому

      No, it is 9 count again

    • @SangArt
      @SangArt 2 роки тому +1

      @@alishachhabra7995 @Aakash Gautam even I got probe value as 8. Coz (4+8)mod10 which is 2 so we end up at 2nd position but if it was probe 9 then it would have ended up at the 3rd position which we didn't

  • @kholavirk2158
    @kholavirk2158 Рік тому

    If mod is greater then value and answer is given in point just like 1.6 then in which position we inset value

  • @arshmaryam9785
    @arshmaryam9785 3 роки тому

    Please elaborate this topic
    Load factor
    Please explain

  • @anweshadas7699
    @anweshadas7699 3 роки тому

    Plz explain dobule hashing

  • @akashbansal5501
    @akashbansal5501 3 роки тому

    ❤️❤️❤️

  • @crazyduniya128
    @crazyduniya128 2 роки тому

    Captions are awesome 😂😂😂😂

  • @shreyashinilay9730
    @shreyashinilay9730 Рік тому

    probe number is number of collisions then according to formula it is coming 8 (4+8)%10 and according to definition it is 8 because no. of collisions is 8...... how come 9 is the answer?

  • @AnshuRoy-r9d
    @AnshuRoy-r9d 5 місяців тому

    Sir you said linear is closed hashing in the previous video but now in this videa you are saying it in the open hashing 🤔🤔

  • @abhishekgupta0479
    @abhishekgupta0479 Місяць тому

    sorry but I have doubt in previous video you make diagram in which linear probing is under in closed hashing now you are saying it is in open Hashing

  • @babbarutkarsh7770
    @babbarutkarsh7770 4 роки тому

    Which CS subject does it come under, DBMS or OS? Cause I don’t think its included in any playlist of yours.

  • @siddiquiadnan92
    @siddiquiadnan92 4 роки тому

    What is time complexity for hash

  • @laxmanpatil1517
    @laxmanpatil1517 3 роки тому

    ⭐⭐⭐⭐⭐

  • @yashvisoni5819
    @yashvisoni5819 4 роки тому

    Sir ye video vo dbms ki playlist me nahi hai

  • @saleemhafiz19
    @saleemhafiz19 8 місяців тому

    Plz anybody confirm. Is the max prob 9 or 8?

  • @DSA.In.C
    @DSA.In.C Місяць тому

    Prob value ko hi collision kahte hai

  • @mohammadhamzatariq779
    @mohammadhamzatariq779 8 місяців тому

    Sir kash ye dekh liya hota
    😢😢

  • @DSA.In.C
    @DSA.In.C Місяць тому

    Sir isme number of collision nhi aaya why

  • @zeetechtube8273
    @zeetechtube8273 4 роки тому

    if the length of the hash table cant be given in the Question what we do .?

  • @kholavirk2158
    @kholavirk2158 Рік тому

    Sir if mod are not given then what we do please answer me

  • @kholavirk2158
    @kholavirk2158 Рік тому

    If size are given but mod are not given what we do

  • @darshitatripathi105
    @darshitatripathi105 2 роки тому

    Open adressing m aapne chaining batayi thi

    • @SangArt
      @SangArt 2 роки тому

      No that was open hashing. This is open addressing. Open addressing is also know as closed hashing

  • @shuvshaw9594
    @shuvshaw9594 4 роки тому

    Very helpful

  • @swatiraj5462
    @swatiraj5462 5 років тому

    what if the length is not provided?

  • @ParthPaTeL-wm3kt
    @ParthPaTeL-wm3kt 9 місяців тому +1

    Wrong Explanation, Probe value = number of collision, not as your explanation.

    • @naveenrawat1549
      @naveenrawat1549 4 місяці тому

      Brother then it's the same because you don't want to check if it is not colliding at that spot

  • @vivekrana1657
    @vivekrana1657 Рік тому

    Hash table length 15 hi jaye to kya hoga size of hash table

  • @guojunhuang4092
    @guojunhuang4092 4 роки тому

    is this video in English?

  • @lord_yzal
    @lord_yzal 2 роки тому

  • @shahwaliweb6505
    @shahwaliweb6505 Місяць тому

    Exam remaining only 24 minutes 😪

  • @Recap_box
    @Recap_box 5 місяців тому

    🪄 ✨ magic' by master

  • @Aisha_Singh1
    @Aisha_Singh1 8 місяців тому +1

    Probe value of 8 is 8

  • @sunitamp4723
    @sunitamp4723 5 років тому

    Sir ye kis subject ka question hai sir

  • @ridamazhar6879
    @ridamazhar6879 3 роки тому

    625÷10 ans is 62. 5 mood kesy niklty h olzz btaye

    • @Gamechanger..601
      @Gamechanger..601 3 роки тому

      Mod meand remainder value... to ur ans will be 5

  • @sanchitasharma5435
    @sanchitasharma5435 Рік тому

    1 mod 10 remainder toh 0 hai

    • @aryyann05
      @aryyann05 4 місяці тому

      dil pe haath rkh ke bol ki 1%10 = 1 nhi hota

  • @shafiabatool8528
    @shafiabatool8528 3 місяці тому

    9 mod 10= 1 not 9

  • @rubabsheikh8407
    @rubabsheikh8407 4 роки тому

    Normal ap s seekh re huh... mjy normal b nae are