We use the disjoint-set structure to detect a winner in Hex game

  Рет қаралды 2,842

Inside code

Inside code

Күн бұрын

Source code: gist.github.co...
🔴 Learn graph theory algorithms: inscod.com/gra...
⚙ Learn dynamic programming: inscod.com/dp_...
💡 Learn to solve popular coding interview problems: inscod.com/50p...
⌛ Learn time and space complexity analysis: inscod.com/com...
🔁 Learn recursion: inscod.com/rec...
NB: This video is ad-free, you can choose to support Inside code by purchasing one of the courses above or dropping a super thanks!
NB2: Discounts of courses above are permanent
I also post content on LinkedIn (inscod.com/lin...) and Instagram (inscod.com/ins...)

Пікірлер: 11
@insidecode
@insidecode 2 жыл бұрын
If you enjoyed this video, you might also enjoy our courses: ⚙ Learn dynamic programming: inscod.com/dp_course 💡 Learn to solve popular coding interview problems: inscod.com/50problems_course ⌛ Learn time and space complexity analysis: inscod.com/complexity_course 🔁 Learn recursion: inscod.com/recursion_course
@filmbotreviews
@filmbotreviews 2 жыл бұрын
Never stop making videos. Your channel will blow up like crazy any day now.
@insidecode
@insidecode 2 жыл бұрын
Thank you!
@ucanhmac9721
@ucanhmac9721 7 ай бұрын
38 / 5.000 It is easy to understand ! Thank you teacher! I love you 😍🤗
@fabiopimentel6981
@fabiopimentel6981 2 жыл бұрын
Hi, this is very similar to what is done in the percolation theory. What about using the hoshen kopelman algorithm?
@ishanpathak4938
@ishanpathak4938 Жыл бұрын
Will this always work? Not all cells on the hex board have 6 adjacent vertices. The content is awesome, but it would have helped to show more dry-run/compilations of your code in addition to the narrative.
@frederiklenk7756
@frederiklenk7756 2 жыл бұрын
Love this game. Looking forward to this video
@NoNameAtAll2
@NoNameAtAll2 2 жыл бұрын
is disjoint set the one with inverse ackerman function complexity somewhere?
@insidecode
@insidecode 2 жыл бұрын
Yes, by the way it's covered in the last video
@vinay9477
@vinay9477 2 жыл бұрын
As always great video.
@insidecode
@insidecode 2 жыл бұрын
Thanks!
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
How to find fixed-radius neighbors of a point? - Inside code
6:59
Inside code
Рет қаралды 3,2 М.
Мама у нас строгая
00:20
VAVAN
Рет қаралды 11 МЛН
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 6 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 138 МЛН
I never understood why you can't go faster than light - until now!
16:40
FloatHeadPhysics
Рет қаралды 4 МЛН
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 404 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 3,8 МЛН
How to solve the 2-SAT problem in POLYNOMIAL TIME?
16:20
Inside code
Рет қаралды 11 М.
These 3 problems are in reality the SAME problem. How?
5:31
Inside code
Рет қаралды 1,8 М.
Making a Hexagonal Factory Game - Factory Game #devlog 1
8:49
MadStark Games
Рет қаралды 7 М.
The Most Important Algorithm in Machine Learning
40:08
Artem Kirsanov
Рет қаралды 524 М.
Diffusion models from scratch in PyTorch
30:54
DeepFindr
Рет қаралды 260 М.
Мама у нас строгая
00:20
VAVAN
Рет қаралды 11 МЛН