Seven important feature of Python algorithm

Problem-solving algorithm means accurate and complete description of the program, a series of clear instructions to solve the problem, the algorithm represents a policy mechanism to solve the problem using the method described in the system, that is, to be able to enter certain specifications, for a limited time to obtain the required output. If an algorithm is defective, or not suitable for a problem, the implementation of this algorithm will not solve the problem. Python is an important algorithm developed knowledge and skills, it is inevitable to use to the skills, then, Python algorithm What are the characteristics of it?

A Python algorithm should have the following seven important features:

  1. Finite resistance (Finiteness): refers to the finite algorithm must be able to terminate after a finite number of steps of the algorithm performed;

  2. The exact nature (Definiteness): each step of the algorithm must have a precise definition;

  3. Entry (Input): 0 algorithm or a plurality of inputs to characterize the initial condition of operation objects, a so-called 0 refers to input initial conditions fix algorithm itself;

  4. Output items (Output): an algorithm has one or more outputs, to reflect the results of processing the input data. The algorithm does not output is meaningless;

  5. Feasibility (Effectiveness): Any algorithm calculation step is performed can be substantially decomposed executable operation step, i.e., each calculation step can be done (also referred validity) for a limited time;

  6. Efficiency (High efficiency): execution speed, small footprint;

  7. Robustness (Robustness): in response to the data correctly.

In addition to having the above characteristics Python algorithm, and further the relationship between time and space, different algorithms may be used to accomplish the same task with a different time, or space efficiency, and therefore, a space may Python merits algorithm complexity and time complexity with to measure.

Rabbit dynamic IP change IP software can automatically switch a key, do IP inventory, automatic de-duplication, support for computers, mobile phones multiport use, Turbo Boost Technology automatically assigned multiple IP pools, intelligent data optimization simulation one million IP access, rabbits dynamic IP Acting as a dynamic leader in IP industry, designed to provide the best quality of network services for various industries.

Guess you like

Origin blog.51cto.com/14417194/2475632