5.16 Red Black tree | Introduction to Red Black trees | DSA Tutorials

  Рет қаралды 730,666

Jenny's Lectures CS IT

Jenny's Lectures CS IT

4 жыл бұрын

In this lecture I have discussed basics of Red Black trees, need of Red Black trees, AVL trees vs Red Black Trees, properties of Red Black Trees with examples.
DSA Full Course: https: • Data Structures and Al...
******************************************
See Complete Playlists:
C Programming Course: • Programming in C
C++ Programming: • C++ Complete Course
Python Full Course: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
DAA Course: • Design and Analysis of...
Placement Series: • Placements Series
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
Connect & Contact Me:
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
#redblacktree
#datastructures
#ugcnetcomputerscience
#jennyslecture

Пікірлер: 705
@83vbond
@83vbond 4 жыл бұрын
I am studying IT in Australia currently. This is the first video I found on Red-Black trees where I actually understood the topic because you start from the basics and give lots of examples. Thanks and gratitude from Australia! Also, the last question tree is not Red-Black because the left NIL child of 15-node creates a black path that is of different length. Very good question, makes a person think deeply. Keep up the great work!
@asadkamal89
@asadkamal89 2 жыл бұрын
Can u please sponsor me for australian study visa???
@learncodeandphotoshop2328
@learncodeandphotoshop2328 2 жыл бұрын
hey, hi did you find a job? what your linkedin?
@inxeoz
@inxeoz Жыл бұрын
he is not from Australia 😂 see his name " 83vbond" == 83vinod === 83binod 😂😂😂😂
@hemanshuwaghmare7460
@hemanshuwaghmare7460 Жыл бұрын
bro kya faida Australia me padke chii bhai isse aacha tu india ke sarkari school me pad leta😂 paisa barbad!!!
@rkhumorist1341
@rkhumorist1341 7 ай бұрын
@@asadkamal89 yes i can sponsor you!!
@kdoxfkck
@kdoxfkck 2 жыл бұрын
Seriously.....you are too good at teaching....I rarely appreciate people....but u deserve not only appreciation but also a heart❤️❤️... Thankyou so much ma'am for your precious teaching...🙏🙏
@abs80900
@abs80900 3 жыл бұрын
In all the languages spoken on earth, THANK YOU SO SO SO MUCH!!!!!!
@vaibhavgarg4267
@vaibhavgarg4267 4 жыл бұрын
Great Explanation. You make complex topics easier. Awesome way of teaching :)
@Burak-cr6um
@Burak-cr6um 11 ай бұрын
I really appreciate this explanation, it's been super helpful. I was having a hard time, but now things make much more sense. Thanks a lot!
@a_sunshine_21
@a_sunshine_21 3 жыл бұрын
One of the best explained contents. Not only datastructre ,each and every video of urs. Best out of all. ❤
@AdityaPandey-ns8kl
@AdityaPandey-ns8kl 4 жыл бұрын
Videos like these make going to college absolutely unnecessary. Stupendous work!
@eddyecho
@eddyecho 4 жыл бұрын
This is only true for people that already know exactly what to study to learn what they want to learn. Otherwise I can't see how someone who has no prior knowledge would even know to search for this video or have any appreciation for it. I suppose someone could read an introductory textbook but most people don't do that.
@chrischauhan1649
@chrischauhan1649 2 жыл бұрын
This is one of the best explanation of the Red-Black tree on the internet. Kudos to you.
@ashu7pathak
@ashu7pathak 3 жыл бұрын
Awesome lesson, as answer to your question @ 32:43, it's not following 4th property as there is a left NIL node of 15 having only 1 Black node from root to NIL leaf node, all others have 2!
@factwithhunny078
@factwithhunny078 Жыл бұрын
Bro it is not complete binaray tree
@smokersmoker2529
@smokersmoker2529 7 ай бұрын
finally i found answer in comment section tq.......😇
@a.m.4154
@a.m.4154 6 ай бұрын
If you're following the DSA textbook by Goodrich, Goldwasser, and Tamassia, the violated property is also called the depth property ('ALL nodes with zero or one children have the same black depth whereby a black node counts as it's own ancestor') which is violated by node with key 15.
@nonstopcodingcodewithadity8238
@nonstopcodingcodewithadity8238 6 ай бұрын
tho kare kya fir ? @@a.m.4154
@vikas420mudimela9
@vikas420mudimela9 4 жыл бұрын
The most intelligent approach that i have never seen in my academic year
@ayushpaine5650
@ayushpaine5650 2 жыл бұрын
Galat college main padhrae tu
@patils22
@patils22 3 жыл бұрын
Hello mam, The BST is not a Red - Black Tree, since the path 10 - 15 - Nil has only 1 black node, whereas all other paths have 2 black nodes.
@TheAbsoluteSir
@TheAbsoluteSir 3 жыл бұрын
Can you give me a timestamp for the tree you are referencing?
@onkarhalder4660
@onkarhalder4660 3 жыл бұрын
@@TheAbsoluteSir 32.47
@AkhilPulidindi
@AkhilPulidindi 2 жыл бұрын
@@TheAbsoluteSir mam asked the question whether the tree is red black tree or not. She said to type answer in comments at 32:40
@aydendarian1785
@aydendarian1785 2 жыл бұрын
i know Im asking the wrong place but does anyone know of a way to get back into an Instagram account?? I was stupid forgot the login password. I would appreciate any help you can offer me
@sofiaabbasi2404
@sofiaabbasi2404 2 жыл бұрын
@@aydendarian1785 change password
@dominicjung4950
@dominicjung4950 4 жыл бұрын
I'm so grateful that these lectures are freely available. These lecture series made me think more deeply than I ever did in university...
@anuragtiwari2511
@anuragtiwari2511 3 жыл бұрын
dont know someone said this to you or not but, i would say best explanation ever heard....Appreciations:)
@amritpalsingh7262
@amritpalsingh7262 4 жыл бұрын
Thank you very much mam, i was waiting for this lecture especially from u n finally it's here. And getting to ur question, this not a RB tree, bcoz it's violating the last condition i.e. the no. of black trees are not same.
@jacksentalksjst7014
@jacksentalksjst7014 Жыл бұрын
as i am studying in germany here i found first video to clear all my doubts. thankyou so much mam.
@Milind.x
@Milind.x 4 жыл бұрын
your teaching made it easier to understand the concept..... thank u for such videos......
@AbhishekSingh-sy9ze
@AbhishekSingh-sy9ze 4 жыл бұрын
I was unable to explain this topic in Geeks for Geeks interview, although I am good at competitive programming. But you explanation is quite good. I knew the concept already but now I can explain it to anyone. Thanks a lot ! (I wish you were my teacher, so pretty) .
@vjayasinghe8695
@vjayasinghe8695 3 жыл бұрын
thankyou so many more.. i searched lots of videos about red black trees.. but i couldn't find any of video to touch my brain..this is the only one..thankyou so much.😍😘
@gabriellaryanie7342
@gabriellaryanie7342 4 жыл бұрын
I really love your videos since I have just started 2nd semester and is starting to learn data structure. Your videos have helped me finish my homework, recommended!
@34_harshdeepraghuwanshi98
@34_harshdeepraghuwanshi98 3 жыл бұрын
Where do you live?? India
@RISHABH-VERMA
@RISHABH-VERMA 7 ай бұрын
Woah, you studying red black trees in 2nd sem ?
@user-tz6ek3ot8e
@user-tz6ek3ot8e 3 ай бұрын
@@RISHABH-VERMA mera to 1st sem hai 😀
@RISHABH-VERMA
@RISHABH-VERMA 3 ай бұрын
@@user-tz6ek3ot8e Nice, I'm in PG
@nigarsultana1739
@nigarsultana1739 3 жыл бұрын
Definitely a great lecture mam. I am very beginner but I understood your videos completely. Thank you so much mam.
@Nitishkumar-rd4jq
@Nitishkumar-rd4jq 4 жыл бұрын
India needs these kind of people for educating other's for free of cost
@studyonline3236
@studyonline3236 Жыл бұрын
lecture starts at 8:21 and 11:50
@mohit7875
@mohit7875 4 жыл бұрын
The process of teaching is very well and I am very thankful to you
@mbm662
@mbm662 11 ай бұрын
Thank you ma'am for the best explanation ❤ . Yours teaching classes are very helpful for engineering students 🙏
@Amira20234
@Amira20234 4 жыл бұрын
Really Great Lecture.. Not found this much information any where,, Many thanks from Germany
@muhammadmuneeb1125
@muhammadmuneeb1125 4 жыл бұрын
Thanks a lot Mam, I am from Pakistan you are too much hard-working lady. May Allah bless you with your dreams Again Thanks a lot mam
@dineshbs6635
@dineshbs6635 2 жыл бұрын
Insertion in AVL tree takes a maximum of 2 rotations. Deletion can many rotations. Hence, Red Black trees are used if insertion & deletion operations are very frequent
@MuhammadUsama-zf3iu
@MuhammadUsama-zf3iu 4 жыл бұрын
Awesome Video, Thanks for Sharing, It always amazing to learn from beauty with the mind.
@poojatiwari7043
@poojatiwari7043 4 жыл бұрын
Last property is being violated. ...thank u so much mam for this lecture
@a-064ramakantchhangani4
@a-064ramakantchhangani4 2 жыл бұрын
The node with value 15 has no left child and total number of black nodes to the path 15 -> NIL is 0 while to the path 15 -> 25 -> 20 -> NIL is 1 and such further paths . So , not a red black tree.
@mrthundergodpro
@mrthundergodpro 2 жыл бұрын
Bro we know nil node also a black node so we count that node so it is red black tree
@qazidawood995
@qazidawood995 2 жыл бұрын
@@mrthundergodpro nill is a black bit that is one extra for each... I think ta makant has a valid point.. Its not a rbt
@shaankhaan1686
@shaankhaan1686 2 жыл бұрын
@@mrthundergodpro yes but if this u consider than every path has one nil leaf so then total no of black in each path is not same bro😀
@vasusuryavamsham4882
@vasusuryavamsham4882 2 жыл бұрын
15 has another left nil node which makes a path from 10 with only 2 black nodes so it is not red black tree
@utkarshsingh5084
@utkarshsingh5084 2 жыл бұрын
Sir aap idhar 🦧🦧🦧
@andrew2jaramillo
@andrew2jaramillo 4 жыл бұрын
I don't understand how ppl can give her a negative review. This is so good!!
@alekyaathaluri5123
@alekyaathaluri5123 3 жыл бұрын
no one here gave negative review
@ericfricke4512
@ericfricke4512 3 жыл бұрын
Very thorough and clear, thanks.
@ArjanJandu
@ArjanJandu 3 жыл бұрын
You're amazing, I honestly can not thank you enough!
@simple_hiddencomputer_tric9579
@simple_hiddencomputer_tric9579 2 жыл бұрын
Beauty and wisdom in one person ..bravo!
@newsanalysis4831
@newsanalysis4831 Жыл бұрын
kzbin.info/www/bejne/apmlZ2CXbatsj9k
@stasbakalo6264
@stasbakalo6264 Жыл бұрын
Wow, that is very clarifying explanation, thank you!
@shubhamaggarwal4676
@shubhamaggarwal4676 2 жыл бұрын
Awesome teaching and great explanation ❤️❤️
@raginirajpoot2711
@raginirajpoot2711 2 жыл бұрын
Thanks a lot Ma'am. You are amazing 🤩🤩🤩 Just Because of you I understood Data Structure last year .... And now finally I found your videos about DAA... 😁😁
@ayushpaine5650
@ayushpaine5650 2 жыл бұрын
Abe pucha kisne
@raginirajpoot2711
@raginirajpoot2711 2 жыл бұрын
@@ayushpaine5650 saaale teri esi ki tesi........kyu bhonk rha he be.......mirgi ke dore to na pd rhe tereko.....saale chle aave muh uthake .,..🤬🤬🤬😡😡😡😡
@manjunathar2840
@manjunathar2840 4 жыл бұрын
Really Great Lecture.. Not found this much information any where...
@summaryaduvanshi8955
@summaryaduvanshi8955 4 жыл бұрын
Thank you Soo much for making this topic is very easier to understand...thanx mam a lots of..
@SaileeShingare
@SaileeShingare 3 жыл бұрын
Thank you making me understand the concept of red- black tree clearly, needed this in lockdown ☺️
@ayushpaine5650
@ayushpaine5650 2 жыл бұрын
Randike lockdown Main kya karra tha tu
@cheesecubes2682
@cheesecubes2682 4 жыл бұрын
Awesome video. I learnt a lot, thank you!
@user-yy8bm7dh7z
@user-yy8bm7dh7z Жыл бұрын
After watching your videos definately I am big fan of you.thanks for your teaching
@saaagararts
@saaagararts 4 жыл бұрын
32:45 It os *NOT* Red-Black tree. Because it is voilation property of every path has same Black Nodes. (At node 15 path is having only 1 Red Tree).
@satya8411
@satya8411 3 жыл бұрын
Shortcut: If a red node exists it shouldn't have a single child It should always have 0 children or 2 children
@ashu7pathak
@ashu7pathak 3 жыл бұрын
@@satya8411 I agree!
@sagar104gurgaon
@sagar104gurgaon 3 жыл бұрын
www.geeksforgeeks.org/red-black-tree-set-1-introduction-2/ please go thru it.
@chinmaywalinjkar7340
@chinmaywalinjkar7340 3 жыл бұрын
this is the wrong answer pls don't misguide
@mrwlf4840
@mrwlf4840 3 жыл бұрын
@Satya
@sujathaganesna9604
@sujathaganesna9604 3 жыл бұрын
I am listening to my online classes from 1week on topic red black tree...but this 30 min video helped a lot to understand....tq so much mam ...❤️
@jithunniks
@jithunniks 27 күн бұрын
You really have an exceptional ability to explain.
@karennino6639
@karennino6639 3 жыл бұрын
Hi! Jenny thanks for your useful videos, do you happen to have a video explaining time complexity?
@suhailansari1156
@suhailansari1156 3 жыл бұрын
Best explanation I have ever seen , thank uuh mam 😊
@techfocusplus
@techfocusplus 4 жыл бұрын
Hello Jenny, thumbs up for the well explained lesson, can you please make a video of all the Balanced BSTs together, maybe like a summarized video. Thanks.
@jenishdholariya6224
@jenishdholariya6224 4 жыл бұрын
I am waiting for that video thank you so much mam you are helping us very much .. . 👩‍🏫
@neelmanikumar6765
@neelmanikumar6765 4 жыл бұрын
Thank You, ma'am, for such a beautiful explanation ...
@SandeepKumar-lh7ge
@SandeepKumar-lh7ge 4 жыл бұрын
Waiting for this... Thanks you so much Mam😊😊 Keep it up 🤗
@JennyslecturesCSIT
@JennyslecturesCSIT 4 жыл бұрын
yup... will upload insertion and deletion on tomorrow and day after tomorrow
@susml767
@susml767 Ай бұрын
You are unique!! Excellent and to the point!!
@dharmeshshrivastava6714
@dharmeshshrivastava6714 Жыл бұрын
Ma'am Please make videos to elaborate Computational Geometry (1D,2D, Quad tree etc). I also would like to mention that your way of teaching is awesome. Thanks.
@norvalxavierblaquiere2746
@norvalxavierblaquiere2746 3 жыл бұрын
Thank you very much for your great lesson.
@ashu7pathak
@ashu7pathak 3 жыл бұрын
14:06 - Head of family, like grand parents do yoga and always remain calm. Therefore, root's always black :D
@Laloloop
@Laloloop 4 жыл бұрын
I feel like an expert in red-black trees now haha, and I’ve never read anything for more than 2 mins about it. So, the last example is not a red-black tree, because in the right side you have a path to a nil with only one black node, and the others have 2 black nodes. Still a little bit confused on usages, although the properties of self balancing are pretty cool, I guess that’s what the red or black abstraction is for. Thank you! Keep up the good work!
@chocolaty_gurl
@chocolaty_gurl 2 жыл бұрын
No bro in right side also 2 B nodes one is root that is always black
@fallinlovewithcars
@fallinlovewithcars 3 жыл бұрын
Thanku sooooo much ma'am for these lecture. These lecture help a lot for our university exams
@Priya_happyface
@Priya_happyface 4 жыл бұрын
Aap bahut acha insaan ho Aise hi hmari help krti rehna mam Phir jab job mil jayega to aapse Milne aaungi
@JennyslecturesCSIT
@JennyslecturesCSIT 4 жыл бұрын
promise kro ki milne aaoge.... hehehe
@Priya_happyface
@Priya_happyface 4 жыл бұрын
@@JennyslecturesCSIT promise mam
@harshjha5304
@harshjha5304 4 жыл бұрын
@Md Aman job lagalo pehle :)
@unboxing9416
@unboxing9416 4 жыл бұрын
@@JennyslecturesCSIT hehe
@amanmaddhesiya566
@amanmaddhesiya566 4 жыл бұрын
The way u explain is very nice Keep it up mam
@larsson4488
@larsson4488 3 ай бұрын
This is top notch teaching!! Many thanks
@akanshasharma1365
@akanshasharma1365 4 жыл бұрын
didi you are so good , because of you i m interested in daa , thanks for clearing our doubt
@shahdmohammed9514
@shahdmohammed9514 11 ай бұрын
you are perfect !! thanks for bieng this professional
@anjalikhatri1962
@anjalikhatri1962 4 жыл бұрын
Thank you mam for doing such a great work❤
@Badwolff.
@Badwolff. 3 жыл бұрын
Hi she is the best teacher
@yuvaraj9268
@yuvaraj9268 3 жыл бұрын
Thank you very much for the nice explanation, very helpful
@hamzaanwar7204
@hamzaanwar7204 Жыл бұрын
Ma'am the way of ur teaching is just mindblowing😇
@Amine-gz7gq
@Amine-gz7gq 2 жыл бұрын
Very clear ! Thank you, I can sleep less ignorant about this topic. C++ STL's std::map is a RB-tree.
@armandoantoniogarduno4969
@armandoantoniogarduno4969 2 жыл бұрын
Thanks for sharing, the RB Trees looks clearer now.
@ushavarma1138
@ushavarma1138 3 жыл бұрын
really your lectures amazing ,thank u .....
@sahilgaikwad2002
@sahilgaikwad2002 3 жыл бұрын
Mam you are amazing I have lot confusion about red black tree. After watching this video that confusion is gone 😃 thank you mam🙏❤️😊
@hitlerkumari1912
@hitlerkumari1912 4 жыл бұрын
Best explanation .. thanks a lot mam...❤️❤️
@kashmiramathur8673
@kashmiramathur8673 3 жыл бұрын
Thanks a lot maam u r doing a really great job. Grateful to uh
@NitinRamachandran
@NitinRamachandran 3 жыл бұрын
Very nice and well explained video. I ha e a better grasp on it now.
@hemanthsuresh
@hemanthsuresh Жыл бұрын
Thank You very much maam because you are doing a great job especially at these times where everyone is running behind profit and money . Some good humans still exists in this pathetic world. 🙏
@ThisIsMMI
@ThisIsMMI 2 жыл бұрын
Thank you ma'am for explaining so clearly
@bhargavdanda6371
@bhargavdanda6371 4 жыл бұрын
Thank u mam for sharing your knowledge 🙏
@nareshnaresh7087
@nareshnaresh7087 3 жыл бұрын
Thank's very Much for this video mam It helped me a lot
@sisi634
@sisi634 3 жыл бұрын
very clearly, such a nice video!
@abhisheksiwach1406
@abhisheksiwach1406 Ай бұрын
Thanks a lot for all the efforts !
@vakhariyajay2224
@vakhariyajay2224 2 жыл бұрын
Thank you very much. You are a genius. 👍👍🙏🙏👌👌🔝🔝
@americantech4151
@americantech4151 Жыл бұрын
Great Explanation. I learnt a lot,Thanks you so much Mam....from srilanka❤
@sriramamara5100
@sriramamara5100 4 жыл бұрын
Mam love you .. excellent teaching
@chetnawadhwa4345
@chetnawadhwa4345 2 жыл бұрын
Very knowledgeable and understanding video
@susenakodumuri2667
@susenakodumuri2667 4 жыл бұрын
Really love you mam.... Awesome explanation ❤️
@tushargupta2009
@tushargupta2009 4 жыл бұрын
most awaited topic, thnku mam
@vgreddysaragada
@vgreddysaragada 9 ай бұрын
very good explanation.. Thank you so much
@chamnil8666
@chamnil8666 4 жыл бұрын
Thank you so much pretty lady,your videos are so helpful.you are blessed.
@GauravSharma-xl3nc
@GauravSharma-xl3nc 3 жыл бұрын
Mam your lecture was really helpful thanks to teach us
@surishettyrithvik9883
@surishettyrithvik9883 4 жыл бұрын
Your explanation is very good mam👌
@paulina5247
@paulina5247 3 жыл бұрын
Great video, thank you a lot!
@princekumar-ot1ul
@princekumar-ot1ul Жыл бұрын
In last example(at 32:50)........It is not a RB tree.....violating last property(at node 15)
@bikrambikashdas4057
@bikrambikashdas4057 3 ай бұрын
true
@sirishagolla9631
@sirishagolla9631 3 жыл бұрын
Iam not understand English properly but your speaking iam easily understood you have awesome English skills mam ❤️
@shaswatdasgupta3776
@shaswatdasgupta3776 4 жыл бұрын
Hi All my life I feared datasturcture until I came across your channel. Thank you so much. About the question definitely its not a red black tree because, the no of black nodes from the root to leaf nodes is not constant. From left if I consider nil then the no of black nodes are 3, but the right sub tree it's 2 (If a black node is consider after 15 (Red).Did I get it right? 👍 from Bangalore
@LochanSaroy
@LochanSaroy 2 жыл бұрын
Bro isn't this tree voilenting the 4 the property that is ''Every leaf which is nil should be black'''.
@lilkidstuff
@lilkidstuff 2 жыл бұрын
For the last rule are you counting the NIL node to be a black node or once you reach it do you stop counting? In other words do you include it or not include it in your count of black nodes
@arusanoor6594
@arusanoor6594 4 жыл бұрын
i love ur teaching method
@fakegmail3051
@fakegmail3051 2 жыл бұрын
just loved your teaching.................🤩🧡
@mahendrasahani9148
@mahendrasahani9148 6 ай бұрын
good teaching methodology...thankq madam
@sujitsahoo3081
@sujitsahoo3081 4 жыл бұрын
In red black tree each node takes an extra space as coloring. So even it is faster while inserting it need approx 20% more space.
@nirmalrajpurohit2728
@nirmalrajpurohit2728 2 ай бұрын
Quality teaching !
@codingpracticewithabrar9554
@codingpracticewithabrar9554 3 жыл бұрын
Great lecture and the answer to question on the end is 10->15->nil path, the count of black property is not maintained
@henriicker
@henriicker 3 жыл бұрын
Thanks for sharing your knowleadge
@sahebsarkar8330
@sahebsarkar8330 4 жыл бұрын
Mam if i go right side of the tree and left of 15 then i get only 1 black node(if we not counting the NULL as a black node), i think that why it is not a red black tree.
5.17 Red Black Tree Insertion | Insertion Algorithm | Data Structure Tutorials
27:41
10.1 AVL Tree - Insertion and Rotations
43:08
Abdul Bari
Рет қаралды 1,1 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 7 МЛН
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 33 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 7 МЛН
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 75 МЛН
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Red-Black Trees - Data Structures
13:01
MisterCode
Рет қаралды 210 М.
Germany | Can you solve this ? | Math Olympiad  (x,y)=?
11:02
Learncommunolizer
Рет қаралды 6 М.
Best Order to Learn Algorithms & Data Structures
1:00
NeetCodeIO
Рет қаралды 164 М.
10.2  B Trees and B+ Trees. How they are useful in Databases
39:41
Abdul Bari
Рет қаралды 1,1 МЛН
AVL trees in 5 minutes - Intro & Search
5:00
Michael Sambol
Рет қаралды 64 М.
Data structures: Binary Tree
16:17
mycodeschool
Рет қаралды 1,4 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 7 МЛН