All Questions
Tagged with genetic-algorithm java
15 questions
2
votes
1
answer
190
views
An evolutionary algorithm written in Java to crack an XOR cipher
Alright. So TryHackme is a website that tries to teach hacking with hands on labs. They have a room called JVM Reverse Engineering where the user gets to reverse engineer Java apps, and in particular ...
3
votes
2
answers
172
views
Much more efficient trisexual genetic algorithm for TSP in Java
(The entire project lives there.)
This time, I have made the previous version of the GA for TSP run faster by around the factor of 6+. The idea is to cache the tour costs with the actual tour objects ...
2
votes
0
answers
65
views
Genetic trisexual algorithm for TSP in Java [duplicate]
(A more efficient version of the GA.)
This is my the very first take ever on GA:
GeneticTSPSolverV1.java:
...
1
vote
1
answer
104
views
Genetic TSP in Java with graph expansion
This post presents my take on TSP (travelling salesman problem). The idea is to:
Take an input node i,
Compute the entire graph ...
2
votes
0
answers
115
views
Giffler Thompson Algorithm for decoding individuals of a Genetic Algorithm
First of all: Hi, my name is Henrik and I am a mechanical engineer, who loves to code in his free time.
To get better in programming I wrote a genetic algorithm compined with a list planning algorithm ...
2
votes
1
answer
269
views
Crossover and Mutation functions for Genetic Algorithm
I'm writing a decryption algorithm using GA with crossover and mutation. My performance is (very) poor, often stagnating early or converging to the incorrect solution. I just want some other people to ...
1
vote
1
answer
94
views
Design of genetic algorithm which would allow TDD
I'm implementing genetic algorithm in Java and I want to learn TDD with this project.
Currently I have this code:
...
7
votes
1
answer
1k
views
Genetic Algorithm for N-queens is very slow
Using Genetic Algorithm to solve N-Queens problem where N=22. My program is functional and is capable of solving N-Queen problems up to around where N=15, but everything after that is absurdly slow.
...
3
votes
1
answer
303
views
Agar.io-like game
I've created a game (basically an Agar.io clone), where a human player is placed against AI controlled bots powered by a genetic algorithm and neural networks.
The problem is that I think that my ...
1
vote
0
answers
1k
views
Genetic algorithm in Java
I am working on a genetic algorithm using the following code. The variable best in generateNewPopulation stores the best ...
7
votes
1
answer
802
views
Genetic algorithm to find the maximum binary number of a given length
I have written some codes in java implementing simplest genetic algorithm. The code finds (or rather tries to) the maximum value possible for a user-defined number of bits. For example, for 16 bit ...
2
votes
1
answer
305
views
Hash Matrix performs Gaussian elimination
This is the Hash-Matrix that I used in order to process the matrix for my quadratic sieve algorithm. You can find the full code at here(it's java 7), but I only want you to review this class.
My ...
1
vote
1
answer
13k
views
Genetic algorithm to fill timetable for school
I wrote a program to fill a timetable for a school. There are some simple rules:
Each subject has a preset number of blocks (blocks are 2 hour periods).
Professor provide a valid hours they have to ...
11
votes
1
answer
2k
views
Backpropagating with Neural Network
I wrote a Java program implementing a neural network with backpropagation. For anyone who isn't familiar with Neural Networks and Backpropagation, here is a good resource. Here is another ...
3
votes
1
answer
4k
views
Genetic Algorithm for TSP
This is something that I am proud of and would like to have people dissect and tell me where my faults are in. I feel that if I open my best for criticism then maybe it will reveal the deep seeded bad ...