Tutorial: Binary Indexed Tree (Fenwick Tree)

  Рет қаралды 64,009

JAlgs

JAlgs

Күн бұрын

Пікірлер: 131
@dakshays6375
@dakshays6375 4 жыл бұрын
Best explanation of BIT on KZbin
@elpuri2
@elpuri2 8 жыл бұрын
Needed to look up BIT and ended up here. Definitely better than the top ranked videos on the subject. Good job with the illustrations. Also a perfect pace for me.
@adityamantri7828
@adityamantri7828 4 жыл бұрын
Yeah you're welcome sissy!
@hshah8831
@hshah8831 8 жыл бұрын
One of the best explanation for binary indexed tree, i've come across so far.
@ompatel8091
@ompatel8091 4 жыл бұрын
Incredibly well made explanation and visualization! Hats off to you bud.
@sarswataryan59
@sarswataryan59 3 жыл бұрын
finally found a tutorial that is so clear to understand......this should be on the top of search list. Good JOB!!!!
@rayxr
@rayxr 4 жыл бұрын
Dude, you clutched tf out of this explanation. The way my professor did this was so unnecessarily confusing after seeing this. Great job.
@allanlago1
@allanlago1 7 жыл бұрын
It is hard to find a good tutorial about computer science on youtube, but this one is it. Very good job
@commentator2407
@commentator2407 2 жыл бұрын
i dont usually comment........this is so crystal clear explaination even for beginners.... thank u
@CorpusGigantus
@CorpusGigantus 8 жыл бұрын
14:18 If you are using 1-indexed arrays I believe the "while idx < len(bit_arr)" should be "while idx
@gsscala
@gsscala 5 ай бұрын
thought the same thing about
@onurcanisler
@onurcanisler 3 жыл бұрын
*Hats off for this incredible teacher.*
@quantumcookie64
@quantumcookie64 7 жыл бұрын
I've heard a lot of people say that BIT is difficult to understand... Maybe they haven't found your tutorial yet :)
@jalgs4210
@jalgs4210 7 жыл бұрын
+Sethu Kumar Great to hear. Thanks a bunch.
@adityamantri7828
@adityamantri7828 4 жыл бұрын
Or mine big guy
@ashutoshaswal
@ashutoshaswal 4 жыл бұрын
Best Explanation I Ever Found About BIT! Thank You Sir!
@chaitanyagawande855
@chaitanyagawande855 4 жыл бұрын
very insightful and helpful tutorial in understanding Fenwick in a clear way. Thank you for your efforts.
@YeGaogaosanyong
@YeGaogaosanyong 4 жыл бұрын
Great tutorial. I think I finally understand how Fenwick tree works under the hood. Big thanks!
@sumit6b
@sumit6b 4 жыл бұрын
I don't think BIT could be explained in any way better than this. Thanks a lot!
@christinehill4491
@christinehill4491 8 жыл бұрын
This is a very good tutorial. It should be the highest rated BIT tutorial.
@tonywen7412
@tonywen7412 7 жыл бұрын
Very good and clear explanation of how BIT works and why it works.
@pavanputhra
@pavanputhra 5 жыл бұрын
Best I have found so far on Binary Index Tree. I could understand in one go
@competitivecoding9965
@competitivecoding9965 5 жыл бұрын
Absolute masterpiece .Can't stress enough about how good this tutorial is .Thank you so much!
@adityamantri7828
@adityamantri7828 4 жыл бұрын
No problem buddy!
@dineshraj5957
@dineshraj5957 3 жыл бұрын
best explanation I have found so far!
@ilikememes9052
@ilikememes9052 4 жыл бұрын
Thanks for this video explanation, I always lookup for videos which explains concepts behind them. I saw many videos on this topic "Fenwick Trees" but they teach theory only. Finally, After a long way through watching videos I came on this video. Definetly deserves my Like. Cheers
@narasimhaswamy5464
@narasimhaswamy5464 2 жыл бұрын
This was so perfect that anyone can understood in one go.
@diwu689
@diwu689 7 жыл бұрын
This was the best explanation of BIT that I found on youtube!
@eldarahmadov1275
@eldarahmadov1275 4 жыл бұрын
I cannot thank you enough for making this crystal clear! Great job!
@omarkhaled-os2wv
@omarkhaled-os2wv 8 жыл бұрын
Way to go ! it is a very good tutorial. It is the best tutorial of Binary indexed tree I watched before. Really other tutorials are terrible comparing to yours.
@adityamantri7828
@adityamantri7828 4 жыл бұрын
Other than mine
@pushkarsoni8927
@pushkarsoni8927 5 жыл бұрын
This is Exactly What I need , Thank you .. Does anyone Know some other Tutorials for other topics where explanation is this very good cuz these kind of videos are hard to find.
@stablesort
@stablesort 4 жыл бұрын
I agree, this is an excellent tutorial. For other topics, including a different angle on visualizing Fenwick Trees, try: kzbin.info/www/bejne/Y5zIlYSqZ7qgpKc
@shankhashubhramukherjee3585
@shankhashubhramukherjee3585 4 жыл бұрын
amazing video...such a clear and visual approach to understand....
@xyzhang6053
@xyzhang6053 5 жыл бұрын
Although the accent is not the best, but the content is supreme.
@davidmuk9871
@davidmuk9871 8 жыл бұрын
Nice tutorial! I come across this BIT structure by accident, didn't know there's such a efficient tree
@indigoturtle5234
@indigoturtle5234 7 жыл бұрын
I'm pretty sure x & (x-1) also works for the bit-wise operation, and its easier!
@pushkarsoni8927
@pushkarsoni8927 5 жыл бұрын
it removes the last bit but how to add to last bit?
@adityamantri7828
@adityamantri7828 4 жыл бұрын
NO IT DOESN'T. DON'T DROP OUT OF SCHOOL KIDS OR YOU'LL TURN OUT LIKE THIS GUY
@wsss6088
@wsss6088 7 жыл бұрын
Better than the rank 1 video in KZbin search. Thank you!
@pushkarsoni8927
@pushkarsoni8927 5 жыл бұрын
Hey, do you compete in HackerEarth?
@adityamantri7828
@adityamantri7828 4 жыл бұрын
You're welcome!
@Ruddradev
@Ruddradev 8 жыл бұрын
This was very nice Jack. I thoroughly enjoyed the simple way you explained this topic.
@adityamantri7828
@adityamantri7828 4 жыл бұрын
Oh haha, thank you! *Blushes*
@yiyang4368
@yiyang4368 7 жыл бұрын
No doubt it's the best tutorial on Binary Indexed Tree! Thank you so much!
@adityamantri7828
@adityamantri7828 4 жыл бұрын
You're welcome kid!
@yaswanthchunduru5298
@yaswanthchunduru5298 3 жыл бұрын
The awesome lecture that I hed has ever seen, Thanks
@xenowits
@xenowits 5 жыл бұрын
too good explanation!!Perfect hats off dude clarity of concepts is mindblowing
@Evcurik
@Evcurik 8 жыл бұрын
Really good tutorial, I suppose the others want to gain more watches by making the videos so poor, you have to watch them again and again, but yours was good enough to get the subject for the first time :D Would be great if you do the AVL or black/red tree tutorial, these are very poorly made :D Thanks a lot ;)
@arpit35007
@arpit35007 6 жыл бұрын
+Eva Nedeliaková The exact thing cam to my mind.
@adityamantri7828
@adityamantri7828 4 жыл бұрын
Thanks, I know I do a lot for the community
@jkinsella
@jkinsella 8 жыл бұрын
Phenomenal explanation. Looking forward to more algorithm vids
@ezizdurdyyev3813
@ezizdurdyyev3813 4 жыл бұрын
the best explanation so far!!!
@tofrom8541
@tofrom8541 2 жыл бұрын
Very awesome and nice explanation .
@092fariaafrin7
@092fariaafrin7 3 жыл бұрын
Simply Awesome!! 💜💜
@stablesort
@stablesort 4 жыл бұрын
Very well done!
@WangYangX
@WangYangX 6 жыл бұрын
Very intuitive explanation of BIT
@ojasgupta1454
@ojasgupta1454 4 жыл бұрын
Really good explanation
@xfw1030
@xfw1030 6 жыл бұрын
by far the best explanation. thank you !
@nipulsindwani117
@nipulsindwani117 4 жыл бұрын
That was really amazing, understood in one go
@josevillegas2721
@josevillegas2721 7 жыл бұрын
You can also clear the last set bit of x by doing x = x & (x-1)
@SharatS
@SharatS 7 жыл бұрын
Great illustrations on the video. Made it easy to understand :)
@aftabulislam592
@aftabulislam592 8 жыл бұрын
Very simple and easy to understand tutorial. Thanks
@purnima_2
@purnima_2 6 жыл бұрын
Best video tutorial for fenwick tree. Thanks a lot
@fernandogabrieli2915
@fernandogabrieli2915 3 жыл бұрын
thank you for this video! it was very helpful to me
@sahil8565
@sahil8565 4 жыл бұрын
Great Video! Please upload more like these !
@arjundas1830
@arjundas1830 7 жыл бұрын
good job.. This is very good, great illustrations.
@ankitbansal2303
@ankitbansal2303 4 жыл бұрын
Great Explanation
@siddharthgaur7919
@siddharthgaur7919 6 жыл бұрын
Nice illustration!!
@B0JACK
@B0JACK 4 жыл бұрын
Great job with this
@esrefozdq
@esrefozdq 8 жыл бұрын
Nice tutorial with clear explanations.
@CSERohitKartik
@CSERohitKartik 4 жыл бұрын
very clear and precise!
@yangli6597
@yangli6597 4 жыл бұрын
It's a great tutorial i had seen of BIT. But I found a little typo at 9:39 which we need to from position 6 to position 4, so we need to take the last set bit 1 flip to zero. The binary representation of 6 is 0110, convert to 4 which is 0100. So did you say in the video "0110 which is 6 and we flip the last set bit again ane we end up with 1011" is wrong? Did you want to say "we end up with 0100"?
@johannesginthaburg8954
@johannesginthaburg8954 8 жыл бұрын
Can someone explain why we need to do x & -x? isn't this just 1? why not just do index + 1, index -1. to get the next or parent respectively?
@yusizhang8083
@yusizhang8083 8 жыл бұрын
It is trying to get the **rightmost** "1" in the bit. Say in memory we represent integer using 8bits(for the simplicity), so that if the idx is integer 8, which will be (00001000). Then -idx will be (111101111) + 1(flip every bit and add 1), which is (11111000). Now if you do "&"(AND) operation, you will get (00001000). This is what you want eventually, the **rightmost** "1" in the bit.
@johannesginthaburg8954
@johannesginthaburg8954 8 жыл бұрын
Yusi Zhang wow, you just blew my mind. thanks for taking the time to comment.
@rajeshmanchikanti6733
@rajeshmanchikanti6733 10 ай бұрын
It was very good explaination
@jasonl207
@jasonl207 7 жыл бұрын
thank you very much! finally I understand how it is constructed
@valvakar1622
@valvakar1622 7 жыл бұрын
Very nicely explained, thanks!
@vishnuvardhan623
@vishnuvardhan623 5 жыл бұрын
very precise loved it
@_thehunter_
@_thehunter_ 4 жыл бұрын
thanks for making this video, it was really helpful...
@ArjunTanwar900
@ArjunTanwar900 4 жыл бұрын
why dont you make more videos on algorithms, you explain things really well
@yyl3683
@yyl3683 4 жыл бұрын
Great explanation! Thanks!
@RaviChoudhary_iitkgp
@RaviChoudhary_iitkgp 8 жыл бұрын
thanks for simple and elegant explanation...
@seyoungj
@seyoungj 7 жыл бұрын
Thank you a lot. Well explained and easy to understand!
@lingyongwang2817
@lingyongwang2817 8 жыл бұрын
Great Video!
@GusGusCastelanos1997
@GusGusCastelanos1997 8 жыл бұрын
Great video man!
@minecroft
@minecroft 8 жыл бұрын
thanks for your time and this great video 👍🏻
@akhilkaushik7348
@akhilkaushik7348 6 жыл бұрын
Good Tutorial. Keep it up !
@SonuSonu-tk5pk
@SonuSonu-tk5pk 6 жыл бұрын
amazing explanation thanks for the video
@rockgitmo
@rockgitmo 8 жыл бұрын
Very good tutorial!
@santanabas
@santanabas 8 жыл бұрын
brilliant explanation
@kalhou2145
@kalhou2145 8 жыл бұрын
excellent explanation! thanks!
@xiaoranlr
@xiaoranlr 8 жыл бұрын
Great tutorial!
@nzjaunnoo6030
@nzjaunnoo6030 8 жыл бұрын
Wonderful! Thank you so much.
@21scars66
@21scars66 5 жыл бұрын
dis right here is d goddamn treasure!
@story_time_43
@story_time_43 7 жыл бұрын
thanks a lot, really good tutorial
@arpit35007
@arpit35007 6 жыл бұрын
Really nice video
@momo57563
@momo57563 6 жыл бұрын
Great Video!!!
@EalhamAlMusabbir
@EalhamAlMusabbir 7 жыл бұрын
Thanks a lot for the nice tutorial... :)
@xiqiruan2848
@xiqiruan2848 5 жыл бұрын
omg finally I understood it!
@user-wc1sm8cj8s
@user-wc1sm8cj8s 4 жыл бұрын
not sure if this is an ASMR Fenwick tree video or what. Just kidding
@testshar2117
@testshar2117 2 жыл бұрын
9:37 - Did you say 1011 is 4? That's wrong.
@vetiarvind
@vetiarvind 7 ай бұрын
i don't really get it alas
@cedricchen6946
@cedricchen6946 5 жыл бұрын
So much thanks!!!!!
@AmanKumar-gq7li
@AmanKumar-gq7li 4 жыл бұрын
nice video .Thanks.
@lynnjohn915
@lynnjohn915 5 жыл бұрын
x & (x-1) also works
@hyperbola_cc
@hyperbola_cc 5 жыл бұрын
Good instruction
@dejavukun
@dejavukun 5 жыл бұрын
Thanks a lot man!
@AtulkumarGupta080796
@AtulkumarGupta080796 6 жыл бұрын
excellent bro
@graciagarcia482
@graciagarcia482 5 жыл бұрын
THANK YOU VERY MUCH
@evertonalbuquerque3623
@evertonalbuquerque3623 4 жыл бұрын
*thank you*
@ashugarg3196
@ashugarg3196 7 жыл бұрын
please upload video on trie
@chak-pongchung8463
@chak-pongchung8463 7 жыл бұрын
After all, Binary Indexed Tree is actually not "binary tree", it is just the index which makes use of the binary representation? I dont quite see any binary tree shape here in the video.
@jalgs4210
@jalgs4210 7 жыл бұрын
+Chak-Pong Chung Yes, you are correct. BIT is no binary tree. (a Segment tree would be a binary tree)
@VBeniwal_IITKGP
@VBeniwal_IITKGP 4 жыл бұрын
Thanks bro!!!
@ShubhamJoshishubhamjoshi
@ShubhamJoshishubhamjoshi 8 жыл бұрын
Thanks a lot.
@adilmahmood9098
@adilmahmood9098 6 жыл бұрын
two minutes of silence for people who have disliked
@xenowits
@xenowits 5 жыл бұрын
they must die
Efficient Segment Tree Tutorial
15:39
JAlgs
Рет қаралды 24 М.
Fenwick Tree or Binary Indexed Tree
22:43
Tushar Roy - Coding Made Simple
Рет қаралды 241 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
This video will make your 2025 10x better🔥
24:36
Dodagatta Nihar
Рет қаралды 23 М.
Episode 0 - Fenwick Trees
58:10
Algorithms Live!
Рет қаралды 73 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Fenwick Tree Complete | Point Update & Range Query | Part - I
44:04
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 613 М.
Lecture 1: Algorithmic Thinking, Peak Finding
53:22
MIT OpenCourseWare
Рет қаралды 6 МЛН
Coding Adventure: Rendering Text
1:10:54
Sebastian Lague
Рет қаралды 802 М.
Use Arc Instead of Vec
15:21
Logan Smith
Рет қаралды 157 М.
Fenwick Tree range queries
13:45
WilliamFiset
Рет қаралды 38 М.