free web page hit counter
🛡️
Copyright Notice: This video is officially sourced and embedded from YouTube. For all copyright inquiries, reports, or removals, please contact YouTube's legal team here.
Fireship

Fireship

4,220,000 subscribers

👁 1,650,734 views

10 weird algorithms every developer should know

Video Overview & Insights

Top 10 most interesting algorithms ever created in computer science. Learn how software engineers have innovative techniques to solve real world problems.

sleep sort the best

— @eternitydev

#science #programming #top10

💬 Chat with Me on Discord

0:04 Bro wtf that happens to me everyday

— @RexDemon333

https://discord.gg/fireship

🔗 Resources

CFOP mention

— @The-catz

Wave Function Collapse demo https://jaxry.github.io/wave-function-collapse/

Cryptography concepts https://youtu.be/NuyzuNBFWxQ

Where's boxes and glue?

— @Jim_Jab

10 Sorting Algorithms Explained https://youtu.be/RfXt_qHDEPw

🔥 Get More Content - Upgrade to PRO

0:08 yes actually

— @aloyminimum

Upgrade at https://fireship.io/pro

Use code YT25 for 25% off PRO access

The real algorithm would be how to find the universe where the list is sorted.

— @cheese_detonation012

🎨 My Editor Settings

- Atom One Dark

I love that some random from 4chan has offered the world a genius dumbest algorithm

— @djdblclck

- vscode-icons

- Fira Code Font

In RSA's example you don't multiply 2 numbers to find the original 2 primes. Instead you try to factorize a large number to find 2 primed that multiplied result in the original number.

— @arturomarquez6898

🔖 Topics Covered

- Algorithms every programmer should know

2:38 The "next frontier" has fallen 🗡️🛡️🏹

— @hook3085

- How does wave function collapse work

- Quantum computer algorithms

Observe in physics terms mean to measure using an instrument

— @vcubedvvv

- How do distributed systems stay secure?

- Sorting algorithms explained

3:17 you need to explain what you mean by "Temperature".
6:35 you skipped over how 98% of marching cubes works.
7:35 SIGH, maybe just don't try to explain anything on this one.

— @poorman-trending

More User Perspectives

@

this are my people

@SalesSavvySoftware
@

a subshell is not a new thread its whole new process.

@chapterjason
@

0:59 "the universe wrote this algorithm to cut down on its AWS Bill" 😂😂this got me laughing so hard

@clintonnwezeaku7265
@

Sleep sort is one of the most psychopathic pieces of code you can commit, some people have no morals

@ataarono
@

You are brilliant mate. Really, how can i learn so much while laughing so much, at each video

@jakegreen314
@

I watch this video while screaming

@QUbyyte
@

Watched this whole video and understood practically nothing

@SirMaxwellsDemon
@

My favorite is by far *Miracle Sort*. The algorithm just periodically checks if the array sorted in the hopes that it just magically sorts itself.
Believe it or not, but this algorithm actually works, because stray alpha particles can flip bits in memory. These are normally corrected for, but not if enough bits flip at the same time.
The chance is low, but not zero. Whether an array actually gets sorted before the heat-death of the universe is a question I'll answer another time :)

@Rednax-Code
@

I have no idea what your problem is with Java.

Coherent syntax, reasonable memory safety, objects.

@tyron_orxy
@

2:31 LMAO 🤣🤣🤣

@kocunys180
@

I prefer Stalin sort. Every item that is not in order gets shot (deleted).

@GalliadII
@

0:10 back WHEN? That's when IT happened!!! THE BITE OF 87'th !!!!!!

@ghast901
@

0:04 bro constantly! Oh... Just me? 😅

@hereticaljake740
@

is it just me or there are two voices voicing-over in this video.

@ahmedzuraif4156
@

This hit the spot!

@Panda-Prog
@

In my university they only taught us Simulated Annealing and Boyer Moore String Search.

@syedarrafi4213
@

You missed the Fast Inverse Square Root function. I can't believe I can't find anyone else in the comments mentioning it. It is legendary. It is responsible for the incredible performance gains of Quake III and a generation of other video games.

@devnelson
@

When talking about Simulated Annealing and other approximation algorithms it is important to state, that it is not out to find the optimal solution, but tries to approximate it. By definition it is not an optimization algorithm, as it doesn't check all 2^n possible solutions.

@cyrol5424
@

lol at the "a man a plan panama" for boyer moore. I have the same textbook.

@max1point8t
@

After watching this video. I feel like an imposter again in programming as a self taught developer.

@royalcapitalfx
@

Nothing weird about it

@uninitializedvariable
@

quantum bogosort is like rick and morty

@wowieidgaf
@

dont let em get up to 42 ....

@harambo88
@

the way I heard quantum bogosort was to
1. bogosort
2. if the list is not sorted, destroy the universe

@alanli8991
@

Clickbait lol, many of them are not even that weird but trivial af

@Flw-uv2md
@

Haha funny algorithms haha you think you understand them until you dive deeper and deeper into the math and they don't work as expected or u don't understand nothing again. Maybe I am talking about quantum optimization algorithms who knows.

@vasilisvitaskos3481
@

Al Gore Rhythm hmmmm

@vanus0000
@

You forgot the best sort of all time—StalinSort. You iterate over the array and remove any items that aren’t in order. At the end you have a sorted list.

@_somerandomguyontheinternet_
@

I once had to implement marching cubes from ground-up for a problem in optical switch design

@Rachelebanham
@

Can you make this video but actually explain the algorithms cause after you glossed the first one I lost interest

@slayeryt637
@

You forgot the goat: STALIN SORT!

@w4rr3np34c3
@

You explained the double slit experiment like a moron lol.. its not when you "look" that it changes behavior... lol. It's when you use any instrument to track its path. You physically looking at it doesn't change anything lol. Being able to differentiate or follow its path with a device or instrument does.

@Guy_Lofi_Beats
@

had 2 hit da freaky wit da freaky 😜

i see u lite skinn when u caint beat em join dem 💯

@christianaudigeur6177
@

Marching Cube and boyer string search deserves it's own video... You could argue rsa too, but numberphile and other channels already covered those prime factorization toitet whatever ma jih

@marthvon
@

Where is the DFT from the thumbnail 😢

@sinanaydn7907
@

Encountered Boyer Moore in Genomic Computation.....blew my mind...still have to revise it every six months...😅

@parthtripathi7781
@

Your Ai voice gen did waver a bit there in the middle. Not much, but might want to check the simulation.

@bgtyhnmju7
@

Finally some one made sort with O(1) sleep sort but with sleep complexity 😂😂

@dineshk658
@

3:37. Hey!! 👀 Thats me (beginner C programmer)

@x-zotic_minded