Skilled, your summary sounds good, but graph algorithms are actually quite complex, no? Still, a great starting point!
*Note: in context of G: traversing / ordering(sorting) / searching essentially fall under same topic. *Detecting cycle is just special case of this heading - where you detect that there exists a cycle. *Well implemented toposort returns -1(false) for a cyclic graph input.
- all traversal algo can be summarised using single algo. - The design of bag dictatces order of traversal - if bag = stack : DFS - if bag = queue : BFS bag can be a priority queue
Most of these algorithms arent needed for basic dev and if you really need some of these advanced algorithms then you will not have sufficient knowledge with only some of them. There are also no Flow algorithms which are very useful
All I remember is one queue, add parent node and keeping adding node until queue is empty
Graph algorithms can be tricky for sure. They're foundational but require depth to master. Always good to have summaries though.
United States Trends
- 1. Good Friday 44.6K posts
- 2. #FridayVibes 3,643 posts
- 3. Summer Walker 20.4K posts
- 4. #NXXT_Earnings N/A
- 5. #FinallyOverIt 6,617 posts
- 6. Wale 34.4K posts
- 7. Happy Friyay 1,092 posts
- 8. #FridayMotivation 2,266 posts
- 9. go girl 25.2K posts
- 10. RED Friday 2,272 posts
- 11. Meek 6,091 posts
- 12. #fridaymorning 1,162 posts
- 13. Bubba 8,436 posts
- 14. Robbed You 4,500 posts
- 15. Saylor 26.9K posts
- 16. 1-800 Heartbreak 1,757 posts
- 17. Arrest Bill Clinton 6,313 posts
- 18. Monaleo 2,410 posts
- 19. 5sos 23.6K posts
- 20. Bihar 336K posts
Something went wrong.
Something went wrong.