Frontiers in Computing and Intelligent Systems ISSN: 2832-6024 | Vol. 2, No. 3, 2022 13 Basic principle of cuckoo optimization algorithm Li Yu, Shenghong Wu, Yetao Feng, Chenlei Zhao Geely University Of China, Sichuan 641423, China Abstract: This paper introduces the basic principle of cuckoo algorithm from cuckoo's habits. The cuckoo algorithm can be applied to more data analysis and processing, providing a basic principle for cuckoo algorithm data processing, and laying a solid foundation for the improvement of cuckoo algorithm. Keywords: Cuckoo algorithm; Improved algorithm; Processing of data. 1. Introduction In nature, cuckoo, also known as cuckoo, mostly lives in the woods of tropical and temperate regions. It is famous for its distinctive call "cuckoo cuckoo". It is a very mysterious bird, which breeds its offspring and never nests. And the owner of the nest in the excess of other eggs to eat, let the nest owner to help it raise the next generation, really can be described as the nature of the "preger". Cuckoo chicks typically need less time to hatch than their host's eggs do to develop, and their innate ability is to kill other chicks and then mimic their calls to increase the chances that the nest host will provide them with food. Nick Vickers, a professor of ecology at the University of Cambridge, has studied the habits of cuckoos and kept records of their breeding habits. 2. Basic principles of Cuckoo optimization algorithm 2.1. The origin of the cuckoo algorithm In 2009, scholars Xin-She Yang and Suash Deb created a new and more intelligent heuristic algorithm -- CS algorithm, which can be used to optimize parameters, based on the connection between cuckoo parasitic breeding behavior and optimization algorithm. Osman explains the heuristic algorithm as follows: On the basis of iterative random optimization, it constructs the algorithm logic according to the biological behavior in nature, guides the algorithm to explore the search space, uses the learning strategy to generate information, and obtains the optimal solution of the optimization parameters through the most effective path. The biggest feature of this kind of algorithm is that it draws on the natural law phenomenon or the principle of biomimetic, in which scholars design intelligent optimization algorithm according to the natural law According to the researchers' paper, Lexy flight is a characteristic of most flying animals in nature, with a sharp 90-degree turn in a straight-line flight and a sudden, large step forward in a slow flight to change the trajectory of movement. Figure 1 describes the motion track of 800 steps of Levy flight iteration, in order to understand Levy flight characteristics more directly through the figure. Cuckoo belongs to one of the natural flying birds. The walking pattern and movement characteristics of cuckoo searching for nesting nests at random are consistent with Levy distribution. From the perspective of mathematical problems, Lexy flight is a typical random walk process. The distribution formula is as follows:   3/2 1 exp ,0 2 2 ( ) 0,( , , ) {          −     − −  = s s s otherwiseL s Where s is the step size in the random walk process; L(s), L(γ) and L(μ) represent the probability of step size s, γ and μrespectively. Gamma is the order of magnitude; μ is the smallest step. As s goes to ∞, the formula becomes as follows: 3/2 1 ( , , ) 2     =L s s In the case of s →∞, the inverse integral of L(s) is estimated as: 1 ( )sin( / 2) ( ) ,      +   = →L s s s Where is the Ganmma function. When z and n are equal and both integers ( )=(n-1)! n Fig 1. Levy distribution 2.2. Operation steps of Cuckoo algorithm The CS algorithm derived from cuckoo reproduction phenomenon is carried out in two search stages: global search and local search. Global search is designed to solve the optimization problem by population renewal based on Cuckoo Levy flight principle. Local optimal is mainly optimized by using the specified formula. It is characterized by few operation parameters, simple operation, strong global 14 optimization ability of data search, and easy to mix with other algorithms. At present, three ideal states are assumed, which are as follows: (1) Under ideal conditions, cuckoo finds a nest and produces only one egg in the nest, and the process of finding the host nest is random; (2) When the cuckoo chooses the nest of the host arbitrarily, it will look at the location of the nest of the next host, and save the nest with better conditions for the next breeding; (3) Assuming that the total number of breeding cuckoos is a quota, the number of host nests available for each breeding is fixed. Under certain conditions, the cuckoo has a zero to one chance of being detected by the nest owner. Once a bird's nest owner discovers that the eggs residing in his nest are not self-producing, one of two things can happen: In the first case, the host bird identifies the eggs produced by itself, identifies the eggs of the invader, and throws or eats the cuckoo's eggs from the nest; in the second case, the host bird abandons its own eggs and the nest together and chooses a new location for nesting in another place, which indicates that there is a certain probability of the replacement of the host bird's nest. If the above three assumptions are met, cuckoo only produces one egg in a single host nest, which determines that the meaning of cuckoo egg, cuckoo bird, and nest in this breeding situation is the same. Scholars have linked the phenomenon of cuckoo reproduction and survival with the optimization process of CS algorithm. Firstly, cuckoo birds search for nests through Levy flight, and then produce cuckoo eggs in the host nests. The process of locating and finding nests to lay eggs is defined as the global search stage of CS algorithm. When the bird's nest owner finds the foreign invasive bird's egg, he throws the cuckoo's egg, which is equivalent to the local search stage. In the algorithm, the fitness function is used to evaluate the quality of the bird's egg, which means that the higher the fitness of the bird's egg, the higher the survival probability, and the optimal solution will be closer to the ideal value. The first step is to set the parameters and initialize the population. It includes the setting of algorithm parameters, such as the population size N, step size expressed as α, probability p, and then start to initialize the population. The second step is to set the conditions for the termination of the program. That is, the optimal solution appears when the program runs or not reaches the maximum number of iterations; The third step is population renewal Before the program runs to the optimal solution, all the individuals will be replaced by the next new individual. For example, the position of the ith individual in generation t is expressed as Xt i , Its position is updated as follows: 1X ( ) −= + t t i iX Levy In the equation, ⊕ represents point-to-point multiplication, and α>0 is the step parameter related to the optimization problem scope size, which is constant in most cases. However, in order to adapt to the solution of multi- dimensional problems, α can be considered as a vector, generally acceptable 0.01, through the following formula to calculate: 0= ( )  −t t j ix x Step four: Choose better Selective selection, that is to say, in evolution, the fitness values of the parent and child individuals are compared, and the individuals with high fitness values are retained to the next generation, in order to make the iterative process develop in a better direction. Step 5: Random migration In random migration, the moving step size of Wright distribution is taken as a reference as follows: 1~ (0 2) − −=  Levy t In order to make full use of the information provided by the current optimal individuals, the complete levy flight operator is as follows. 0 1 ( ) ( ) ~ 0.01 ( )    −  −t t t t j i j ix x levy x x v Where: μ and ν obey normal distribution; 3. Conclusion This paper provides a basic principle for data processing of Cuckoo algorithm, and also lays a solid foundation for the improvement of Cuckoo algorithm. At a time when many optimization methods are evolving, the cuckoo algorithm can be considered for practical engineering applications. References [1] G. Liu*, X. Zhang*, X. Chen*, Y. He*, L. Cheng, M. Huo, J. Yin, F. Hao, S. Chen, P. Wang, S. Yi, L. Wan, Z. Mao, Z. Chen, X. Wang, Z. Cao, J. Lu†. Additive manufacturing of structural materials, Materials Science and Engineering: R: Reports. Online Apr 2021. [2] G. Liu, Y. Zhao, G. Wu, J. Lu†. Origami and 4D printing of elastomer-derived ceramicstructures, Science Advances. 4(8), eaat0641, Aug 2018. [3] G. Liu*, Y. He*, P. Liu*, Z. Chen, X. Chen, L. Wan, Y. Li, J. Lu. Development of bioimplants with 2D, 3D, and 4D additive manufacturing materials, Engineering. 6(11), 1232-1243, Nov 2020. [4] Z. Mao, K. Zhu, L. Pan, G. Liu, T. Tang, Y. He, J. Huang, J. Hu†, K. Chan†, J. Lu†. Direct‐ink written shape‐morphing film with rapid and programmable multimotion, Advanced Materials Technologies. 5(2), 1900974, Jan 2020. [5] Z. Li, P. Liu, X. Ji, J. Gong, Y. Hu, W. Wu, X. Wang, H. Peng, R. Kwok, J. Lam†, J. Lu, B. Tang†. Bioinspired simultaneous changes in fluorescence color, brightness, and shape of hydrogels enabled by AIEgens, Advanced Materials. 32(11), 1906493, Feb 2020. [6] X. Yan, S. Yin†, C. Chen, R. Jenkins, R. Lupoi, R. Bolot, W. Ma, M. Kuang, H. Liao, J. Lu†, M. Liu†. Fatigue strength improvement of selective laser melted Ti6Al4V using ultrasonic surface mechanical attrition, Materials Research Letters. 7(8), 327-333, Apr 2019. [7] L. Cheng, T. Tang, H. Yang, F. Hao, G. Wu, F. Lyu, Y. Bu, Y. Zhao, Y. Zhao, G. Liu, X. Cheng, J. Lu†. The twisting of dome- like metamaterial from brittle to ductile, Advanced Science. Accepted Jan 2021. [8] DUNN J C.A Graph Theoretic Analysis of Pattern Classification via Tamura’s Fuzzy Relation [J].IEEE Transactions on Systems Man & Cybernetics, 1974, SMC-4(3): 310-313. [9] ZHANG Z X, GU B P.Intrusion Detection Network Based on Fuzzy C-Means and Particle Swarm Optimization [C] //Proceedings of the 6th International Asia Conference on Industrial Engineering and Management Innovation.Tianjin: IEMI, 2016: 111-119 15 [10] ZHAO K, DAI Y, JIA Z, et al.General Fuzzy C-means Clustering Algorithm Using Minkowski Metric[J]. Signal Processing, 2021, 188(C): 108161. [11] DEY S, DE S, PAUL S.A New Approach of Data Clustering Using Quantum Inspired Particle Swarm Optimization Based Fuzzy C-means [C] // 11th International Conference on Cloud Computing, Data Science& Engineering (Confluence). 2021: 59 -64. DOI: 10.1109 / Confluence51648.2021.9377105.