1,058
29
Essay, 2 pages (350 words)

Algorithms depth-first search and the breadth-first search

The paper ” Algorithms Depth-First Search and the Breadth-First Search” is a brilliant example of an information technology assignment. Algorithmic is a branch of science but according to David Harel, it is “ much more than that and is instead the core of computer sciences”. A generally accepted concept about the algorithm is that it is a sequence of non-ambiguous instructions for the purposes of problem-solving or in other words for acquiring of the desired output for any valid input in a finite period. A number of graph algorithms call for processing vertices and edges of a graph systematically. The two principal types of algorithms that do such traversals are the depth-first search (DFS) and the breadth-first search (BFS). They have also proved out to be useful in the investigation of various key properties of a graph. A depth-first search begins by visiting the graph’s vertices at an arbitrary vertex by marking it as already been visited. The algorithm then at each iteration proceeds to an unvisited vertex, which is adjacent to the current one. The process then prolongs until upon encountering a vertex that has no adjacent vertices, unvisited. A breadth-first search begins in a concentric manner by initially visiting all the vertices adjacent to the initiating vertex followed by all unvisited vertices that are two edges apart and so on, unless it visits all the vertices in the same connected component as the starting vertex. Their contrasting characteristics are, while DFS is a traversal for the brave, BFS is for the cautious. While DFS uses a discipline of a stack, the later uses that of the queue, which means the former has a LIFO approach and the later has the FIFO. The number of vertex orderings for DFS are two whereas for BFS it’s one. The edge types in undirected graphs for DFS are the tree and back edges whereas for the BFS the types are tree and cross edges. Important basic applications for both include checking connectivity and acyclicity of graph, however, the former has a sophisticated application of finding articulation point of a graph whereas the later is useful in finding a path with the fewest number of edges between two given vertices.

Thank's for Your Vote!
Algorithms depth-first search and the breadth-first search. Page 1
Algorithms depth-first search and the breadth-first search. Page 2
Algorithms depth-first search and the breadth-first search. Page 3

This work, titled "Algorithms depth-first search and the breadth-first search" was written and willingly shared by a fellow student. This sample can be utilized as a research and reference resource to aid in the writing of your own work. Any use of the work that does not include an appropriate citation is banned.

If you are the owner of this work and don’t want it to be published on AssignBuster, request its removal.

Request Removal
Cite this Essay

References

AssignBuster. (2022) 'Algorithms depth-first search and the breadth-first search'. 15 September.

Reference

AssignBuster. (2022, September 15). Algorithms depth-first search and the breadth-first search. Retrieved from https://assignbuster.com/algorithms-depth-first-search-and-the-breadth-first-search/

References

AssignBuster. 2022. "Algorithms depth-first search and the breadth-first search." September 15, 2022. https://assignbuster.com/algorithms-depth-first-search-and-the-breadth-first-search/.

1. AssignBuster. "Algorithms depth-first search and the breadth-first search." September 15, 2022. https://assignbuster.com/algorithms-depth-first-search-and-the-breadth-first-search/.


Bibliography


AssignBuster. "Algorithms depth-first search and the breadth-first search." September 15, 2022. https://assignbuster.com/algorithms-depth-first-search-and-the-breadth-first-search/.

Work Cited

"Algorithms depth-first search and the breadth-first search." AssignBuster, 15 Sept. 2022, assignbuster.com/algorithms-depth-first-search-and-the-breadth-first-search/.

Get in Touch

Please, let us know if you have any ideas on improving Algorithms depth-first search and the breadth-first search, or our service. We will be happy to hear what you think: [email protected]