# Author: Andy

## Genetic Algorithms Applied to Travelling Salesman Problems in C++

Introduction Following on from a previous posting on Simulated Annealing applied to travelling salesman problems, here is a posting that carries on in a similar vein, this time focusing on …

## C++ Implementation of Hill-climbing and Simulated Annealing applied to Travelling Salesman Problems

Introduction Following from a previous post, I have extended the ability of the program to implement an algorithm based on Simulated Annealing and hill-climbing and applied it to some standard …

## C++ Implementation of 2-opt to the “Att48” Travelling Salesman Problem

Introduction Some initial results from experimenting with the 2-opt heuristic and applying it to a standard traveling salesman test problem. C# / WPF equivalent implementation can be found here: http://www.technical-recipes.com/2017/applying-the-2-opt-algorithm-to-travelling-salesman-problems-in-c-wpf/ …

## Number System Conversions in C++

A posting which I will probably update from time to time that summarizes the conversion functions I encounter in C++. Hope others will find this useful too. 32-bit IEEE 754 …

## A Genetic Algorithm Function Optimizer in C++

Introduction An example of how a genetic algorithm can be applied to optimize standard mathematical functions, such as the Rosenbrock function. (Image obtained from the Wikipedia page.)

## Converting between binary and decimal representations of IEEE 754 floating-point numbers in C++, Java and Python

This post implements a previous post that explains how to convert 32-bit floating point numbers to binary numbers in the IEEE 754 format. What we have is some C++ / …

## Mixing Managed and Native Types in C++ / CLI

Brief Introduction C++/CLI (Common Language Infrastructure) was designed to bring C++ to .NET as a means of developing managed code applications. Specifically it helps simplify writing managed code when using …

## Mapping Words to Line Numbers in Text Files in STL / C++

Following on from the previous post, this example shows an example of how to use an STL multimap to track the line number(s) associated with each word in a text …

## Counting the Number of Words in a Text File in STL / C++

This post aims to illustrate the power of using STL’s associative arrays as a word counter. It reads the entire contents of the text file, word-by-word, and keeps a running …

## How to Create an Installer with Microsoft Visual Studio

Introduction Visual Studio 2010 contains a package that enables you to create Windows installer files for your applications. Follow these simple steps to build your own setup package for the …