Factorial (n!) Algorithm Complexity & Traveling Salesman Problem - Data Structures and Algorithms

  Рет қаралды 25,583

Caleb Curry

Caleb Curry

Күн бұрын

Start your software dev career - calcur.tech/dev-fundamentals 💯 FREE Courses (100+ hours) - calcur.tech/all-in-ones
🐍 Python Course - calcur.tech/python-courses
✅ Data Structures & Algorithms - calcur.tech/dsa-youtube
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
✉️ Newsletter - calcur.tech/newsletter
📸 Instagram - / calebcurry
🐦 Twitter - / calebcurry
🔗 LinkedIn - / calebcurry
▶️ Subscribe - calcur.tech/subscribe
👨🏻‍🎓 Courses - www.codebreakthrough.com
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
↪ My Amazon Store - www.amazon.com/shop/calebcurry
🅿 Patreon - calcur.tech/patreon-calebcurry
🅖 GitHub Sponsors - github.com/sponsors/CalebCurry
Ⓟ Paypal - paypal.me/calcur
🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
📈 Buy Bitcoin - calcur.tech/crypto
Reserve the Ruby Steel crypto rewards card and get a $25 bonus (use affiliate code "Caleb") - calcur.tech/crypto

Пікірлер: 48
@codingboy2254
@codingboy2254 2 жыл бұрын
Underrated series of videos on data structures and algorithms . Should rank one on youtube.
@hbk5287
@hbk5287 6 ай бұрын
great explanation love it ,keep making more of these videos , especially the parts where you explain the time complexities, what they are etc !! plus blackboard is doing some magic too i usually lose focus if its a whiteboard
@wisdom-for-life
@wisdom-for-life 2 жыл бұрын
100! = 9.3 ^ 157 :O That's a lot of computations. Thanks Caleb.. Very clear and simple as always!
@shredderspencer1122
@shredderspencer1122 Жыл бұрын
100! = 9.3 * (10^157).
@ayush.kumar_02
@ayush.kumar_02 4 жыл бұрын
Thanks caleb your explanation is great.....
@lautarozambella1887
@lautarozambella1887 7 ай бұрын
Really liked the video, great work!
@mollybrazza1427
@mollybrazza1427 2 жыл бұрын
really good!easy and clear!
@nancykorayem6711
@nancykorayem6711 2 жыл бұрын
great explanation, u have cleared a lot of things for me.. Thanks :)
@progtom7585
@progtom7585 4 жыл бұрын
Tsp explanation is great, thanks mate
@breakdancerQ
@breakdancerQ Жыл бұрын
Just a very clear explanation!
@AkashYadav-rj6fn
@AkashYadav-rj6fn 4 жыл бұрын
Loved it!! I am left handed too. And my handwriting is same as Caleb(or maybe worse)😂
@sadhucat4476
@sadhucat4476 3 жыл бұрын
Great explanations!
@r.n.dspectra1775
@r.n.dspectra1775 4 жыл бұрын
This is great lesson thank you Caleb 😍
@alexandermuto7174
@alexandermuto7174 4 жыл бұрын
This guy's awesome
@milkman5894
@milkman5894 Жыл бұрын
yoo bakugan
@kevinab3874
@kevinab3874 26 күн бұрын
Still a great video after 4 years
@yasserakbbach7342
@yasserakbbach7342 4 жыл бұрын
I like the board approach explanation 👌
@UnathiGX
@UnathiGX 10 ай бұрын
Thank you!
@SiddharthRay1
@SiddharthRay1 4 жыл бұрын
I like caleb style of teaching, but we need to be bit patience ❤
@Ibrahimlwaad
@Ibrahimlwaad 3 жыл бұрын
Thanks !
@aymensekhri2133
@aymensekhri2133 Жыл бұрын
Thanks a lot
@zigginzag584
@zigginzag584 3 жыл бұрын
python factorial algorith def fact(n): answer = 1 while n > 1: answer *= 1 n -= 1 return answer
@xiaonaihe8929
@xiaonaihe8929 Жыл бұрын
Great lessons
@divyaprakashks4789
@divyaprakashks4789 4 жыл бұрын
Thanks man
@mohammedbasher7083
@mohammedbasher7083 Жыл бұрын
You the best Caleb
@federicobau8651
@federicobau8651 3 жыл бұрын
Nice vid pal
@murugarajuperumalla5508
@murugarajuperumalla5508 4 жыл бұрын
thanks
@johnlamo8385
@johnlamo8385 2 жыл бұрын
U rock bro 🤟
@egenethebest9107
@egenethebest9107 4 жыл бұрын
Hey Caleb! Great video, but for some reason when I download it (I have KZbin Premium), I am not able to change the playback speed. It might be something to do with the video codec you are using and for some reason KZbin processes your uploaded videos differently. I have tried informing KZbin of the issue, but they have not really done anything about it. Would you mind trying a different codec for your future videos? I like taking your tutorials on a plane or a long train ride and being able to download them (with KZbin Premium) is really helpful. But I watch all tutorials at 2x speed and with the codec you are using it does not work for downloaded videos (((
@user-nf5ky1ek3w
@user-nf5ky1ek3w Жыл бұрын
For me, Caleb speaks pretty fast already😮😅
@thenewway416
@thenewway416 3 жыл бұрын
Amazing
@itzaprem6358
@itzaprem6358 4 жыл бұрын
Do you suggest your C++ Series or
@thenewway416
@thenewway416 3 жыл бұрын
Awesome
@utilizator1701
@utilizator1701 3 жыл бұрын
At 1:55 you have forgotten to put the ! sign.
@reverseworld5768
@reverseworld5768 4 жыл бұрын
Can I ask something I can't open my Php admin local host for the database I don't know what to do can you help me Do I need Internet to fix it or not? Thank you so much
@beastmaster4716
@beastmaster4716 2 жыл бұрын
why n-1 at 7:40
@noelara4356
@noelara4356 2 жыл бұрын
I think that is n-1 because,from 4 of the cities he is already in one of them.
@belala.fattah6532
@belala.fattah6532 4 жыл бұрын
👍🏾👍🏾
@exomk5319
@exomk5319 2 ай бұрын
why is it (n-1)! ????
@ishitabhattacharyya1538
@ishitabhattacharyya1538 Ай бұрын
because one node is already fixed. you start at A(say) and you end at A. then you are actually shuffling between B, C, D. as in, your paths will be like ABCDA, ABDCA, ACBDA, ACDBA, ADBCA, ADCBA. that sums up to 6 = 3!
@bradensorensen966
@bradensorensen966 3 жыл бұрын
Traveling Salesman isn't N! though... You start at one city which can be any of the cities, so that can't be included. Then you go to all of the other cities in every permutation. Ending up at your starting city is inevitable so that isn't represented. This gives us (n-1)! at most. But, you have to factor in that each tour that mirrors an existing tour can be factored out giving us [(n-1)!]/2
@ancatarca8047
@ancatarca8047 3 жыл бұрын
isn't that what he pretty much explained?
@ighsight
@ighsight 2 жыл бұрын
@@ancatarca8047 Yeah, that is what he explained. It's like this guy did not watch the video, since Caleb definitely writes [(n-1)!]/2 on the board.
@paulascatarelli5348
@paulascatarelli5348 2 жыл бұрын
@@ancatarca8047 exactly
@pranavnyavanandi9710
@pranavnyavanandi9710 2 жыл бұрын
Hello. I was wondering how the time complexity is n! at all. I drew out the recursion tree for a graph with 4 vertices. The number of recursive calls do not equal (n - 1)! and is much greater than that. The factorial only gives us the number of recursive calls at the end of the tree. Can you explain me how it should be done? It's adjacency matrix is 0 10 15 20 5 0 9 10 6 13 0 12 8 8 9 0 There are 15 recursive calls in total. 3! does not equal that.
@thrillclip
@thrillclip 3 жыл бұрын
nice lesson but the ads are too much.. almost every 2mins there is an ad, it's so distracting
Answering Your Questions - Data Structures and Algorithms
11:18
Caleb Curry
Рет қаралды 13 М.
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 18 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
1❤️
00:17
Nonomen ノノメン
Рет қаралды 13 МЛН
The Traveling Salesman Problem: When Good Enough Beats Perfect
30:27
Classes and Objects Introduction - Data Structures and Algorithms
12:36
Traveling Salesman Problem Visualization
2:23
n Sanity
Рет қаралды 473 М.
P vs. NP - An Introduction
10:10
Undefined Behavior
Рет қаралды 219 М.
Arrays vs Linked Lists - Data Structures and Algorithms
15:59
Caleb Curry
Рет қаралды 19 М.
R9. Approximation Algorithms: Traveling Salesman Problem
31:59
MIT OpenCourseWare
Рет қаралды 124 М.
Binary Search Algorithm - Computerphile
18:34
Computerphile
Рет қаралды 157 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 7 МЛН
When you have 32GB RAM in your PC
0:12
Deadrig Gaming
Рет қаралды 2,4 МЛН