Tuesday, February 16, 2021

SKP's Algorithms and Data Structures #1

My Article Series on Algorithms and Data Structures in a Sort of 'Programming Language Agnostic Way'. Few of the Algorithms and Data Structures in C, Few in C++, and Others in Core Java. Assorted Collection for Learning, Revising, Revisiting, Quick Refresh, and a Quick Glance for Interviews. You May Even Include them Directly for Professional or Open Source Efforts. Have Included Explanation Only for Few of These! Hope these turn out to be Really Helpful as per the Author's Intention.

Graph Search or Traversal Algorithms

A graph is a set of connected vertices {V} and edges {E}. A graph may be connected, disconnected, weighted, or non-weighted. In other terms, a Graph could also be a  tree with cycles. Graph Search or Traversal can be done in two ways as explained below:



from DZone.com Feed https://ift.tt/3brMXCr

No comments:

Post a Comment