Skip to main content

Questions tagged [genetic-algorithms]

A genetic algorithm is a class of adaptive stochastic optimization algorithms involving search and optimization. Genetic algorithms were first used by Holland (1975).

0 votes
1 answer
178 views

Reading this interesting paper it seems that a lot of performance loss is due to scheduling overhead in tight loops. To recap: There's a variable called "Chunksize" which determines how big ...
glades's user avatar
  • 493
0 votes
2 answers
177 views

I am trying to engineer a library for the Genetic Algorithm optimization method. The main class for the GA is quite general. Here is what I have for it struct GAOptions{ size_t max_ga_steps; ...
Ashkan's user avatar
  • 103
4 votes
1 answer
454 views

A while ago, I tried to help a fella to develop a mentorship matchmaking program given the answers of a questionnaire to match mentors and mentees according to their respective skills and available ...
Natalie Perret's user avatar
1 vote
2 answers
416 views

I am trying to plant a garden. Certain plants are good for some plants and bad for others, and I am trying to find the best order of plants: most adjacent friends and no adjacent foes, as defined in ...
Sam's user avatar
  • 119
3 votes
1 answer
309 views

I have created a Gomoku(5 in a row) AI using Alpha-Beta Pruning. It makes move on a not-so-stupid level. First let me describe the grading function of the Alpha-Beta algorithm. When it receives a ...
Dashadower's user avatar
2 votes
2 answers
871 views

this is similar, but no the same as this post, which was the closest question I could find on this. I don't even see that answer as satisfactory for the question asked in that thread let alone TDD. ...
Krupip's user avatar
  • 1,347
4 votes
1 answer
353 views

We have 10 bags. Each bag has 5 compartments numbered from 1 to 5. We have 100 objects to fill all the compartments and bags. Compartment number x in a bag is identical to compartment of the same ...
Hans's user avatar
  • 177
2 votes
1 answer
493 views

Recently I got interested in scheduling problems or rather dynamic scheduling problem. The problem is that I want to develop some kind of layer in my application which will be polling circa about 50-...
Apple Pie's user avatar
3 votes
4 answers
3k views

When encoding our chromosome's characteristics (for want of a better word), binary seems to be the favoured method. I understand that this gives the maximum possibilities for crossover and mutation, ...
Avrohom Yisroel's user avatar
3 votes
2 answers
261 views

Say I'm writing a GA to solve the travelling salesman problem. I don't know in advance what the shortest path is, so how does my GA know when to stop? If I wait until the best fitness doesn't reduce ...
Avrohom Yisroel's user avatar
6 votes
1 answer
1k views

I think I've got the hang of writing a GA when you know the number of genes in a chromosome. For example, if you're searching for a string, and you know the length, you can just generate your initial ...
Avrohom Yisroel's user avatar
0 votes
0 answers
1k views

I know GA questions are often almost impossible to answer exactly, but I'm looking for some general advice (although specific advice would be great too!). I've just written my second GA, which tries ...
Avrohom Yisroel's user avatar
9 votes
2 answers
2k views

Most of the literature I've read about GAs suggests using a crossover value of around 0.7, so you take the first 70% of one chromosome's genes, and the last 30% of the other to produce one new ...
Avrohom Yisroel's user avatar
5 votes
2 answers
3k views

Thanks to some great replies in a previous question, I think I now have a better understanding of GAs, but am still confused on a couple of points. I'll start with one here. I've been reading around ...
Avrohom Yisroel's user avatar
32 votes
5 answers
8k views

I was introduced to genetic algorithms recently by this MSDN article, in which he calls them combinatorial evolution, but it seems to be the same thing, and am struggling to understand how combining ...
Avrohom Yisroel's user avatar

15 30 50 per page