Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Artificial Intelligence for Big Data

You're reading from  Artificial Intelligence for Big Data

Product type Book
Published in May 2018
Publisher Packt
ISBN-13 9781788472173
Pages 384 pages
Edition 1st Edition
Languages
Authors (2):
Anand Deshpande Anand Deshpande
Profile icon Anand Deshpande
Manish Kumar Manish Kumar
Profile icon Manish Kumar
View More author details
Toc

Table of Contents (19) Chapters close

Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
1. Big Data and Artificial Intelligence Systems 2. Ontology for Big Data 3. Learning from Big Data 4. Neural Network for Big Data 5. Deep Big Data Analytics 6. Natural Language Processing 7. Fuzzy Systems 8. Genetic Programming 9. Swarm Intelligence 10. Reinforcement Learning 11. Cyber Security 12. Cognitive Computing 1. Other Books You May Enjoy Index

Genetic algorithms structure


In this section, let's understand the structure of a genetic algorithm that finds the optimum solution for a problem where the search space is so huge that brute force cannot solve it. The core algorithm was proposed by John Holland in 1975. In general, Genetic Algorithm provides an ability to provide a good enough solution fast enough to be reasonable. The generic flow of a Genetic Algorithm is depicted in the diagram:

Let's try to illustrate Genetic Algorithm with a simple example. Consider that you have to find out a number (integer) in millions of values (the solution space). We can follow the steps in the algorithm and reach the target solution much quicker than application of a brute force method. Here is the implementation of the algorithm in Java:

  1. Define the GA class with a simple constructor to initialize the population:
  public GA(int solutionSpace, int populationSize,int targetValue, int maxGenerations, int mutationPercent) {

    this.solutionSpace...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime