Home     Blog

Depth First Search Algorithm

Depth First Search Algorithm

A DFS algorithm, as the name implies, is used to search deeper in the graph, whenever possible. The edges are explored, out of the most recently discovered vertex v that still has unexplored edges leaving it. When all of v's edges have been explored, the search backtracks to explore edges leavi

[ read more ]

Deleting an Element from a Doubly Linked List

Deleting an Element from a Doubly Linked List

To delete an element from the list, first the pointers are set properly and then the memory occupied by the node to be deleted is deallocated (freed). Deletion in the list can take place at the following positions. At the beginning of the list At the end of the list After a given element

[ read more ]

Recursion

Recursion

Recursion is an ability of a program to call itself, either directly or indirectly. Its a programming technique that naturally implements the divide and conquers programming approach. It does the task of calling itself. To do this, it must reduce its size upon every call; else, the process will beco

[ read more ]

Page 9 of 9« First6789