subject

(30 points) We would like to use a genetic algorithm to solve the 8-Queens problem. Remember, this problem asks you to place 8 queens on an 8 x 8 chessboard such that no two queens can attack each other (i. e., share the same row, column, or diagonal). a)Propose a chromosome representation (i. e., a state representation) such that the string contains only numbers 1 through 8 and the state is valid. A valid state is one in which there is exactly one queen per column and one queen per row. Explain why your representation only encodes valid states. b)Propose a crossover operator that ensures that child states are valid and explain why your operator would help generate good results over other operators. Show (i. e., draw) an example of your crossover operator on two parent states to produce two child states.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:40, ihatemylife0
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, kayelynn003
How many points do i need before i can send a chat
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, yasarhan2
Match the following errors with their definitions. a. #name b. #value c. #ref d. 1. when a formula produces output that is too lengthy to fit in the spreadsheet cell 2. when you enter an invalid cell reference in a formula 3. when you type text in cells that accept numeric data 4. when you type in a cell reference that doesn’t exist
Answers: 1
image
Computers and Technology, 24.06.2019 02:40, homework1911
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
You know the right answer?
(30 points) We would like to use a genetic algorithm to solve the 8-Queens problem. Remember, this p...

Questions in other subjects:

Konu
Mathematics, 04.12.2020 17:40