Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Engineering Mathematics Expert

(1) This problem concerns of the proof of the NP-completeness of 300L

a) Convert the formula F into a 300L graph
b) Find a solution for the 300L instance of F and verify that it is a solution for F

F = (Z1 V Z2) ^ (z1 V z2 V z3 V z4)

(2)

The Traveling Salesman Problem (TSP) is one which has commanded much attention in Artificial Intelligence because it is so easy to describe and so difficult to solve. The problem can simply be stated as: if a traveling salesman vvishes to visit exactly once each of a list m cities (where the cost of traveling from city i to city j is co) and then return to the home city, what is the least costly route the traveling salesman can take.

The importance of the TSP is that it is representative of a larger class of problems known as combinatorial optimization problems. The TSP problem belongs in the class of combinatorial optimization problems known as NIP-hard. Today. no one has found a polynomial-time algorithm for the TSP.

A Simple Genetic Algorithm

A simple genetic algorithm can be defined in the following 9 steps:

Step 1: create an initial population of P chromosomes (generation 0)

Step 2: evaluate the fitness of each chromosome

Step 3: Select P parents from the current population via proportional selection (i.e.. the selection probability is proportional to the fitness).

Step 4: choose at random a pair of parents for mating. Exchange bit strings with a crossover operation to create two offspring (e.g., one-point crossover)

Step 5: process each offprint by the mutation operation, and insert the resulting offspring in the new population

Step 6: repeat steps 4 and 5 until all parents are selected and mated (P offspring are created)

Step 7: replace the old population of chromosomes in the new population Step 8: evaluate the fitness of each chromosome in the new population

Step 9: go back to step 3 if the number of generations is less than some upper bound. Otherwise, the final result is the best chromosome created during the search.

Selection Probability:

The parent chromosomes are selected for mating via proportional selection. also known as roulette wheel selection'. It is defined as follows:
'1) Sum up the fitness values of all chromosomes in the population
2) Generate a random number between 0 and the sum of the fitness values
3) Select the first chromosome whose fitness value added to the sum of the fitness values of the previous chromosomes is greater than or equal to the random number

Initial population
In addition to the crossover and mutation operators you will also evaluate the impact of the GAs with the following initial populations:
- Randomly generated population
- Nearest neighbor insertion
Crossover and mutation operators
Write a program that solves the TSP using Genetic Algorithms. Explain and implement the following crossover & mutation operators:
- Uniform order-based crossover
- Cycle Crossover (CX)
- Reciprocal exchange mutation
- Scramble Mutation

Output:
1. Solution
2. Implementation of Genetic algorithms with the above mentioned crossover and mutation operations
3. A basic evaluation that should describe the following two basic configurations:

Configuration

initial Solution

Crossover

Mutation

Selection

1

Random

Uniform
Crossover

Reciprocal
Exchange

Random
Selection

2

Random

Cycle
Crossover

Scramble
Mutation

Random
Selection

Population size = 100 Mutation rate = 0.1

Extensive evaluation of the GA, i.e., initial population, crossover & mutation operators. Extensively evaluate the following combination of operations investigate the impact of varying the population, size, explore different mutation rates, and evaluate the impact of your GA with and without elite survival.

Configuration

Initial
Solution

Crossover

Mutation

Selection

3

Random

Uniform
Crossover

Reciprocal
Exchange

Roulette Wheel

4

Random

Cycle
Crossover

Reciprocal
Exchange

Roulette Wheel

5

Random

Cycle
Crossover

Scramble
Mutation

Roulette Wheel

6

Random

Uniform
Crossover

Scramble
Mutation

Best and
Second best
candidates

Provide a comprehensive description of the algorithms and an extensive evaluation of the results. It should describe the experimental design, what experiments are and what they are intended to show.

Use tables and figures where appropriate.

Assess the overall performance of your optimization algorithms for solving the travelling salesman problem. Typically, to evaluate the performance of your algorithm for a single configuration you would run your algorithm multiple times (at least 5 times in this project with at least 1000 iterations per execution) and record the best fitness for all runs. You can then report the mean and median fitness across all runs. Your results should show that you have considered the suggested operators (e.g., crossover, mutation and selection).

(nb: problem instances will be provided) Deliverable:
- Source code in python
- Any instructions for executing source
- A sample file that describes the test run on the program
- Descriptions and documentation

Engineering Mathematics, Engineering

  • Category:- Engineering Mathematics
  • Reference No.:- M93125531
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Engineering Mathematics

Problem 1given a sequence xn for 0lenle3 where x0 1 x1 1

Problem # 1: Given a sequence x(n) for 0≤n≤3, where x(0) = 1, x(1) = 1, x(2) = -1, and x(3) = 0, compute its DFT X(k). (Use DFT formula, don't use MATLAB function) Use inverse DFT and apply it on the Fourier components X ...

1 this problem concerns of the proof of the np-completeness

(1) This problem concerns of the proof of the NP-completeness of 300L a) Convert the formula F into a 300L graph b) Find a solution for the 300L instance of F and verify that it is a solution for F F = (Z 1 V Z 2 ) ^ (z ...

Math assignment -q1 let fx -x3-cosx and p0 1 use newtons

Math Assignment - Q1. Let f(x) = -x 3 -cos(x), and p 0 = 1. Use Newton's method to find p 2 . Could p0=0 be used? Q2. Perform two iterations by Newton's method and the secant method to each of the following: a. e x + 2 - ...

Assignment -1 let t and or 0 1 be a boolean algebradefine

Assignment - 1. Let (T, ∧, ∨,', 0, 1) be a Boolean Algebra. Define ∗ : T × T → T and o : T × T → T as follows: x ∗ y := (x ∨ y)' x o y := (x ∧ y)' (a) Show, using the laws of Boolean Algebra, how to define x ∗ y using on ...

Clculus assignment -q1 find the total differential of w

CALCULUS ASSIGNMENT - Q1. Find the total differential of w = x 3 yz + xy + z + 3 at (x, y, z) = (1, 2, 3). Q2. Find the value of the double integral ∫∫ R (6x + 2y 2 )dA where R = {(x, y)| - 2 ≤ y ≤ 1, y 2 ≤ x ≤ 2 - y. Q3 ...

I have these questions for a homework assignment and have

I have these questions for a homework assignment and have to show work. This works with MIPS coding language and is the class Introduction to Computer Architecture. 1. Find the 2's complement representation (in 32-bit he ...

Question a suppose that you are given an instance of the

Question : (a) Suppose that you are given an instance of the MST problem on a graph G, with edge weights that are all positive and distinct. Let T be the minimum spanning tree for G returned by Kruskal's algorithm. Now s ...

All these questions should be answered in matlab 1 generate

All these questions should be answered in MATLAB !!! 1. Generate a set of 3 random patterns of dimension 12 where each value is +1 or -1.(3 random 12*12 matrix) 2. Create a 12-unit Hopfield network (a 12x12 matrix) from ...

Assignment - lp problemsthe data for all the problems in

Assignment - LP problems The data for all the problems in this HW are included in the LP_problems_xlsx spreadsheet. Problem 1 - Cash Planning A startup investment project needs money to cover its cash flow needs. At the ...

Question suppose g is an undirected connected weighted

Question : Suppose G is an undirected, connected, weighted graph such that the edges in G have distinct edge weights. Show that the minimum spanning tree for G is unique.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As