Skip to content

Commit e00a1cd

Browse files
Polish up
1 parent c8ad15c commit e00a1cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

genetic_algorithm/knapsack.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
"""Did you know that Genetic Algorithms can be used to quickly approximate
22
combinatorial optimization problems such as knapsack?
33
4+
It is commonly known that combinatorial optimization problems can be solved using
5+
dynamic programming. It is lesser known that genetic algorithms (or evolutionary
6+
computing in general) can reach the best solution fairly quickly in a lot of cases.
7+
Otherwise, it can still approximate a very good solution (in life, good is good
8+
enough).
9+
410
Genetic algorithms: https://en.wikipedia.org/wiki/Genetic_algorithm
511
Evolutionary computation: https://en.wikipedia.org/wiki/Evolutionary_computation
612
Knapsack problem: https://en.wikipedia.org/wiki/Knapsack_problem

0 commit comments

Comments
 (0)