CONDITIONAL PROBABILITY
|
|
- Brent Newton
- 5 years ago
- Views:
Transcription
1 Probability-based solution to N-Queen problem Madhusudan 1, Rachana Rangra 2 Abstract-This paper proposes the novel solution to N-Queen using CONDITIONAL PROBABILITY and BAYES THEOREM. N-Queen problem is a type of NP-hard problem, which aims at placing the queen in n*n chessboard in such a manner that no queen should kill another diagonally, horizontally and vertically. Earlier solutions have been provided using ACO (ant colony optimization), Genetic algorithm and DNA Sticker algorithm. The BAYES THEOREM updates the prior probability of theory being true to arrive at the posterior probability on the basis of given evidence, that is to find that present position is the safe position. By applying CONDITIONAL PROBABILITY the number of safe s in the next row with respect to the present position will be calculated. This algorithm will increase the reliability of the solution obtained. Index items-aco, Bayes Theorem, DNA Sticker, Genetic Algorithm, NP Hard Problem. I. INTRODUCTION N-Queen problem is a polynomial time problem defined as placing n queens on nxn chessboard, so that no queen attacks the other n-1 queens. This problem is categorized as 4 queen,8 queen and 16 queen problems. In 8 queen problem we are given with an 8x8 chessboard and the problem definition is placing all the 8 queens on the board such that no queen attacks each other [1].The solution is achieved by placing these queens on the board by different mechanism like backtracking [2],Anti Colony Optimization, DNASticker, and Genetic Algorithm etc. [3]. In Backtracking we start with placing a given queen on the board and then check the safes tates and repeat the algorithm till no safe s are left for the rest of the queens. When there are no safe s we backtrack by removing the last placed queen and again try to find the safe s by altering its position. If no safe is discovered then we move back to the queen who resulted in the unsafe for the rest of the queens. This algorithm generally works on a set of safe s and unsafe s. A safe is defined as a position on the board where a queen can be placed without any danger, and an unsafe is apposition where no queen can be placed since it is attacked by some other queen [4].Similarly the 4 queen and 16 queen problems are defined with 4x4chessboard and 16x16 chessboards respectively with the problem definition and solution definition being the same. Solution to n queen problem by ACO is such that we need to find the shortest path from source to destination with the condition that no two positions should be marked on one row. The idea is derived from the behavior of ant colony [5]. To apply ACO on n queen problem there are slight modifications. The vertices in search space are organized as rows * n column grid. Every vertex in a column is connected to all vertices in the next column through directed edges, except vertices in the nth column. An ant during a tour visits only n nodes (8 for 8-queen).The label of nodes in the tour cannot be the same. The node in a tour represents a cell of chessboard where a queen is to be placed. This restriction is added as if two nodes have same labels then 02 queens will be placed in same cell which is illegal. This essentially means that no two nodes in a tour will be in the same row of the search space [5]. We are proposing a solution to the given n queen problem using conditional probability and Bayes theorem. II. OBJECTIVES OF THE STUDY To study the existing solutions to the n queen problem and implement the probability theory to find a feasible solution that is reliable and consumes less time and space. III. PROPOSED SOLUTION In mathematical science probability is defined as the measure of occurrence of any event. The value of probability lies between 0 and 1 where 0 designates no occurrence of that event and 1 designates the total occurrence of that event. For example in a throw of die, the probability of occurrence of any of the number is 1/6. We are interested in the likelihood of an event which is defined as the favorable occurrence. Greater the value of likelihood better will be the solution [6]. The second concept used is that of conditional probability. In this case we find the probability of a given event on the basis of previous event. This is generally used when the events are dependent on the occurrence of some 426
2 other events. For example, if there is head then a die will be thrown else a coin will be tossed. So the probability of throwing a die is ½ and that of toss is also ½.The Bayes theorem defines the occurrence of an event A based on the occurrence of the events E1, E2, E3and so on [7]. P (A E1) = We proposed a solution using Conditional Probability and Bayes Theorem, for the given nxn chessboard. We find the probability of the safe s on the basis of placing a queen in the previous row/column. In the first row, since there is no danger, we can place the queen at any position. Then on the basis of the placement, we find the no of safe s and probability of safe s for the next row along with the maximum number of safe s for (n-2) queens. We discuss it with the help of 4x4. Let us assume that,,, Q4 be the positions in which the queens will be placed in future after finding the complete solution. Procedure:-Starting from the Row 1, since there is no danger and all the columns have equal probability that is 0.25, we can assume that queen is placed in any position which is Column 1, Column 2, Column 3,and Column 4. Step A: Assuming that in future the queen is placed in position (Column1 of Row 1) as shown in Fig.1.Now we calculate the number of safe s in the Row 2 corresponding to the position. S1 Fig 1. Number of safe s for position The shaded portion indicates the unsafe s for the next position with respect to position.as the Fig.1, indicates only two unshaded cells for Row 2. The number of safe s left are 2(S1 and ) Probability of each safe s = 1/4= 0.25 Since the probability of safe is same for both Column 3(S1) and Column 4() in Row 2 with respect to position. A.1 We can move further by assuming that the second queen will be placed in the position () (Column 2 of Row 2) as shown in Fig.2, which is the safe (S1) in Row 2 with respect to position.now we calculate the number of safe s in Row 3 with respect to position in Row
3 Fig 2. Number of safe s for position The shaded portion indicates the unsafe s for next position with respect to position.as the Fig.2, indicates no unshaded cells for row 3. The number of safe s left is 0. Probability of safe s =0. A.2 If we assume that the second queen will be placed in position 1(Column 4 of Row 2) as shown in Fig.3,which is the safe () in Row 2 with respect to position.calculating the number of safe s in Row 3 with respect to position 1 in Row 2. S3 1 Fig 3. Number of safe s for 1 position The shaded portion indicates the unsafe s for next position with respect to position 1. The Fig.3, indicates one unshaded cell in row 3 (S3). The Number of safe left for Third queen=1(s3). Probability of safe =1/4=0.25 A.2.1 Since we are left with only one safe (S3) for third queen, we assume that next position of queen will be (Column 2 of Row 3) as shown in Fig.4. Fig 4. Number of safe s for position 428
4 The shaded portion indicates the unsafe s for next position with respect to position. The Fig.4 indicates no unshaded cell in row 4 which indicates no safe. The number of safe s left Fourth Queen=0 Probability of safe sate=0. Step B: Assuming that in future the queen is placed in position ( Column 2 of Row 1) as shown in Fig.5. Now we calculate the number of safe s in the Row 2 corresponding to the position. S1 Fig 5. Number of safe s for position The shaded portion indicates the unsafe s for the position of next queen in Row 2 with respect to position.from the Fig.5, we can see that only one unshaded cell is left (S1). The number of safe s left for Second queen =1(S1) Probability of safe s = ¼=0.25 B.1 Since we are left with only one safe () for second queen, we assume that next safe position of queen will be (Column 4 of Row 2) as shown in Fig.6. Calculating the number of safe sates for next queen in Row 3 corresponding to position.. Fig 6. Number of safe s for position The shaded portion indicates the unsafe s for the placement of next queen in Row 3 with respect to position.the above Fig.6 shows only one unshaded cell remaining (). 429
5 The number of safe s left for Third queen =1() Probability of safe s = ¼=0.25 B.2 We move further by assuming that the third queen will be placed in the position (Column 1of Row 3) as shown in Fig.7, which is the safe () with respect to position.calculating the number of safe sates for next queen in Row 4 corresponding to position in Row 3. S3 Fig 7. Number of safe s for position The shaded portion indicates the unsafe s for the placement of next queen in Row 4 with respect to position.the above Fig.7 shows only one unshaded cell remaining (S3). The no of safe s left for Fourth queen =1(S3) Probability of safe s = ¼=0.25 B.3 Since we are left with only one safe S3 for the fourth queen, hence we assume that the last queen will be placed in position Q4 (Column 3 of Row 4) as shown in Fig.8, which is the safe (S3) with respect to position in Row 3. Place the queen Q4 in S3 (Column 3, row4). Q4 Fig 8. Position of 4 queens Step C: Assuming that in future the queen is placed in position (Column 3 of Row 1) as shown in Fig.9. Now we calculate the number of safe s in the Row 2 corresponding to the position. 430
6 S1 Fig 9. Number of safe s for position The shaded portion indicates the unsafe s for the position of next queen in Row 2 with respectto position.from the Fig.9. We can see that only one unshaded cell is left (S1). The number of safe s left for Second queen =1(S1) Probability of safe s = ¼=0.25 C.1 Since we are left with only one safe (S1) for second queen, we assume that next safe position of queen will be (Column 1 of Row 2) as shown in Fig.10. Calculating the number of safe sates for next queen in Row 3 corresponding to position Fig 10. Number of safe s for position The shaded portion indicates the unsafe s for the placement of next queen in Row 3 with respect to position.the above Fig. 10 shows only one unshaded cell remaining (). The number of safe s left for Third queen =1() Probability of safe s = ¼=
7 C.2 We move further by assuming that the third queen will be placed in the position (Column 4 of Row 3) as shown in Fig.11, which is the safe () with respect to position.calculating the number of safe sates for next queen in Row 4 corresponding to position in Row 3. S3 Fig 11. Number of safe s for position The shaded portion indicates the unsafe s for the placement of next queen in Row 4 with respect to position.the above Fig.11 shows only one unshaded cell remaining (S3). The number of safe s left for Fourth queen =1(S3) Probability of safe s = ¼=0.25 C.3 Since we are left with only one safe S3 for fourth queen, hence we assume that the last queen will be placed in position Q4 (Column 2 of Row 4) as shown in Fig.12, which is the safe (S3) with respect to position in Row 3 Place the queen Q4 in S3(Column 3, row4). Q4 Fig 12. Position of 4 queen Step D: Assuming that in future the queen is placed in position (Column 4 of Row 1) as shown in Fig.13.Now we calculate the number of safe s in the Row 2 corresponding to the position. 432
8 S1 Fig 13. Number of safe s for position The shaded portion indicates the unsafe s for the placement of next queen with respect to position.fig.13 indicates only two unshaded cells remaining. The number of safe s left are 2(S1 and ) Probability of each safe =1/4=0.25 Since the probability of safe is same for both Column 1(S1) and Column 2() in Row 2 with respect to position D.1. We can move further by assuming that the second queen will be placed in position (Column 1 of Row 2) as shown in Fig.14, which is the safe (S1) in Row 2 with respect to position.now Calculate the number of safe s in Row 3 with respect to position in Row 2. S3 Fig 14. Number of safe s for position The shaded portion indicates the unsafe s for next position with respect to position.as we can see from the Fig.14 only one unshaded cell is left in row 3. The number of safe s left for Third Queen is 1(S3) Probability of safe s =1/4=0.25. D.1.1. Since we are left with only one safe (S3) for third queen, we assume that next position of queen will be (Column 3 for Row 3) as shown in Fig
9 Fig 15. Number of safe s for position The shaded portion indicates the unsafe s for next position with respect to position.as we can see from the Fig.15 there is no unshaded portion left in row 4 which indicates no safe. S1 1 The number of safe s left Fourth Queen=0 Probability of safe sate=0. Fig 16. Number of safe s for 1 position D.2. If we assume that the second queen will be placed in position 1(Column 2 of Row 2) as shown in Fig.16, which is the safe () in Row 2 with respect to position.calculating the number of safe s in Row 3 with respect to position 1 in Row 2 The shaded portion indicates the unsafe s for next position with respect to position 1.As we can see from the Fig.16 there is no unshaded cellleft in row 3. The Number of safe left for Third queen=0 Probability of safe =0 I. Probability table for Row 1 Column 1 IV.RESULTS Row Column No of safe Probability Of safe 434
10 II. Probability table for Row 1 Column 1 ` Row Column III. Probability table for Row 1 Column No of safe Probability Of safe Row Column No of safe Probability Of safe IV. Probability table for Row 1 Column 3 Row Column No of safe Probability Of safe V. Probability table for Row 1 Column 4 Row Column No of safe Probability Of safe VI. Probability table for Row 1 Column 4 Row Column No of safe Probability Of safe VII. Total probability of safe s for each column in Row 1 Table I Table II Table III Table IV Table V Table VI
11 Feasible solution:-we will choose the set of columns which maximizes the total probability of safe s. From the above table we can find that the maximum probability of safe s is given by Column 2 and Column 3 that is The solution set is given by following combination of columns i)2, 4, 1, 3 ii)3, 1, 4, 2 V. CONCLUSION & FUTURE SCOPE The solution we proposed provides a reliable and time efficient results to the 4 queen problem, and the solution can be spanned for any values of n except n=2 and n=3.calculating the total probability of all the safe s for the present, and then selecting the solution set with the maximum total probability, provides the set of safe s for the N-Queen problem. Contrary to placing the queen and then checking for the safe, we first search for all the safe s with their probability and then chooses the set of safe s which has highest probability. REFERENCES [1] Prabhakar. Gupta, Vineet.Agarwal and Manish.Varshney, Design and Analysis of Algorithms, Second Edition, PHI Learning Private Ltd., [2] Elaine. Rich, Kevin. Knight and Shivashankar.Nair, Artificial Intelligence, McGraw Hill Education, Third Edition, [3] S.Pothumani, Solving N Queen Problem Using Various Algorithms-A Survey, IJARCSSE, Vol. 3, Issue 2, Feb [4] Prabhakar. Gupta, Vineet. Agarwal and Manish.Varshney, Design and Analysis of Algorithms, Second Edition, PHI Learning Private Ltd., [5] Salabat.Khan, Mohsin.Bilal, M.Sharif, Malik. Sajid and Rauf.Baig, Solution of n-queen Problem Using ACO, In Proceedings of Multitopic Conference, INMIC 2009, IEEE 13th International Source: IEEE Xplore. [6] Dan W. Patterson, Introduction to Artificial Intelligence and Expert Systems, PHI Learning Private Ltd., Reprint [7] Dan W. Patterson, Introduction to Artificial Intelligence and Expert Systems, PHI Learning Private Ltd., Reprint
More Recursion: NQueens
More Recursion: NQueens continuation of the recursion topic notes on the NQueens problem an extended example of a recursive solution CISC 121 Summer 2006 Recursion & Backtracking 1 backtracking Recursion
More informationWhich Rectangular Chessboards Have a Bishop s Tour?
Which Rectangular Chessboards Have a Bishop s Tour? Gabriela R. Sanchis and Nicole Hundley Department of Mathematical Sciences Elizabethtown College Elizabethtown, PA 17022 November 27, 2004 1 Introduction
More informationA Novel Approach to Solving N-Queens Problem
A Novel Approach to Solving N-ueens Problem Md. Golam KAOSAR Department of Computer Engineering King Fahd University of Petroleum and Minerals Dhahran, KSA and Mohammad SHORFUZZAMAN and Sayed AHMED Department
More informationOverview. Algorithms: Simon Weber CSC173 Scheme Week 3-4 N-Queens Problem in Scheme
Simon Weber CSC173 Scheme Week 3-4 N-Queens Problem in Scheme Overview The purpose of this assignment was to implement and analyze various algorithms for solving the N-Queens problem. The N-Queens problem
More informationInvestigation of Algorithmic Solutions of Sudoku Puzzles
Investigation of Algorithmic Solutions of Sudoku Puzzles Investigation of Algorithmic Solutions of Sudoku Puzzles The game of Sudoku as we know it was first developed in the 1979 by a freelance puzzle
More informationYGB #2: Aren t You a Square?
YGB #2: Aren t You a Square? Problem Statement How can one mathematically determine the total number of squares on a chessboard? Counting them is certainly subject to error, so is it possible to know if
More informationIn the game of Chess a queen can move any number of spaces in any linear direction: horizontally, vertically, or along a diagonal.
CMPS 12A Introduction to Programming Winter 2013 Programming Assignment 5 In this assignment you will write a java program finds all solutions to the n-queens problem, for 1 n 13. Begin by reading the
More informationComplex DNA and Good Genes for Snakes
458 Int'l Conf. Artificial Intelligence ICAI'15 Complex DNA and Good Genes for Snakes Md. Shahnawaz Khan 1 and Walter D. Potter 2 1,2 Institute of Artificial Intelligence, University of Georgia, Athens,
More informationA GRAPH THEORETICAL APPROACH TO SOLVING SCRAMBLE SQUARES PUZZLES. 1. Introduction
GRPH THEORETICL PPROCH TO SOLVING SCRMLE SQURES PUZZLES SRH MSON ND MLI ZHNG bstract. Scramble Squares puzzle is made up of nine square pieces such that each edge of each piece contains half of an image.
More informationarxiv: v1 [math.co] 24 Nov 2018
The Problem of Pawns arxiv:1811.09606v1 [math.co] 24 Nov 2018 Tricia Muldoon Brown Georgia Southern University Abstract Using a bijective proof, we show the number of ways to arrange a maximum number of
More informationGCSE LINKED PAIR PILOT 4363/01 METHODS IN MATHEMATICS UNIT 1: Methods (Non-Calculator) FOUNDATION TIER
Surname Centre Number Candidate Number Other Names 0 GCSE LINKED PAIR PILOT 4363/01 METHODS IN MATHEMATICS UNIT 1: Methods (Non-Calculator) FOUNDATION TIER A.M. TUESDAY, 11 June 2013 1 1 hours 2 CALCULATORS
More informationLecture 20: Combinatorial Search (1997) Steven Skiena. skiena
Lecture 20: Combinatorial Search (1997) Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Give an O(n lg k)-time algorithm
More informationCMPS 12A Introduction to Programming Programming Assignment 5 In this assignment you will write a Java program that finds all solutions to the n-queens problem, for. Begin by reading the Wikipedia article
More informationAssignment Problem. Introduction. Formulation of an assignment problem
Assignment Problem Introduction The assignment problem is a special type of transportation problem, where the objective is to minimize the cost or time of completing a number of jobs by a number of persons.
More informationGraphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA
Graphs of Tilings Patrick Callahan, University of California Office of the President, Oakland, CA Phyllis Chinn, Department of Mathematics Humboldt State University, Arcata, CA Silvia Heubach, Department
More informationLecture 1, CS 2050, Intro Discrete Math for Computer Science
Lecture 1, 08--11 CS 050, Intro Discrete Math for Computer Science S n = 1++ 3+... +n =? Note: Recall that for the above sum we can also use the notation S n = n i. We will use a direct argument, in this
More informationENGR170 Assignment Problem Solving with Recursion Dr Michael M. Marefat
ENGR170 Assignment Problem Solving with Recursion Dr Michael M. Marefat Overview The goal of this assignment is to find solutions for the 8-queen puzzle/problem. The goal is to place on a 8x8 chess board
More informationClosed Almost Knight s Tours on 2D and 3D Chessboards
Closed Almost Knight s Tours on 2D and 3D Chessboards Michael Firstein 1, Anja Fischer 2, and Philipp Hungerländer 1 1 Alpen-Adria-Universität Klagenfurt, Austria, michaelfir@edu.aau.at, philipp.hungerlaender@aau.at
More informationCS/COE 1501
CS/COE 1501 www.cs.pitt.edu/~lipschultz/cs1501/ Brute-force Search Brute-force (or exhaustive) search Find the solution to a problem by considering all potential solutions and selecting the correct one
More informationCOMBINATORIAL GAMES: MODULAR N-QUEEN
COMBINATORIAL GAMES: MODULAR N-QUEEN Samee Ullah Khan Department of Computer Science and Engineering University of Texas at Arlington Arlington, TX-76019, USA sakhan@cse.uta.edu Abstract. The classical
More informationGenetic Algorithms with Heuristic Knight s Tour Problem
Genetic Algorithms with Heuristic Knight s Tour Problem Jafar Al-Gharaibeh Computer Department University of Idaho Moscow, Idaho, USA Zakariya Qawagneh Computer Department Jordan University for Science
More informationarxiv: v1 [math.co] 24 Oct 2018
arxiv:1810.10577v1 [math.co] 24 Oct 2018 Cops and Robbers on Toroidal Chess Graphs Allyson Hahn North Central College amhahn@noctrl.edu Abstract Neil R. Nicholson North Central College nrnicholson@noctrl.edu
More informationYourTurnMyTurn.com: chess rules. Jan Willem Schoonhoven Copyright 2018 YourTurnMyTurn.com
YourTurnMyTurn.com: chess rules Jan Willem Schoonhoven Copyright 2018 YourTurnMyTurn.com Inhoud Chess rules...1 The object of chess...1 The board...1 Moves...1 Captures...1 Movement of the different pieces...2
More informationarxiv: v2 [cs.cc] 20 Nov 2018
AT GALLEY POBLEM WITH OOK AND UEEN VISION arxiv:1810.10961v2 [cs.cc] 20 Nov 2018 HANNAH ALPET AND ÉIKA OLDÁN Abstract. How many chess rooks or queens does it take to guard all the squares of a given polyomino,
More information10/5/2015. Constraint Satisfaction Problems. Example: Cryptarithmetic. Example: Map-coloring. Example: Map-coloring. Constraint Satisfaction Problems
0/5/05 Constraint Satisfaction Problems Constraint Satisfaction Problems AIMA: Chapter 6 A CSP consists of: Finite set of X, X,, X n Nonempty domain of possible values for each variable D, D, D n where
More information1st UKPA Sudoku Championship
st UKPA Sudoku Championship COMPETITION PUZZLES Saturday 6th Sunday 7th November 00 Championship Duration: hours. Puzzles designed by Tom Collyer # - Classic Sudoku ( 4) 0pts #8 - No Touch Sudoku 5pts
More information3. (8 points) If p, 4p 2 + 1, and 6p are prime numbers, find p. Solution: The answer is p = 5. Analyze the remainders upon division by 5.
1. (6 points) Eleven gears are placed on a plane, arranged in a chain, as shown below. Can all the gears rotate simultaneously? Explain your answer. (4 points) What if we have a chain of 572 gears? Solution:
More information1 Introduction The n-queens problem is a classical combinatorial problem in the AI search area. We are particularly interested in the n-queens problem
(appeared in SIGART Bulletin, Vol. 1, 3, pp. 7-11, Oct, 1990.) A Polynomial Time Algorithm for the N-Queens Problem 1 Rok Sosic and Jun Gu Department of Computer Science 2 University of Utah Salt Lake
More informationAfter learning the Rules, What should beginners learn next?
After learning the Rules, What should beginners learn next? Chess Puzzling Presentation Nancy Randolph Capital Conference June 21, 2016 Name Introduction to Chess Test 1. How many squares does a chess
More informationA Memory-Efficient Method for Fast Computation of Short 15-Puzzle Solutions
A Memory-Efficient Method for Fast Computation of Short 15-Puzzle Solutions Ian Parberry Technical Report LARC-2014-02 Laboratory for Recreational Computing Department of Computer Science & Engineering
More informationTiling Problems. This document supersedes the earlier notes posted about the tiling problem. 1 An Undecidable Problem about Tilings of the Plane
Tiling Problems This document supersedes the earlier notes posted about the tiling problem. 1 An Undecidable Problem about Tilings of the Plane The undecidable problems we saw at the start of our unit
More informationMaze Solving Algorithms for Micro Mouse
Maze Solving Algorithms for Micro Mouse Surojit Guha Sonender Kumar surojitguha1989@gmail.com sonenderkumar@gmail.com Abstract The problem of micro-mouse is 30 years old but its importance in the field
More informationStandard Sudoku point. 1 point. P a g e 1
P a g e 1 Standard 1-2 Place a digit from 1 to 6 in each empty cell so that each digit appears exactly once in each row, column and 2X box. 1 point A 6 2 6 2 1 5 1 point B 5 2 2 4 1 1 6 5 P a g e 2 Standard
More informationNo-Three-in-Line, Intransitive Dice, and Other Amusements in Mathematics
No-Three-in-Line, Intransitive Dice, and Other Amusements in Mathematics Nathan Kaplan University of California, Irvine Lake Arrowhead IPAM Reunion Conference December 14, 2016 Kaplan (UCI) Amusements
More informationChapter 5 Backtracking. The Backtracking Technique The n-queens Problem The Sum-of-Subsets Problem Graph Coloring The 0-1 Knapsack Problem
Chapter 5 Backtracking The Backtracking Technique The n-queens Problem The Sum-of-Subsets Problem Graph Coloring The 0-1 Knapsack Problem Backtracking maze puzzle following every path in maze until a dead
More informationEight Queens Puzzle Solution Using MATLAB EE2013 Project
Eight Queens Puzzle Solution Using MATLAB EE2013 Project Matric No: U066584J January 20, 2010 1 Introduction Figure 1: One of the Solution for Eight Queens Puzzle The eight queens puzzle is the problem
More informationModified Method of Generating Randomized Latin Squares
IOSR Journal of Computer Engineering (IOSR-JCE) e-issn: 2278-0661, p- ISSN: 2278-8727Volume 16, Issue 1, Ver. VIII (Feb. 2014), PP 76-80 Modified Method of Generating Randomized Latin Squares D. Selvi
More informationWeek 1. 1 What Is Combinatorics?
1 What Is Combinatorics? Week 1 The question that what is combinatorics is similar to the question that what is mathematics. If we say that mathematics is about the study of numbers and figures, then combinatorics
More informationSCRABBLE ARTIFICIAL INTELLIGENCE GAME. CS 297 Report. Presented to. Dr. Chris Pollett. Department of Computer Science. San Jose State University
SCRABBLE AI GAME 1 SCRABBLE ARTIFICIAL INTELLIGENCE GAME CS 297 Report Presented to Dr. Chris Pollett Department of Computer Science San Jose State University In Partial Fulfillment Of the Requirements
More informationCSE 573 Problem Set 1. Answers on 10/17/08
CSE 573 Problem Set. Answers on 0/7/08 Please work on this problem set individually. (Subsequent problem sets may allow group discussion. If any problem doesn t contain enough information for you to answer
More informationTowards Strategic Kriegspiel Play with Opponent Modeling
Towards Strategic Kriegspiel Play with Opponent Modeling Antonio Del Giudice and Piotr Gmytrasiewicz Department of Computer Science, University of Illinois at Chicago Chicago, IL, 60607-7053, USA E-mail:
More informationCompound Events. Identify events as simple or compound.
11.1 Compound Events Lesson Objectives Understand compound events. Represent compound events. Vocabulary compound event possibility diagram simple event tree diagram Understand Compound Events. A compound
More informationColossal Cave Collection Sampler
Collection Sampler by Roger Barkan GRANDMASTER PUZZLES LE UZZ Z S P E Z S U U G M E SZ P L Z UZ M www. GMPUZZLES.com Notes: This sampler contains (out of 100) puzzles from the full title, as well as the
More informationNSCL LUDI CHESS RULES
NSCL LUDI CHESS RULES 1. The Board 1.1. The board is an 8x8 square grid of alternating colors. 1.2. The board is set up according to the following diagram. Note that the queen is placed on her own color,
More informationPerfect Domination for Bishops, Kings and Rooks Graphs On Square Chessboard
Annals of Pure and Applied Mathematics Vol. 1x, No. x, 201x, xx-xx ISSN: 2279-087X (P), 2279-0888(online) Published on 6 August 2018 www.researchmathsci.org DOI: http://dx.doi.org/10.22457/apam.v18n1a8
More informationSearch then involves moving from state-to-state in the problem space to find a goal (or to terminate without finding a goal).
Search Can often solve a problem using search. Two requirements to use search: Goal Formulation. Need goals to limit search and allow termination. Problem formulation. Compact representation of problem
More informationN-Queens Problem. Latin Squares Duncan Prince, Tamara Gomez February
N-ueens Problem Latin Squares Duncan Prince, Tamara Gomez February 19 2015 Author: Duncan Prince The N-ueens Problem The N-ueens problem originates from a question relating to chess, The 8-ueens problem
More informationRating and Generating Sudoku Puzzles Based On Constraint Satisfaction Problems
Rating and Generating Sudoku Puzzles Based On Constraint Satisfaction Problems Bahare Fatemi, Seyed Mehran Kazemi, Nazanin Mehrasa International Science Index, Computer and Information Engineering waset.org/publication/9999524
More informationPattern Avoidance in Unimodal and V-unimodal Permutations
Pattern Avoidance in Unimodal and V-unimodal Permutations Dido Salazar-Torres May 16, 2009 Abstract A characterization of unimodal, [321]-avoiding permutations and an enumeration shall be given.there is
More informationThe Archbishop's Odyssey
Undergraduate Review Volume 10 Article 28 2014 The Archbishop's Odyssey Leonard Sprague Follow this and additional works at: http://vc.bridgew.edu/undergrad_rev Part of the Mathematics Commons Recommended
More informationmywbut.com Two agent games : alpha beta pruning
Two agent games : alpha beta pruning 1 3.5 Alpha-Beta Pruning ALPHA-BETA pruning is a method that reduces the number of nodes explored in Minimax strategy. It reduces the time required for the search and
More informationGrade 6 Math Circles March 7/8, Magic and Latin Squares
Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 6 Math Circles March 7/8, 2017 Magic and Latin Squares Today we will be solving math and logic puzzles!
More informationProblem F. Chessboard Coloring
Problem F Chessboard Coloring You have a chessboard with N rows and N columns. You want to color each of the cells with exactly N colors (colors are numbered from 0 to N 1). A coloring is valid if and
More informationISudoku. Jonathon Makepeace Matthew Harris Jamie Sparrow Julian Hillebrand
Jonathon Makepeace Matthew Harris Jamie Sparrow Julian Hillebrand ISudoku Abstract In this paper, we will analyze and discuss the Sudoku puzzle and implement different algorithms to solve the puzzle. After
More informationIntroduction Solvability Rules Computer Solution Implementation. Connect Four. March 9, Connect Four 1
Connect Four March 9, 2010 Connect Four 1 Connect Four is a tic-tac-toe like game in which two players drop discs into a 7x6 board. The first player to get four in a row (either vertically, horizontally,
More informationOdd king tours on even chessboards
Odd king tours on even chessboards D. Joyner and M. Fourte, Department of Mathematics, U. S. Naval Academy, Annapolis, MD 21402 12-4-97 In this paper we show that there is no complete odd king tour on
More informationA Novel Multistage Genetic Algorithm Approach for Solving Sudoku Puzzle
A Novel Multistage Genetic Algorithm Approach for Solving Sudoku Puzzle Haradhan chel, Deepak Mylavarapu 2 and Deepak Sharma 2 Central Institute of Technology Kokrajhar,Kokrajhar, BTAD, Assam, India, PIN-783370
More information3. Transportation Problem (Part 2)
3. Transportation Problem (Part 2) 3.6 Test IBFS for optimal solution or Examining the Initial Basic Feasible Solution for Non- Degeneracy. 3.7 Transportation Algorithm for Minimization Problem (MODI Method)
More informationTechniques for Generating Sudoku Instances
Chapter Techniques for Generating Sudoku Instances Overview Sudoku puzzles become worldwide popular among many players in different intellectual levels. In this chapter, we are going to discuss different
More informationSome forbidden rectangular chessboards with an (a, b)-knight s move
The 22 nd Annual Meeting in Mathematics (AMM 2017) Department of Mathematics, Faculty of Science Chiang Mai University, Chiang Mai, Thailand Some forbidden rectangular chessboards with an (a, b)-knight
More informationThe Mathematica Journal A Generator of Rook Polynomials
The Mathematica Journal A Generator of Rook Polynomials Daniel C. Fielder A list adaptation of an inclusion-exclusion method for calculating the rook polynomials of arbitrary finite chessboards is discussed
More information18.S34 (FALL, 2007) PROBLEMS ON PROBABILITY
18.S34 (FALL, 2007) PROBLEMS ON PROBABILITY 1. Three closed boxes lie on a table. One box (you don t know which) contains a $1000 bill. The others are empty. After paying an entry fee, you play the following
More informationa b c d e f g h i j k l m n
Shoebox, page 1 In his book Chess Variants & Games, A. V. Murali suggests playing chess on the exterior surface of a cube. This playing surface has intriguing properties: We can think of it as three interlocked
More informationA Real-Time Algorithm for the (n 2 1)-Puzzle
A Real-Time Algorithm for the (n )-Puzzle Ian Parberry Department of Computer Sciences, University of North Texas, P.O. Box 886, Denton, TX 760 6886, U.S.A. Email: ian@cs.unt.edu. URL: http://hercule.csci.unt.edu/ian.
More informationMovement of the pieces
Movement of the pieces Rook The rook moves in a straight line, horizontally or vertically. The rook may not jump over other pieces, that is: all squares between the square where the rook starts its move
More informationAn Exploration of the Minimum Clue Sudoku Problem
Sacred Heart University DigitalCommons@SHU Academic Festival Apr 21st, 12:30 PM - 1:45 PM An Exploration of the Minimum Clue Sudoku Problem Lauren Puskar Follow this and additional works at: http://digitalcommons.sacredheart.edu/acadfest
More informationConstraint Satisfaction Problems: Formulation
Constraint Satisfaction Problems: Formulation Slides adapted from: 6.0 Tomas Lozano Perez and AIMA Stuart Russell & Peter Norvig Brian C. Williams 6.0- September 9 th, 00 Reading Assignments: Much of the
More informationLearning objective Various Methods for finding initial solution to a transportation problem
Unit 1 Lesson 15: Methods of finding initial solution for a transportation problem. Learning objective Various Methods for finding initial solution to a transportation problem 1. North west corner method
More informationHomework Assignment #1
CS 540-2: Introduction to Artificial Intelligence Homework Assignment #1 Assigned: Thursday, February 1, 2018 Due: Sunday, February 11, 2018 Hand-in Instructions: This homework assignment includes two
More information1st Grade Math. Please complete the activity below for the day indicated. Day 1: Double Trouble. Day 2: Greatest Sum. Day 3: Make a Number
1st Grade Math Please complete the activity below for the day indicated. Day 1: Double Trouble Day 2: Greatest Sum Day 3: Make a Number Day 4: Math Fact Road Day 5: Toy Store Double Trouble Paper 1 Die
More informationSurveillance strategies for autonomous mobile robots. Nicola Basilico Department of Computer Science University of Milan
Surveillance strategies for autonomous mobile robots Nicola Basilico Department of Computer Science University of Milan Intelligence, surveillance, and reconnaissance (ISR) with autonomous UAVs ISR defines
More informationResearch Article Knight s Tours on Rectangular Chessboards Using External Squares
Discrete Mathematics, Article ID 210892, 9 pages http://dx.doi.org/10.1155/2014/210892 Research Article Knight s Tours on Rectangular Chessboards Using External Squares Grady Bullington, 1 Linda Eroh,
More informationAI Agent for Ants vs. SomeBees: Final Report
CS 221: ARTIFICIAL INTELLIGENCE: PRINCIPLES AND TECHNIQUES 1 AI Agent for Ants vs. SomeBees: Final Report Wanyi Qian, Yundong Zhang, Xiaotong Duan Abstract This project aims to build a real-time game playing
More informationChess Rules- The Ultimate Guide for Beginners
Chess Rules- The Ultimate Guide for Beginners By GM Igor Smirnov A PUBLICATION OF ABOUT THE AUTHOR Grandmaster Igor Smirnov Igor Smirnov is a chess Grandmaster, coach, and holder of a Master s degree in
More informationPennies vs Paperclips
Pennies vs Paperclips Today we will take part in a daring game, a clash of copper and steel. Today we play the game: pennies versus paperclips. Battle begins on a 2k by 2m (where k and m are natural numbers)
More informationKeywords- Fuzzy Logic, Fuzzy Variables, Traffic Control, Membership Functions and Fuzzy Rule Base.
Volume 6, Issue 12, December 2016 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com Fuzzy Logic
More informationComplete and Incomplete Algorithms for the Queen Graph Coloring Problem
Complete and Incomplete Algorithms for the Queen Graph Coloring Problem Michel Vasquez and Djamal Habet 1 Abstract. The queen graph coloring problem consists in covering a n n chessboard with n queens,
More informationComparing Methods for Solving Kuromasu Puzzles
Comparing Methods for Solving Kuromasu Puzzles Leiden Institute of Advanced Computer Science Bachelor Project Report Tim van Meurs Abstract The goal of this bachelor thesis is to examine different methods
More informationQ1) 6 boys and 6 girls are seated in a row. What is the probability that all the 6 gurls are together.
Required Probability = where Q1) 6 boys and 6 girls are seated in a row. What is the probability that all the 6 gurls are together. Solution: As girls are always together so they are considered as a group.
More informationStudent Solutions to Some Interesting Tiling Problems S110 AMATYC David Dudley. Scottsdale CC Emeritus.
Student Solutions to Some Interesting Tiling Problems S110 AMATYC 2017 David Dudley Scottsdale CC Emeritus david.dudley@maricopa.edu What is a monomino? What is a monomino? 1x1 square What is a domino?
More informationUKPA Presents. March 12 13, 2011 INSTRUCTION BOOKLET.
UKPA Presents March 12 13, 2011 INSTRUCTION BOOKLET This contest deals with Sudoku and its variants. The Puzzle types are: No. Puzzle Points 1 ChessDoku 20 2 PanDigital Difference 25 3 Sequence Sudoku
More informationBishop Domination on a Hexagonal Chess Board
Bishop Domination on a Hexagonal Chess Board Authors: Grishma Alakkat Austin Ferguson Jeremiah Collins Faculty Advisor: Dr. Dan Teague Written at North Carolina School of Science and Mathematics Completed
More informationSpring 06 Assignment 2: Constraint Satisfaction Problems
15-381 Spring 06 Assignment 2: Constraint Satisfaction Problems Questions to Vaibhav Mehta(vaibhav@cs.cmu.edu) Out: 2/07/06 Due: 2/21/06 Name: Andrew ID: Please turn in your answers on this assignment
More informationIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms Peter G. Anderson, Computer Science Department Rochester Institute of Technology, Rochester, New York anderson@cs.rit.edu http://www.cs.rit.edu/ February 2004 pg. 1 Abstract
More informationGame, Set, and Match Carl W. Lee September 2016
Game, Set, and Match Carl W. Lee September 2016 Note: Some of the text below comes from Martin Gardner s articles in Scientific American and some from Mathematical Circles by Fomin, Genkin, and Itenberg.
More informationWPF SUDOKU/PUZZLE GRAND PRIX 2014 WPFSUDOKU GP 2014 COMPETITIONBOOKLET ROUND6. Puzzle authors: Bulgaria Deyan Razsadov.
WPF SUDOKU/PUZZLE GRAND PRIX 2014 WPFSUDOKU GP 2014 COMPETITIONBOOKLET ROUND Puzzle authors: Bulgaria Deyan Razsadov Organised by 1 Classic Sudoku (18 points) Place a digit from 1 to in each Answer Key:
More informationWPF PUZZLE GP 2018 ROUND 1 COMPETITION BOOKLET. Host Country: Turkey. Serkan Yürekli, Salih Alan, Fatih Kamer Anda, Murat Can Tonta A B H G A B I H
Host Country: urkey WPF PUZZE GP 0 COMPEON BOOKE Serkan Yürekli, Salih Alan, Fatih Kamer Anda, Murat Can onta ROUND Special Notes: Note that there is partial credit available on puzzle for a close answer.
More informationCOMP9414: Artificial Intelligence Problem Solving and Search
CMP944, Monday March, 0 Problem Solving and Search CMP944: Artificial Intelligence Problem Solving and Search Motivating Example You are in Romania on holiday, in Arad, and need to get to Bucharest. What
More information2010 Pascal Contest (Grade 9)
Canadian Mathematics Competition n activity of the Centre for Education in Mathematics and Computing, University of Waterloo, Waterloo, Ontario 2010 Pascal Contest (Grade 9) Thursday, February 25, 2010
More informationEXPLORING TIC-TAC-TOE VARIANTS
EXPLORING TIC-TAC-TOE VARIANTS By Alec Levine A SENIOR RESEARCH PAPER PRESENTED TO THE DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE OF STETSON UNIVERSITY IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR
More informationSection 5: DIAGONALS
Section 5: DIAGONALS Diagonals is a turning-defined technique in which all tablets are threaded with the same arrangement of colours. On four-holed tablets it is called Egyptian diagonals. Plate 5-1 shows
More informationHeuristic Search with Pre-Computed Databases
Heuristic Search with Pre-Computed Databases Tsan-sheng Hsu tshsu@iis.sinica.edu.tw http://www.iis.sinica.edu.tw/~tshsu 1 Abstract Use pre-computed partial results to improve the efficiency of heuristic
More informationSenior Math Circles February 10, 2010 Game Theory II
1 University of Waterloo Faculty of Mathematics Centre for Education in Mathematics and Computing Senior Math Circles February 10, 2010 Game Theory II Take-Away Games Last Wednesday, you looked at take-away
More informationInside Outside Circles Outside Circles Inside. Regions Circles Inside Regions Outside Regions. Outside Inside Regions Circles Inside Outside
START Inside Outside Circles Outside Circles Inside Regions Circles Inside Regions Outside Regions Outside Inside Regions Circles Inside Outside Circles Regions Outside Inside Regions Circles FINISH Each
More informationA Group-theoretic Approach to Human Solving Strategies in Sudoku
Colonial Academic Alliance Undergraduate Research Journal Volume 3 Article 3 11-5-2012 A Group-theoretic Approach to Human Solving Strategies in Sudoku Harrison Chapman University of Georgia, hchaps@gmail.com
More informationSome results on Su Doku
Some results on Su Doku Sourendu Gupta March 2, 2006 1 Proofs of widely known facts Definition 1. A Su Doku grid contains M M cells laid out in a square with M cells to each side. Definition 2. For every
More informationEXPLAINING THE SHAPE OF RSK
EXPLAINING THE SHAPE OF RSK SIMON RUBINSTEIN-SALZEDO 1. Introduction There is an algorithm, due to Robinson, Schensted, and Knuth (henceforth RSK), that gives a bijection between permutations σ S n and
More informationarxiv: v2 [math.ho] 23 Aug 2018
Mathematics of a Sudo-Kurve arxiv:1808.06713v2 [math.ho] 23 Aug 2018 Tanya Khovanova Abstract Wayne Zhao We investigate a type of a Sudoku variant called Sudo-Kurve, which allows bent rows and columns,
More informationLESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE
LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE The inclusion-exclusion principle (also known as the sieve principle) is an extended version of the rule of the sum. It states that, for two (finite) sets, A
More informationOCTAGON 5 IN 1 GAME SET
OCTAGON 5 IN 1 GAME SET CHESS, CHECKERS, BACKGAMMON, DOMINOES AND POKER DICE Replacement Parts Order direct at or call our Customer Service department at (800) 225-7593 8 am to 4:30 pm Central Standard
More information