| Random graph algorithm |
|
An algorithm is a set of instructions that explain how to compute something. It is like a recipe, only for making data instead of food. An algorithm has three parts:
The following algorithm describes the creation of a random graph. Random Graph Algorithm:
Note: The main point of most algorithms is generating output, just as the main reason for most recipes is serving food. For example, a sorting algorithm is useful as a way to alphabetize names, and Google's PageRank algorithm is useful as a way to list the most popular and influential Web pages first. Our random graph algorithm, however, does not generate interesting output. It creates a clique using a more complicated sequence of steps than is necessary to create a clique. The point of the algorithm is the journey it describes, not the destination where it eventually arrives.
|