D
D
Dmitry2017-12-02 20:55:14
Programming
Dmitry, 2017-12-02 20:55:14

Is it appropriate to solve the problem using a genetic algorithm?

Can a genetic algorithm be used to solve this problem?
It sounds like a layout problem.
The task is as follows:
You need to get strings of length 5, where the difference between adjacent characters is greater than 10.
(I know that it is better to do it by enumeration, but the condition is to be solved using a genetic algorithm)
And describe in the general case how to understand that this is applicable to the problem an approach.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Skusnov, 2017-12-05
@cosmoskey

The algorithm makes sense for optimization. If you said not "greater than 10", but "the sum of the distances is the largest" or "the smallest of the four distances is the largest", then you are welcome.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question