Classic Computer Science Problems in Java by David Kopec

Classic Computer Science Problems in Java by David Kopec

Author:David Kopec [David Kopec]
Language: eng
Format: epub, pdf
Publisher: Manning Publications Co.
Published: 2020-12-30T23:00:00+00:00


5.8 Exercises

Add support to GeneticAlgorithm for an advanced form of tournament selection that may sometimes choose the second- or third-best chromosome, based on a diminishing probability.

Add a new function to the constraint-satisfaction framework from chapter 3 that solves any arbitrary CSP using a genetic algorithm. A possible measure of fitness is the number of constraints that are resolved by a chromosome.

Create a class, BitString, that implements Chromosome. Recall what a bit string is from chapter 1. Then use your new class to solve the simple equation problem from section 5.3. How can the problem be encoded as a bit string?



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.