CS607 Assignment 2 Solution and Discussion

Assignment No. 02
Semester: Fall 2019
CS607: Artificial Intelligence
Total Marks: 20

Due Date:29/11/2019

It should be clear that your assignment will not get any credit if:
 The assignment is submitted after the due date.
 The submitted assignment does not open or the file is corrupt.
 The Solution is copied from any other source.
The objective of this assignment is to;
 Learn and practice basic concepts of Eight Queen problem.
 Basic understanding of Knowledge representation through graph.


Question No. 1

Consider the Eight-Queen problem to use representation and strategy on chess board. Show the positions of Individuals on chess board table and calculate the fitness values for both individuals in first iteration. The individuals (board positions) are given below:
(a) 47285421
(b) 52416782

Question No. 2

Given the following information you are required to represent it by using the graph.
o Zulfiqar is Hussain’s Father
o Zahra is Hussain’s Mother
o Hussain is Zulfiqar and Zahra‘s Son

You are required to submit your solution through LMS as an MS Word document.

  • For the 1st Queen, there are total 8 possibilities as we can place 1st Queen in any row of first column. Let’s place Queen 1 on row 3.

  • After placing 1st Queen, there are 7 possibilities left for the 2nd Queen. But wait, we don’t really have 7 possibilities. We cannot place Queen 2 on rows 2, 3 or 4 as those cells are under attack from Queen 1. So, Queen 2 has only 8 – 3 = 5 valid positions left.

  • After picking a position for Queen 2, Queen 3 has even fewer options as most of the cells in its column are under attack from the first 2 Queens.

Dear Students for Queen Problem Solution Please contact in Live Chat!

This post is deleted!