You made all the graph algorithms look so easy with your tutorials. I enjoy your videos. Keep them coming !!!!
@cigomba5 жыл бұрын
Been struggling trying to understand this for a while. You made quite simple and easy to understand. I also love how you added the code at the end, so we could get a look at how it would actually be implemented. Love it! Thanks man.
@ronakdarji19608 жыл бұрын
Thank you brother we passed our exams because of your videos without your clips we are getting big trouble brother....thank you very much..
@SunggukLim6 жыл бұрын
I always click your video first when I search an algorithm in KZbin. Thanks!
@manojjain35013 жыл бұрын
Hi Tushar , when i landed to your channel and watched few videos , trust i stayed here for ever. Your source code repository is also a bonus. You must charge now ;)
@theOceanMoon9 жыл бұрын
At 5:45 , you ticked BD instead of CD Suggestion:- I found it better in earlier few of your vids where you wrote pseudo code on board(ie explain each line as you go along) instead of this method Thanx for the vid
@anuraagbansal6459 жыл бұрын
yeah that was better explaination with pseudocode but anyways thanks sir
@akshayavenkatesan29125 жыл бұрын
yeahhhh .. i feel the sameee
@harishsahu13105 жыл бұрын
Really appreciated Tushar to make it simple for us to understand algorithms.
@WhiteKeyness8 жыл бұрын
Thank you so much! Your explanation is very clear ^^
@appleapps37169 жыл бұрын
Wow, Really it saved 4 hrs of reading a DS and Algo text book. Thank u very much. And a small request is please speak little slow(speed). Thanks again for great video..
@oormila1008 жыл бұрын
Really very helpful. Good job sir....Thanx a lot!!
@thomasfrancis82016 жыл бұрын
0 to 0.20 like Tushar was an adrenaline rush !!
@OkonomiPapi8 жыл бұрын
Thank you, Tushar! This video was helpful for my understanding
@akifkhan11554 жыл бұрын
In the code, you can break the 'for loop' when Disjoint Set size becomes (v-1) where 'v' is number of vertices because number of edges in MST would always be (v-1).
@soullessbutcutieyordle6 жыл бұрын
I'm not good in algorithm, I'm not so good in english but you make it so simple that also me understood xD
@demonsingh47368 жыл бұрын
It's CD and not BD at 5:44
@guvenim7 жыл бұрын
Good work Tushar. Thank you. I know in some videos you use colored markers, I think it makes it easier to follow
@nomanmalik6776 жыл бұрын
Thank you so much , your tutorial are so easy
@akshaydeep10008 жыл бұрын
Very well explained thanks a lot!!
@ashwanithehero7 жыл бұрын
Clearly Explained, Thanks.
@SAGARGOELBCE8 жыл бұрын
Amazing video sir. Thank You.
@mirzajalaluddin91768 жыл бұрын
great class Sir..!....Thank u so much.
@anuraagbansal6459 жыл бұрын
sir you are really great in explaining these videos can you please put up a video on fractional knapsack and task scheduling program you sir helped me alot in my first sessionals in ada.
@prabhupant6 жыл бұрын
In your github repo, you have mentioned the time complexity as 0(ElogE) in place of O(ElogE + E)
@manishsakariya45956 жыл бұрын
O(n^2+n) = o(n^2) as n^2>n . here in this case nlogn>n. so o(nlogn+n)=o(nlogn)
@saini851939 жыл бұрын
You are great..! helped me alot..!
@dhirajsingh92488 жыл бұрын
East or west tushar sir is the best
@sysdesignstudy6 жыл бұрын
At 5:44 the edge should be C-D with cost 1 instead of B-C with cost 3.
@tashfiqrahman41538 жыл бұрын
Please have a tutorial on Breadth first search and depth first search,overall your tutorials are great :)
@subhamkumarshah92528 жыл бұрын
good lecture on graphs and trees
@SS-yt4yd8 жыл бұрын
Great video. Is there a video for Arborescence?
@ZiiiP21427 жыл бұрын
You're a legend.
@PomegranateAmazing797 жыл бұрын
Very good explanation
@sarathkrrish098 жыл бұрын
Very Nice Tuts and awesome for learning each topic in depth. Can we stop the edges iteration when disjoint set size equals to Vertices count in Graph?
@maheshbanjan8569 жыл бұрын
your videos are really helpfull
@MoharnabSaikia8 жыл бұрын
It would be helpful if you could add the link to the video for disjoint sets here. Other than that good job..love ur videos.
@imrulkayes38128 жыл бұрын
one mistake..BD is not finally result...pl rechange BD into CD
@mohit15988 жыл бұрын
ya the answer should be 9 not 11
@michaelwhite13965 жыл бұрын
Good quality videos and explanations, but your playlist is a little out of order. start at the beginning and every video you mention the need for watching a different one in this playlist first that seems to be ordered randomly. its fine and all lol, i just wish i knew where to start without having to find the shortest path through your playlist :P thanks for the videos
@kualizai9 жыл бұрын
An excellent video. I do appreciate. Can you please provide a lecture on Random Walk for a Weighted Graph ?
@cashflow91569 жыл бұрын
For your next video, can you explain dijkstras algorithm?
@shanugupta2967 жыл бұрын
Well explaned :)
@SoumyajitGanguly_ALKZ8 жыл бұрын
How do I get a path between 2 nodes (along this MST) assuming I have the result set of edges? In your Dijkstra video, it was clear.
@kanishquetyagi44378 жыл бұрын
Actually in this video u ignored the edge BD but in last u ticked why is this so?
@mustafatoufiq7258 жыл бұрын
Please mention the pseudo codes in your videos aswell. Thanks
@bhavanapenugonda9845 жыл бұрын
Satisified 😊
@ramank53368 жыл бұрын
thanks a lot , it was helpful video
@jineshdhruv61517 жыл бұрын
Great Video
@missing_link71377 жыл бұрын
it was really nice thanks
@gazcn0079 жыл бұрын
Thanks very much man
@spicytuna086 жыл бұрын
again, you are the best. i have a basic question. i don't understand what problem this algo is trying to solve. it is not minimum optimal path algo.
@Japkeerat6 жыл бұрын
Yup, you are right. It is not minimum optimal path algorithm. It is minimum spanning tree. Now the problem it solves is that it gives you minimum cost of building a network. For example, you need to lay underground pipes connecting each house of a locality with a condition that it should be possible to go to any location x to any location y but you have limited resources (here, pipes). So you become greedy and wise in spending the resources. That is where you can directly apply the algorithm discussed above. After that you would have connected each house with each other without wasting any resource.
@gidong218 жыл бұрын
thank you teacher!
@Adarshs37 жыл бұрын
what about algorithm for Minimum Spanning tree from a undirected and unweighted graph??
@rahulbolia919 жыл бұрын
Can't we stop stop the algorithm once we get all the nodes in one set? Why do we need to check for CE and DE?
@pradiptalekar91358 жыл бұрын
+rubidium yeah, you can. add a loop which will observe/count of edges getting added in your final result set. the termination condition would be : (the count of edges) should not exceed (number of vertices - 1 ). Thanks to Tushar for this video
@justhustle51727 жыл бұрын
Yes you can but it adds additional time complexity to check at every turn if all the vertices have been added. Therefore it is better to just go through the whole thing in one go.
@jasonzhang26437 жыл бұрын
Navneet Jain The termination condition can be "len(resultEdge) >= numOfVertex -1". Should not add time complexity
@mihirpatil5157 жыл бұрын
nice explanation sir
@aayushiagarwal80633 жыл бұрын
which algorithm is better:- prims or Kruskal
@travelspurs5 жыл бұрын
Why I'm so late here??? Wish I were early here so I would be working in a better firm right now! 😐
@vmidhun89737 жыл бұрын
If the edges are already sorted then the time complexity comes down to O(n) right?
@ramum54247 жыл бұрын
bro how are you representing the graph.. do u have a package called Graph so that u can use Graph,Edge etc... ? i cant find them .. i mean i wrote the whole code nd im unable to figure out what should be the arguments in the classes GRAPH and EDGE which matches the arguments in "findSet and Union" in your "Disjoint set"
@amitkumarsing6 жыл бұрын
we can stop processing edges once the result set has (|V| -1 ) edges. this will save some time.
@jasmindersikka73525 жыл бұрын
y r we using disjoint set is because we dont want cycles
@oshogarg52156 жыл бұрын
god of ds
@infiniteunconditionallove16206 жыл бұрын
for(true){ "thank you" ; }
@FitCoder4 жыл бұрын
I really LOVE your way of teaching, to the point and so easy to understand. You have inspired me to start my own KZbin channel. I would really love some feedback/support, so please have a look and check it out.
@81gursimran6 жыл бұрын
bhai.. thanks a lot!
@santoshkumarsingh26764 жыл бұрын
Very good
@brianlau27579 жыл бұрын
Is this a union by size or union by height?
@avdheshyadav97967 жыл бұрын
that was amazing
@ASHISHUTUBE4117 жыл бұрын
Why do we sort the edges? how does that help in the execution?
@utsavprabhakar50727 жыл бұрын
We need the minimum weight for our spanning tree. so we started with least weight edge. Hope this clears your doubt.
@marsa28705 жыл бұрын
How we sort edge in non decreasing order
@atharvapuranik48188 жыл бұрын
Can you please explain what is edgeComparator here?
@atharvapuranik48188 жыл бұрын
Oh! I see the implementation of EdgeComparator in your source code which implements Comparator. Thanks for the awesome videos! Can you please make videos of String, Arrays & Matrix topics? Or Can you give me good source where there are lot of above topics questions and its explanation? It makes easy and interesting to learn when someone(like you) explains the problem. :)
@2_wood25 жыл бұрын
the best!
@kritikaarora36567 жыл бұрын
At 5:45 it is cd not bd
@saptarshimitra12677 жыл бұрын
Good one.
@mayursandbhor88248 жыл бұрын
sir bd path is not present in answer ... it should be cd
@maoqiutong7 жыл бұрын
Hi, my friend, you don't need to erase the nodes and rewrite them again and again. That makes me feel uncomfortable!
@shamalasham56307 жыл бұрын
good
@samaa89048 жыл бұрын
شرح رائع شكرًا
@siluverukirankumar99546 жыл бұрын
*Answer for the above graph if done manually 9 units. Hit like or comment if anybody done*
@jamesabraham37908 жыл бұрын
cant see the board bcz of subtitles
@ronakdarji19608 жыл бұрын
please unmark cc button...
@omurcanaktemur78128 жыл бұрын
hi, can you give me c code in kruskal?
@ayushsinghania7 жыл бұрын
Thanx a ton, would be much better if you explained Pseudo code instead of actual code! other than that great work
@harshipandey19777 жыл бұрын
Complete code: goo.gl/8TMkTt
@rabinbk50147 жыл бұрын
Whoa!!! What was the beginning like??? You seemed more like a robot with zero expression...
@lifeguy30007 жыл бұрын
good video, but please talk more quietly
@justhustle51727 жыл бұрын
cant you just reduce the volume :P ?
@sudipsaha96778 жыл бұрын
please provide c++ implementation ....
@rrjishan5 жыл бұрын
plzz give code of beginners level, dont use inbuilt methods
@SaiKrishna216 жыл бұрын
explain the time complexities instead of just stating it
@keerthang55575 жыл бұрын
Gautam gambhir's double
@MrHammad7898 жыл бұрын
sir speed is very fast
@maths_kamlesh17877 жыл бұрын
Sir, why is it phut and not put..please it irritates..
@koushikshomchoudhury91088 жыл бұрын
thats all? o.O that easy?
@tejashwiniteju99028 жыл бұрын
i din understand how to calculate space complexity
@debrajray15857 жыл бұрын
We store the edges in a sorted array, so that is O(E). We also make a total of V sets for the vertices, so that is O(V). So the space complexity is O(E+V)
@asfandalikhan62698 жыл бұрын
You get confused in this video :p
@paulcrozier4059 жыл бұрын
No offense, you speak very fast!
@ashutoshyadav15469 жыл бұрын
+Paul Crozier u tube provides u wid the facility to slow ur video ,,, and i watched it at 2X
@gauravdudeja7 жыл бұрын
same
@rohansahu66306 жыл бұрын
তীরে এসে তরী ডুবিয়ে দিলো।😂😂😂😂😂উত্তর 4+2+1+1+1=9 হবে।।