Content deleted Content added
added Category:Articles with example pseudocode using HotCat |
mNo edit summary |
||
Line 72:
* serialization/deserialization of a binary tree vs serialization in sorted order (allows the tree to be re-constructed in an efficient manner);
* [[maze generation algorithm]]s;
* [[
* analysis of networks and relationships.
==Graph exploration==
The problem of graph exploration can be seen as a variant of graph traversal. It is an online problem, meaning that the information about the graph is only revealed during the runtime of the algorithm. A common model is as follows: given a connected graph {{nowrap|1=''G'' = (''V'', ''E'')}} with non-negative edge weights. The algorithm starts at some vertex, and knows all incident outgoing edges and the vertices at the end of these edges—but not more. When a new vertex is visited, then again all incident outgoing edges and the vertices at the end
For general graphs, the best known algorithms for both undirected and directed graphs is a simple greedy algorithm:
|