2peopledesu
  • Home
  • About
  • Docs
  • Algorithm
  • DevOps
Sign in Subscribe

Algorithm

A collection of 2 posts
Algorithm

Dijkstra's Algorithm

Definition Dijkstra's Algorithm is designed to find the shortest path from a specific starting point to all other vertices in a graph. For instance, if there are 5 vertices and we start from vertex 1, the algorithm will determine the shortest paths from vertex 1 to vertices 2
31 May 2024 2 min read
Algorithm

Tree Diameter

Definition The diameter of a tree is defined as follows: * For any two vertices u and v in a tree, there is always exactly one simple path between them. The length of this simple path is referred to as the distance between vertices u and v. * Given a vertex u
24 May 2024 4 min read
Page 1 of 1
2peopledesu © 2025
  • Sign up
Powered by Ghost