Algorithms and context

First, the algorithm context

The context is the operating environment of the algorithm.

Context is a state of bubbles, each step of the algorithm are the access information from the bubbles.

Context is designed to design variables and data structures.

 

Second, calculate the context 

To calculate the aid of a context, the context while maintaining consistency.

Every step, every algorithm has a logical context.

 

Third, the context of the classification:

1, global context;

2, step Context: Context logic blocks or sub-functions.

3, a context calculation;

 

Fourth, the context of the design

The design is to consider the context algorithm (and details), to support the required variables and data structures.

Context comprising: an input, an output, interim calculated results and the like.

 

The context of the design is an important part of the algorithm design.

Guess you like

Origin www.cnblogs.com/feng9exe/p/11913467.html