Abstract

Three algorithms for the search of oriented paths in digraphs are described, based in the generation of a tree, in which an BFS is done, in the first one, and a DFS is done, in the other two algorithms. The first one is aimed at finding all the optimum paths between two vertices. The second one is aimed at solving this problem, as well as at finding the Hamiltonian paths beginning in a vertex, or at finding all the cycles of any order in the digraph. The third one is aimed at finding all the Eulerian paths or circuits. Two more algorithms, for the analysis of graph connectivity, using the same type of techniques are also described, one aimed at separating an unconnected graph into connected subgraphs, and the other aimed at searching for all existing bridges. All five algorithms are fully described and they are also implemented in a structured form, using QB as the programming language, A very compact scheme is proposed to store all the required information, using only one-dimension arrays without pointers, which allows simple programming languages to be used.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call