Knuth Shuffle made simple in 5 mins

  Рет қаралды 10,017

James Cutajar

James Cutajar

Күн бұрын

Knuth Shuffle, aka Fisher-Yates shuffle or simply list shuffle is a way to randomly order things in an array or list. In this video we explain how it works and implement it.
Please support me through my Udemy courses:
Pass your coding interview in,
Java : www.udemy.com/...
Python: www.udemy.com/...
Ruby: www.udemy.com/...
JavaScript: www.udemy.com/...
Multithreading in,
Go Lang: www.udemy.com/...
Python: www.udemy.com/...
Java: www.udemy.com/...
Learn Dynamic Programming in,
Java: www.udemy.com/...
Python: www.udemy.com/...
Ruby: www.udemy.com/...

Пікірлер
@aabb12346
@aabb12346 Жыл бұрын
You taught me Knuth Shuffle within five minutes! I have been scratching my head since yesterday looking at the explanations on the web.
@alokik100
@alokik100 2 жыл бұрын
You know the awesome way to teach complex topics. More videos please. 👍🏼
@saltysnot
@saltysnot Жыл бұрын
Finally a clear explanation. Thank you James!
@nanaamoako4175
@nanaamoako4175 4 ай бұрын
Thank you! Great presentation and delivery. Very easy to understand. Subscribed!
@toenytv7946
@toenytv7946 2 жыл бұрын
Nicely explained. The complicated part is it’s name. 👍
@wubster666
@wubster666 2 жыл бұрын
Is this Khan Academy in disguise?? On a serious note I was kinda lost when I read just the algorithm online but this video just made everything so much clearer. Great job!
@tracychacon1210
@tracychacon1210 Жыл бұрын
Great explanation in 5 minutes.
@desmondwilson3416
@desmondwilson3416 Жыл бұрын
this is a great explanation! Thank you very much,.
@micalevisk
@micalevisk 3 жыл бұрын
well explained as always :) thank you
@ahmedelsabagh6990
@ahmedelsabagh6990 2 жыл бұрын
Great video!
@felipestrm
@felipestrm 3 жыл бұрын
great work
@mberle1
@mberle1 9 ай бұрын
Could there be figures that do not change locations? For example, "A,B,C,D,E" could A ever be the first post-randomiztion?
@fullmuppet
@fullmuppet 9 ай бұрын
Yes. But the same is true with a "real life" shuffle. If you shuffle a deck of cards, any cards could be in the same position after the shuffle. Indeed, to be a true random shuffle, this needs to be the case. If items were guaranteed *not* to be in the same position, that provides information about the previous state, which means it can't be truly random.
@davidjames1684
@davidjames1684 2 жыл бұрын
There are multiple errors in this presentation. Downvoted.
Python Sudoku Solver - Computerphile
10:53
Computerphile
Рет қаралды 1,2 МЛН
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 330 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 137 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 11 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 7 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН
How to shuffle an array (Fisher-Yates algorithm) - Inside code
6:03
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 501 М.
Moving Average for Python in 6 mins
6:59
James Cutajar
Рет қаралды 8 М.
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 942 М.
System Design: Why is Kafka fast?
5:02
ByteByteGo
Рет қаралды 1,1 МЛН
Go Lang's Mutex for Thread Synchronization
9:00
James Cutajar
Рет қаралды 2,8 М.
DATA STRUCTURES you MUST know (as a Software Developer)
7:23
Aaron Jack
Рет қаралды 933 М.
Apache Kafka in 6 minutes
6:48
James Cutajar
Рет қаралды 1 МЛН
The Knapsack Problem & Genetic Algorithms - Computerphile
12:13
Computerphile
Рет қаралды 235 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 137 МЛН