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

  Рет қаралды 26,295

Caleb Curry

Caleb Curry

Күн бұрын

Пікірлер: 48
@codingboy2254
@codingboy2254 3 жыл бұрын
Underrated series of videos on data structures and algorithms . Should rank one on youtube.
@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).
@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
@AkashYadav-rj6fn
@AkashYadav-rj6fn 4 жыл бұрын
Loved it!! I am left handed too. And my handwriting is same as Caleb(or maybe worse)😂
@kevinab3874
@kevinab3874 3 ай бұрын
Still a great video after 4 years
@ayush.kumar_02
@ayush.kumar_02 4 жыл бұрын
Thanks caleb your explanation is great.....
@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 (((
@ادهماحمد-ب7ت
@ادهماحمد-ب7ت Жыл бұрын
For me, Caleb speaks pretty fast already😮😅
@beastmaster4716
@beastmaster4716 3 жыл бұрын
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.
@yasserakbbach7342
@yasserakbbach7342 4 жыл бұрын
I like the board approach explanation 👌
@SiddharthRay1
@SiddharthRay1 4 жыл бұрын
I like caleb style of teaching, but we need to be bit patience ❤
@UnathiGX
@UnathiGX Жыл бұрын
Thank you!
@progtom7585
@progtom7585 4 жыл бұрын
Tsp explanation is great, thanks mate
@nancykorayem6711
@nancykorayem6711 2 жыл бұрын
great explanation, u have cleared a lot of things for me.. Thanks :)
@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.
@zigginzag584
@zigginzag584 3 жыл бұрын
python factorial algorith def fact(n): answer = 1 while n > 1: answer *= 1 n -= 1 return answer
@johnlamo8385
@johnlamo8385 3 жыл бұрын
U rock bro 🤟
@breakdancerQ
@breakdancerQ Жыл бұрын
Just a very clear explanation!
@lautarozambella1887
@lautarozambella1887 9 ай бұрын
Really liked the video, great work!
@utilizator1701
@utilizator1701 3 жыл бұрын
At 1:55 you have forgotten to put the ! sign.
@exomk5319
@exomk5319 4 ай бұрын
why is it (n-1)! ????
@ishitabhattacharyya1538
@ishitabhattacharyya1538 4 ай бұрын
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!
@mohammedbasher7083
@mohammedbasher7083 2 жыл бұрын
You the best Caleb
@xiaonaiheme
@xiaonaiheme 2 жыл бұрын
Great lessons
@aymensekhri2133
@aymensekhri2133 2 жыл бұрын
Thanks a lot
@federicobau8651
@federicobau8651 3 жыл бұрын
Nice vid pal
@itzaprem6358
@itzaprem6358 4 жыл бұрын
Do you suggest your C++ Series or
@mollybrazza1427
@mollybrazza1427 2 жыл бұрын
really good!easy and clear!
@sadhucat4476
@sadhucat4476 3 жыл бұрын
Great explanations!
@Ibrahimlwaad
@Ibrahimlwaad 3 жыл бұрын
Thanks !
@belala.fattah6532
@belala.fattah6532 4 жыл бұрын
👍🏾👍🏾
@murugarajuperumalla5508
@murugarajuperumalla5508 4 жыл бұрын
thanks
@thenewway416
@thenewway416 4 жыл бұрын
Awesome
@thenewway416
@thenewway416 4 жыл бұрын
Amazing
@divyaprakashks4789
@divyaprakashks4789 4 жыл бұрын
Thanks man
@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
@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 М.
The Traveling Salesman Problem: When Good Enough Beats Perfect
30:27
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 32 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 117 МЛН
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 71 МЛН
DATA STRUCTURES you MUST know (as a Software Developer)
7:23
Aaron Jack
Рет қаралды 930 М.
Traveling Salesman Problem Visualization
2:23
n Sanity
Рет қаралды 477 М.
The Travelling Salesman (1 of 3: Understanding the Problem)
7:07
Binary Search Algorithm - Computerphile
18:34
Computerphile
Рет қаралды 161 М.
P vs. NP - An Introduction
10:10
Undefined Behavior
Рет қаралды 223 М.
Давайте поцарапаем iPhone 16 Pro Max!
0:57
Wylsacom
Рет қаралды 2,1 МЛН
Hardware tools repair tool high performance tool
0:16
Hardware tools
Рет қаралды 3,1 МЛН
The force of electromagnetic eddy currents
0:31
Nikola Toy
Рет қаралды 16 МЛН