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

  Рет қаралды 377,672

Gate Smashers

Gate Smashers

Күн бұрын

Пікірлер
@astrodeeptej
@astrodeeptej 2 жыл бұрын
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 Жыл бұрын
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 7 ай бұрын
Exactly@@AyushSingh-vz8sc
@mukulsharma5055
@mukulsharma5055 5 ай бұрын
Yes you are correct
@Yash2.0Sharma
@Yash2.0Sharma Ай бұрын
I think sir is crct don't consider i as probing value ,it will give wrong and just manually check probing value then it will ove right ans
@hemant_kumar_o4
@hemant_kumar_o4 Ай бұрын
I think prob number and prob value are two different things
@muhammadiqbalbazmi9275
@muhammadiqbalbazmi9275 6 жыл бұрын
A vigorous teacher. Quality unmatched.
@indianlardka2214
@indianlardka2214 10 ай бұрын
Science haram ha . Niklo harami.
@junaidrashid6147
@junaidrashid6147 3 жыл бұрын
I am from kashmir Sir I am big fan of u may u live long
@saurabhbaloni8209
@saurabhbaloni8209 2 жыл бұрын
Hope you guys don't breach the security 🙏
@akhilesh8324
@akhilesh8324 Жыл бұрын
Yaha par patthar bazi mat karna
@Developwithimran
@Developwithimran 11 ай бұрын
​@@akhilesh8324 Pathar sY darty hoo darphok
@Faizify1
@Faizify1 Ай бұрын
Kashmir mez kaeth jayee chuk roza bayya..
@shubhamsingh-xw3tf
@shubhamsingh-xw3tf 2 жыл бұрын
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 Жыл бұрын
I was fucking your mom during your wall banging phase
@aary-s3e
@aary-s3e Жыл бұрын
bro maybe you are dumb
@taneshbalodi3620
@taneshbalodi3620 3 жыл бұрын
A BIGG thanks to you for saving me every time, Loads of love to you.
@suchitathakur5913
@suchitathakur5913 3 жыл бұрын
Everything will be easy until a good teacher like you teaches 🧡🧡
@aadarshkumar7505
@aadarshkumar7505 3 жыл бұрын
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.🙏
@nooriiusman123
@nooriiusman123 4 жыл бұрын
Great bht achaa smjhyea apne keep it up bro
@roguefalcon2004
@roguefalcon2004 28 күн бұрын
Sir being the last moment saviour before exam ❤
@preetireddy5668
@preetireddy5668 6 жыл бұрын
You so good in ur concepts
@umamaheswariseralathan6924
@umamaheswariseralathan6924 8 ай бұрын
I am from Tamil Nadu, but I could understand every concept of you sir, Thank you so much sir.
@muhammadtayyabtahirqureshi7186
@muhammadtayyabtahirqureshi7186 2 жыл бұрын
I like your videos before I watch them bcz im always sure that you will provide the best...
@mshayanilyas8976
@mshayanilyas8976 3 жыл бұрын
Thank you Very Much You are a great Teacher
@moonfahim
@moonfahim 7 ай бұрын
your explaining is so clear that I can say you the best teacher
@himanshutiwari1951
@himanshutiwari1951 8 ай бұрын
thanks for this valuable content sir if you were not on youtube then many of students not cleared their uni exams easily !!
@puskarbanerjee4903
@puskarbanerjee4903 Ай бұрын
One day some of my friends were in a serious discussion upon hashing, I felt jealous and a bit disgrace that they had made a great progress! Once our dsa professor asked a question from hashing and though he hadn't tought it yet , one of them answered, which made me start learning about it! I thought that it must be an intricate topic, and mastering it would be a great progress, but after seeing your videos, i still think so😂
@abidjamil-v1y
@abidjamil-v1y Жыл бұрын
dear sir, I am from Pakistan,,,, I am heartly thankfull of you.
@nafisakhan5425
@nafisakhan5425 4 жыл бұрын
Great explanation sir...
@vijone111
@vijone111 6 жыл бұрын
Always salute you Sir for your Skills
@akravi8926
@akravi8926 6 жыл бұрын
hats off sir.. thank you so much
@ektatyagi2227
@ektatyagi2227 3 жыл бұрын
Thankyouu sir ❤️ for making this hashing so easy❤️
@prajaktakhobragade7314
@prajaktakhobragade7314 4 жыл бұрын
Best CS Teacher on KZbin
@Itzsainiqueen29
@Itzsainiqueen29 4 жыл бұрын
Sir ap bhut amazing study karte ho👏👏👏
@Aarti-Sweetshots
@Aarti-Sweetshots 4 жыл бұрын
Thanks Sir for starting this channel
@MuhammadAfzal-pl2sp
@MuhammadAfzal-pl2sp 4 жыл бұрын
Good explanation. To day is my paper of this subject.
@GateSmashers
@GateSmashers 4 жыл бұрын
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.
@zeetechtube8273
@zeetechtube8273 4 жыл бұрын
Quality Lectures kindly provide Linked List lectures please .
@aaryakapoor9023
@aaryakapoor9023 22 күн бұрын
tremendously explained
@zoyashokat513
@zoyashokat513 4 жыл бұрын
good teacher i like ur teaching method and appricate u
@khushijain9785
@khushijain9785 4 күн бұрын
Thank so much sir ❤❤❤❤❤❤❤❤❤❤😊😊😊
@sahilmorey3304
@sahilmorey3304 Ай бұрын
Dhanyawad sir 🙏🙏
@Aishwarya1405-w9m
@Aishwarya1405-w9m 6 жыл бұрын
Thank you sir😎
@lukmankhan_
@lukmankhan_ 3 сағат бұрын
Probe number for 64 will be 8 Probe value will be 2(It is the slot which it get's allocated to)
@anudeepm4883
@anudeepm4883 Жыл бұрын
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
@secret5868
@secret5868 Күн бұрын
Open addressing is same as Closed Hashing. Both are same.
@secret5868
@secret5868 Күн бұрын
Closed Addressing is Open Hashing.
@secret5868
@secret5868 Күн бұрын
programming.guide/hash-tables-open-vs-closed-addressing.html
@arpangupta2162
@arpangupta2162 6 жыл бұрын
Concept refreshed Motto successful
@SHASHANKRUSTAGII
@SHASHANKRUSTAGII 6 жыл бұрын
Bahut efforts. Love u
@pushpanjalijha2779
@pushpanjalijha2779 2 жыл бұрын
Thank you for explaining
@asifnoor2863
@asifnoor2863 4 жыл бұрын
Please upload one more video on hashing concept and especially for chaining
@SangArt
@SangArt 2 жыл бұрын
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 жыл бұрын
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
@uniqueelsa5959
@uniqueelsa5959 2 жыл бұрын
UNDERRRATEDDDDDDDDDDD
@rohitkumarj632
@rohitkumarj632 5 жыл бұрын
Sir what if the table length is 8 and key elements are 9 and if linear probe must be used? Can it be possible?
@kiran-yl9wd
@kiran-yl9wd 4 жыл бұрын
Thank you sir
@vinothinijawahar6938
@vinothinijawahar6938 5 жыл бұрын
Request for a session on greedy algo nd algos
@rahuldevlekar6809
@rahuldevlekar6809 4 жыл бұрын
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 .
@happycoding5163
@happycoding5163 4 жыл бұрын
perfectly explained....
@krishanudutta2943
@krishanudutta2943 3 жыл бұрын
Excellent sir
@arjumandvillagelife
@arjumandvillagelife 3 жыл бұрын
really helpful
@alishachhabra7995
@alishachhabra7995 4 жыл бұрын
WOW video
@GAU-C--RATNAKANTAHANSE
@GAU-C--RATNAKANTAHANSE 3 жыл бұрын
Thank you sir.....
@AadeshingaleOfficial-zl5fd
@AadeshingaleOfficial-zl5fd 11 ай бұрын
Nice Sir ☺️
@crazyduniya128
@crazyduniya128 3 жыл бұрын
Captions are awesome 😂😂😂😂
@rubabsheikh8407
@rubabsheikh8407 4 жыл бұрын
Bravo....
@amiqsamuel1557
@amiqsamuel1557 4 жыл бұрын
v.good tutorial
@PratimaYadav-bg3ug
@PratimaYadav-bg3ug 4 жыл бұрын
Thanku sir 🙏
@storyoflisa
@storyoflisa 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
@tarunbhatia9791
@tarunbhatia9791 6 жыл бұрын
Sir plz december 2019 ka net ka paper solve li video upload kr do plz ...
@Errrric123
@Errrric123 2 жыл бұрын
Thanks sir
@sundramdubey5782
@sundramdubey5782 6 жыл бұрын
nice & thanks....... 4th comment
@shivanidhavi7625
@shivanidhavi7625 4 жыл бұрын
best best best😍👌
@muhammadzulqurnain4153
@muhammadzulqurnain4153 3 жыл бұрын
Thanks
@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
@achyutkumarsingh7308
@achyutkumarsingh7308 4 жыл бұрын
Tnk you sir
@aakashgautam2200
@aakashgautam2200 4 жыл бұрын
probe value should be 8 you counted 1 for the first time but it must be started from 0 .
@alishachhabra7995
@alishachhabra7995 4 жыл бұрын
No, it is 9 count again
@SangArt
@SangArt 2 жыл бұрын
@@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
@arshmaryam9785
@arshmaryam9785 4 жыл бұрын
Please elaborate this topic Load factor Please explain
@akashbansal5501
@akashbansal5501 3 жыл бұрын
❤️❤️❤️
@anweshadas7699
@anweshadas7699 4 жыл бұрын
Plz explain dobule hashing
@lord_yzal
@lord_yzal 2 жыл бұрын
@mohammadhamzatariq779
@mohammadhamzatariq779 11 ай бұрын
Sir kash ye dekh liya hota 😢😢
@shonekuncheria3307
@shonekuncheria3307 2 жыл бұрын
is linear probing used in open addressing or closed addressing? you said in the previous video that it is used in closed addressing
@unstoppable-her001
@unstoppable-her001 2 жыл бұрын
Linear probing is used in open addressing ( open addressing is called closed hashing) (and the chaining is called open hashing)
@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 9 ай бұрын
Sir you said linear is closed hashing in the previous video but now in this videa you are saying it in the open hashing 🤔🤔
@siddiquiadnan92
@siddiquiadnan92 4 жыл бұрын
What is time complexity for hash
@generationx163
@generationx163 3 күн бұрын
what if the table is completely full?
@yashvisoni5819
@yashvisoni5819 4 жыл бұрын
Sir ye video vo dbms ki playlist me nahi hai
@zeetechtube8273
@zeetechtube8273 4 жыл бұрын
if the length of the hash table cant be given in the Question what we do .?
@shuvshaw9594
@shuvshaw9594 4 жыл бұрын
Very helpful
@laxmanpatil1517
@laxmanpatil1517 3 жыл бұрын
⭐⭐⭐⭐⭐
@kholavirk2158
@kholavirk2158 Жыл бұрын
If size are given but mod are not given what we do
@kholavirk2158
@kholavirk2158 Жыл бұрын
Sir if mod are not given then what we do please answer me
@DSA.In.C
@DSA.In.C 5 ай бұрын
Prob value ko hi collision kahte hai
@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.
@gaurimandot5788
@gaurimandot5788 2 жыл бұрын
DSA
@lisasamaddar4160
@lisasamaddar4160 Жыл бұрын
Data structure
@swatiraj5462
@swatiraj5462 6 жыл бұрын
what if the length is not provided?
@darshitatripathi105
@darshitatripathi105 3 жыл бұрын
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
@DSA.In.C
@DSA.In.C 5 ай бұрын
Sir isme number of collision nhi aaya why
@shahwaliweb6505
@shahwaliweb6505 5 ай бұрын
Exam remaining only 24 minutes 😪
@Recap_box
@Recap_box 8 ай бұрын
🪄 ✨ magic' by master
@vivekrana1657
@vivekrana1657 Жыл бұрын
Hash table length 15 hi jaye to kya hoga size of hash table
@AamirK11
@AamirK11 Жыл бұрын
0-14
@abhishekgupta0479
@abhishekgupta0479 5 ай бұрын
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
@ananyaxbhardwaj
@ananyaxbhardwaj 23 күн бұрын
yes he said that by mistake. its closed only
@Aisha_Singh1
@Aisha_Singh1 Жыл бұрын
Probe value of 8 is 8
@saleemhafiz19
@saleemhafiz19 Жыл бұрын
Plz anybody confirm. Is the max prob 9 or 8?
@cerinK
@cerinK 20 күн бұрын
Question me open addressing kyu likha hai
@guojunhuang4092
@guojunhuang4092 4 жыл бұрын
is this video in English?
@ParthPaTeL-wm3kt
@ParthPaTeL-wm3kt Жыл бұрын
Wrong Explanation, Probe value = number of collision, not as your explanation.
@naveenrawat1549
@naveenrawat1549 8 ай бұрын
Brother then it's the same because you don't want to check if it is not colliding at that spot
@sunitamp4723
@sunitamp4723 6 жыл бұрын
Sir ye kis subject ka question hai sir
@Aishwarya1405-w9m
@Aishwarya1405-w9m 6 жыл бұрын
Data structures
@sunilkumarsam150
@sunilkumarsam150 6 жыл бұрын
Hashing in data structure
@shafiabatool8528
@shafiabatool8528 7 ай бұрын
9 mod 10= 1 not 9
@ridamazhar6879
@ridamazhar6879 4 жыл бұрын
625÷10 ans is 62. 5 mood kesy niklty h olzz btaye
@Gamechanger..601
@Gamechanger..601 4 жыл бұрын
Mod meand remainder value... to ur ans will be 5
@sanchitasharma5435
@sanchitasharma5435 Жыл бұрын
1 mod 10 remainder toh 0 hai
@aryyann05
@aryyann05 7 ай бұрын
dil pe haath rkh ke bol ki 1%10 = 1 nhi hota
@rubabsheikh8407
@rubabsheikh8407 4 жыл бұрын
Normal ap s seekh re huh... mjy normal b nae are
Most Expected 30 Questions for GATE 2020 CSE | Question No #27
13:14
L-6.6: Quadratic Probing in Hashing with example
7:41
Gate Smashers
Рет қаралды 442 М.
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
L-3.13: Heap sort with Example | Heapify Method
13:38
Gate Smashers
Рет қаралды 1 МЛН
L-6.4: Linear Probing in Hashing with example
12:40
Gate Smashers
Рет қаралды 602 М.
Tools EVERY Software Engineer Should Know
11:37
Tech With Tim
Рет қаралды 22 М.
L-4.10: Dijkstra's Algorithm - Single Source Shortest Path - Greedy Method
15:49
Hashing Technique - Simplified
17:04
Abdul Bari
Рет қаралды 788 М.
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 538 М.