Posts

Showing posts from 2019

Difference between genetic and evolutionary algorithms?

Genetic algorithms use crossover (hence the 'gene' in their name) and mutation to search the space of possible solutions. Evolutionary programming uses primarily mutation. As posted already, both are types of evolutionary algorithms.  So, evolutionary algorithms encompass genetic algorithms, and more. via: https://stackoverflow.com/questions/2890061/what-is-the-difference-between-genetic-and-evolutionary-algorithms

Declarative vs Imperative Coding Paradigm

Image
Declarative is the what without the logic for the how. eg HTML, JSON Imperative is the logic flow, eg: Java, Python, any oops or functional programming language via: https://medium.com/front-end-weekly/imperative-versus-declarative-code-whats-the-difference-adc7dd6c8380 Imperatively speaking As a web developer you are likely using both paradigms with different code even if you may not be familiar with the terms. Programming languages tend to have  multi-paradigm  tendencies using both imperative and declarative syntax and I will use  JavaScript  to demonstrate that as well. Imperative paradigm Procedural  and  object-oriented programming  belong under  imperative paradigm  that you know from languages like  C ,  C++ ,  C# ,  PHP ,  Java  and of course  Assembly . Your code focuses on creating  statements that change program states  by creating algorithms that tell the computer  how to do things . It closely relates to how hardware works. Typically your code will ma