Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose a genetic algorithm is designed to solve the 8 - puzzle problem, which consists of a 3 x 3 grid with tiles numbered from

Suppose a genetic algorithm is designed to solve the 8-puzzle problem, which consists of a 3x3 grid with tiles numbered from 1 to 8 and one empty space. The goal is to move the tiles until the grid matches the target configuration, as shown below:
The algorithm uses an encoded string of length 9 to represent the position of the tiles and the empty space (denoted as '0').
Consider the fitness of a string y to be calculated based as follows:
F=72-n,
Where n is the number of misplaced tiles from each tile's current position to its target position in the least number of moves.
Given the initial set of strings representing different states of the puzzle:
y1="283164075"(Represents the puzzle rows from top to bottom)
y2="123845760"
y3="123456780"
y4="012463758"
a) Calculate the fitness of each string, showing all your workings, and rank them in order with the highest fitness first (closest to the solution) and the lowest fitness last (farthest from the solution).
b) Crossover Techniques:
i. One-Point Crossover: Choose the two strings with the highest fitness from the exercise above. Perform a one-point crossover at the fifth position to produce two offspring.
ii. Two-Point Crossover: Choose the strings ranked second and third in fitness. Perform a two-point crossover, exchanging the segments between the third and sixth positions inclusive, to produce two offspring.
c) Evaluation of the new collection:
For the four offspring produced from the crossovers, calculate the fitness for each new string. Compare the collective fitness of the offspring to the collective fitness of the initial strings to determine if there was an improvement.
d) According to the obtained four offspring, is the method used for crossover well adapted to the context of the 8-puzzle problem?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

Students also viewed these Databases questions