Genetic Algorithms for Quadratic Equations
Keywords:
Genetic Algorithm, Roots, Fitness Function, Complex Numbers, Quadratic Equation.Abstract
A common technique for finding accurate solutions to quadratic equations is to employ genetic algorithms. The authors propose using a genetic algorithm to find the complex roots of a quadratic problem. The technique begins by generating a collection of viable solutions, then proceeds to assess the suitability of each solution, choose parents for the next generation, and apply crossover and mutation to the offspring. For a predetermined number of generations, the process is repeated. Comparing the evolutionary algorithm's output to the quadratic formula proves its validity and uniqueness. Furthermore, the utility of the evolutionary algorithm has been demonstrated by programming it in Python code and comparing the outcomes to conventional intuitions.
Published
How to Cite
Issue
Section
Copyright (c) 2023 Authors
This work is licensed under a Creative Commons Attribution 4.0 International License.