Simulating natural selection to solve computer science problems!

posted 0 min read

Simulating natural selection to solve computer science problems!
While researching some of the newer developments in computer science, I explored using a Genetic Algorithm to automatically "evolve" a high quality test suite for a tricky e-commerce pricing function. The algorithm learns the validation rules and generates a concise set of intelligent tests on its own.

I've written a full, step-by-step guide explaining how the Python code works from the fitness function to crossover and mutation. You can also checkout a written paper explaining the motivation and logic behind the exploration.

Check out the paper here:
https://github.com/ShivangVora1206/Genetic-Algorithm/blob/main/paper.pdf

Check out the developer's guide here on dev.to:
https://dev.to/shivangvora1206/a-developers-guide-to-test-case-generation-with-genetic-algorithms-4mef

1 Comment

0 votes

More Posts

How to Achieve Automated Testing Within Sprint?

Shivam Bharadwaj - Feb 6

TextQL rewrote their codebase seven times to solve natural language querying at petabyte scale.

Tom Smith - Oct 10

Embarking on a New Learning Journey: CS50x - Introduction to Computer Science

ravixalgorithm - Mar 3

My end-to-end automated YouTube video factory

Fernando Richter - Jul 12

Feature Selection

Carlos Almonte - Aug 23
chevron_left