Solving a Rubik s Cube with IDA* Search and Neural Networks

Size: px
Start display at page:

Download "Solving a Rubik s Cube with IDA* Search and Neural Networks"

Transcription

1 Solving a Rubik s Cube with IDA* Search and Neural Networks Justin Schneider CS 539 Yu Hen Hu Fall 2017

2 1 Introduction: A Rubik s Cube is a style of tactile puzzle, wherein 26 external cubes referred to as cubies surround a single core (see Figure 1). Each of the six faces of the cube can be rotated in multiples of 90, both clockwise and counterclockwise. On the outward-facing edges of each cubie, there are colored stickers that uniquely define each cubie from the rest. In the solved position, all six faces of the cube are composed of solid colors, but the colors can be in many different patterns approximately 43 quintillion (Ref. 3) when the cube is scrambled. The goal of this project is to find an optimal solution for a scrambled Rubik s Cube using a time- and space-efficient search algorithm such as Iterative Figure 1 Deepening A-Star Search (IDA*). Additionally, since IDA* search uses a heuristic function in addition to a distance parameter to choose the next best choice (Ref. 2), a neural network will be trained using self-generated data to serve as the aforementioned heuristic. Work Performed: Firstly, the data required to train and test the neural network was generated through a virtual state space in Java (see Appendix for code). The program maintained the state of a Rubik s Cube through a 20-element array, which represented the 12 edge cubies and 8 corner cubies present on the Cube. Since the 6 other cubies are only center pieces, and are simply used to determine which side is which color, knowing the location and orientation of those 20 movable cubies completely determines the state, relative to a specific rotation. The array contained characters, with uppercase for the corners and lowercase for the edges, complying with the

3 2 standard in Rubik s Cube notation. These names were given to the cubies via a very specific pattern of rotating around the Cube while traversing the alphabet (see Figure 2 and 3). When transitioning from a given state array to a training vector, the letters were all converted into their corresponding numerical values with respect to their position in the alphabet. To create each state array, a random set of moves was applied to a solved cube, and the number of moves used was saved as the target vector for the training vector generated from the Figure 2 state. Data was generated with increasing depths, up to a depth of 9 moves away from a solved state, which was the maximum depth possible before the program ran out of usable memory since the set of possible states expanded so rapidly as moves were added. Once the data was created, the neural network had to be trained, which presented the problem of imbalanced classes (Ref. 1). To combat this issue, the minority Figure 3 classes data sets from lower depths were oversampled to match the size of the majority classes, and then training data was taken via a random sampling of each set. Results and discussions: The neural networks used in this project were trained using the data generated as described above, and then tested using a IDA* search program designed within the same Java Rubik s Cube virtual state space mentioned earlier. Furthermore, the performance of the networks outputs as heuristics were compared against the Manhattan Distance Heuristic, which is a standard heuristic used when dealing with the Rubik s Cube (Ref. 3). The first neural network

4 3 trained contained a single hidden layer of ten nodes, and yielded a correlation coefficient of approximately 0.78, but classification accuracy of only 2.47 percent (see Figure 4). Since the network was so inaccurate, a scaling constant could not be found that would transform the output into a useable and admissible (never overestimates the true cost) heuristic function. If the output was scaled low enough such that it became admissible, its value became of little to no worth in the depth cutoff when compared to the distance parameter, so the program would get stuck and fail to converge to a solution. In an effort to remedy the errors in the network, it was reformatted to contain fifteen hidden nodes, and retrained. After the second round of training, the network yielded a correlation of 0.81 and classification accuracy of about percent, which was an increase of over 10-fold (see Figure 5). Due to the increased accuracy, in some low depth cases the output of the neural network could be both usable and admissible after scaling. However, in the majority of states tested, the output still remained unusable as a functioning IDA* search heuristic. Figure 4 Figure 5

5 4 Conclusion: Although the second neural network yielded much better results than the first, they both paled in comparison to the Manhattan Distance Heuristic, due to their extremely large rates of error. Both of the networks were trained on data sets of over 1.3 million vectors, but due to memory constraints the data only covered instances up to a maximum depth of nine. The improvement between the nets indicates the potential for creating an accurate network that can serve as a useable and admissible heuristic, but the resources required to train such a network and store the related data set are far beyond those available to most. In absence of these resources, however, the Manhattan Distance Heuristic can be used with no data generation or training, quick state evaluations, and relatively good accuracy when solving a Rubik s Cube with IDA* Search. Appendix The code utilized in this project is contained in the attached zip file.

6 5 References 1. Fawcett, Tom. Learning from Imbalanced Classes. Silicon Valley Data Science. Published August 25, IDA-Star (IDA*) Algorithm In General. Algorithms Insight (Wordpress). Updated April 9, Kaur, Harpreet. Algorithms For Solving The Rubik s Cube. DiVA-Portal. Published May 27, 2015.

Chapter 4 Heuristics & Local Search

Chapter 4 Heuristics & Local Search CSE 473 Chapter 4 Heuristics & Local Search CSE AI Faculty Recall: Admissable Heuristics f(x) = g(x) + h(x) g: cost so far h: underestimate of remaining costs e.g., h SLD Where do heuristics come from?

More information

Solving the Rubik s Cube

Solving the Rubik s Cube Solving the Rubik s Cube The Math Behind the Cube: How many different combinations are possible on a 3x3 cube? There are 6 sides each with 9 squares giving 54 squares. Thus there will be 54 53 52 51 50

More information

Rubik s Cube. 1.1 History and background Random Moves

Rubik s Cube. 1.1 History and background Random Moves Rubik s Cube The Cube is an imitation of life itself or even an improvement on life. The problems of puzzles are very near the problems of life, our whole life is solving puzzles. If you are hungry, you

More information

Informed search algorithms. Chapter 3 (Based on Slides by Stuart Russell, Richard Korf, Subbarao Kambhampati, and UW-AI faculty)

Informed search algorithms. Chapter 3 (Based on Slides by Stuart Russell, Richard Korf, Subbarao Kambhampati, and UW-AI faculty) Informed search algorithms Chapter 3 (Based on Slides by Stuart Russell, Richard Korf, Subbarao Kambhampati, and UW-AI faculty) Intuition, like the rays of the sun, acts only in an inflexibly straight

More information

Homework Assignment #1

Homework 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 information

In 1974, Erno Rubik created the Rubik s Cube. It is the most popular puzzle

In 1974, Erno Rubik created the Rubik s Cube. It is the most popular puzzle In 1974, Erno Rubik created the Rubik s Cube. It is the most popular puzzle worldwide. But now that it has been solved in 7.08 seconds, it seems that the world is in need of a new challenge. Melinda Green,

More information

Recent Progress in the Design and Analysis of Admissible Heuristic Functions

Recent Progress in the Design and Analysis of Admissible Heuristic Functions From: AAAI-00 Proceedings. Copyright 2000, AAAI (www.aaai.org). All rights reserved. Recent Progress in the Design and Analysis of Admissible Heuristic Functions Richard E. Korf Computer Science Department

More information

Heuristics & Pattern Databases for Search Dan Weld

Heuristics & Pattern Databases for Search Dan Weld CSE 473: Artificial Intelligence Autumn 2014 Heuristics & Pattern Databases for Search Dan Weld Logistics PS1 due Monday 10/13 Office hours Jeff today 10:30am CSE 021 Galen today 1-3pm CSE 218 See Website

More information

arxiv: v1 [cs.cc] 21 Jun 2017

arxiv: v1 [cs.cc] 21 Jun 2017 Solving the Rubik s Cube Optimally is NP-complete Erik D. Demaine Sarah Eisenstat Mikhail Rudoy arxiv:1706.06708v1 [cs.cc] 21 Jun 2017 Abstract In this paper, we prove that optimally solving an n n n Rubik

More information

Modeling a Rubik s Cube in 3D

Modeling a Rubik s Cube in 3D Modeling a Rubik s Cube in 3D Robert Kaucic Math 198, Fall 2015 1 Abstract Rubik s Cubes are a classic example of a three dimensional puzzle thoroughly based in mathematics. In the trigonometry and geometry

More information

AIMA 3.5. Smarter Search. David Cline

AIMA 3.5. Smarter Search. David Cline AIMA 3.5 Smarter Search David Cline Uninformed search Depth-first Depth-limited Iterative deepening Breadth-first Bidirectional search None of these searches take into account how close you are to the

More information

Abstraction Heuristics for Rubik s Cube

Abstraction Heuristics for Rubik s Cube Abstraction Heuristics for Rubik s Cube Bachelor Thesis Natural Science Faculty of the University of Basel Department of Mathematics and Computer Science Artificial Intelligence http://ai.cs.unibas.ch

More information

Lesson Focus & Standards p Review Prior Stages... p. 3. Lesson Content p Review.. p. 9. Math Connection. p. 9. Vocabulary... p.

Lesson Focus & Standards p Review Prior Stages... p. 3. Lesson Content p Review.. p. 9. Math Connection. p. 9. Vocabulary... p. Contents: Lesson Focus & Standards p. 1-2 Review Prior Stages... p. 3 Lesson Content p. 4-8 Review.. p. 9 Math Connection. p. 9 Vocabulary... p. 10 Trivia. p. 10 Another Look at the White Cross. p. 11

More information

COMPSCI 765 FC Advanced Artificial Intelligence 2001

COMPSCI 765 FC Advanced Artificial Intelligence 2001 COMPSCI 765 FC Advanced Artificial Intelligence 2001 Towards Optimal Solutions for the Rubik s Cube Problem Aaron Cheeseman, Jonathan Teutenberg Being able to solve Rubik s cube very fast is a near useless

More information

CSC384 Introduction to Artificial Intelligence : Heuristic Search

CSC384 Introduction to Artificial Intelligence : Heuristic Search CSC384 Introduction to Artificial Intelligence : Heuristic Search September 18, 2014 September 18, 2014 1 / 12 Heuristic Search (A ) Primary concerns in heuristic search: Completeness Optimality Time complexity

More information

CS 229 Final Project: Using Reinforcement Learning to Play Othello

CS 229 Final Project: Using Reinforcement Learning to Play Othello CS 229 Final Project: Using Reinforcement Learning to Play Othello Kevin Fry Frank Zheng Xianming Li ID: kfry ID: fzheng ID: xmli 16 December 2016 Abstract We built an AI that learned to play Othello.

More information

Heuristics, and what to do if you don t know what to do. Carl Hultquist

Heuristics, and what to do if you don t know what to do. Carl Hultquist Heuristics, and what to do if you don t know what to do Carl Hultquist What is a heuristic? Relating to or using a problem-solving technique in which the most appropriate solution of several found by alternative

More information

Billions of Combinations, One Solution Meet Your Cube Twisting Hints RUBIK S Cube Sequences RUBIK S Cube Games...

Billions of Combinations, One Solution Meet Your Cube Twisting Hints RUBIK S Cube Sequences RUBIK S Cube Games... SOLUTION BOOKLET Billions of Combinations, One Solution...... 2 Meet Your Cube.................... 3 Twisting Hints..................... 6 RUBIK S Cube Sequences............... 9 RUBIK S Cube Games.................

More information

Solving Several Planning Problems with Picat

Solving Several Planning Problems with Picat Solving Several Planning Problems with Picat Neng-Fa Zhou 1 and Hakan Kjellerstrand 2 1. The City University of New York, E-mail: zhou@sci.brooklyn.cuny.edu 2. Independent Researcher, hakank.org, E-mail:

More information

Ibero Rubik 3x3x3 cube Easy method

Ibero Rubik 3x3x3 cube Easy method Ibero Rubik 3x3x3 cube Easy method Version 2. Updated on 21 st April 2016. Contents Introduction 3 1 Cross of the top face 4 1.1 Edge piece located on the top of the cube....................................

More information

All Levels. Solving the Rubik s Cube

All Levels. Solving the Rubik s Cube Solving the Rubik s Cube All Levels Common Core: Objectives: Mathematical Practice Standards: 1. Make sense of problems and persevere in solving them. 2. Reason abstractly and quantitatively. 3. Construct

More information

Rubik s Cube: the one-minute solution

Rubik s Cube: the one-minute solution Rubik s Cube: the one-minute solution Abstract. This paper will teach the reader a quick, easy to learn method for solving Rubik s Cube. The reader will learn simple combinations that will place each cube

More information

Part I: The Swap Puzzle

Part I: The Swap Puzzle Part I: The Swap Puzzle Game Play: Randomly arrange the tiles in the boxes then try to put them in proper order using only legal moves. A variety of legal moves are: Legal Moves (variation 1): Swap the

More information

Multiple-Layer Networks. and. Backpropagation Algorithms

Multiple-Layer Networks. and. Backpropagation Algorithms Multiple-Layer Networks and Algorithms Multiple-Layer Networks and Algorithms is the generalization of the Widrow-Hoff learning rule to multiple-layer networks and nonlinear differentiable transfer functions.

More information

Topspin: Oval-Track Puzzle, Taking Apart The Topspin One Tile At A Time

Topspin: Oval-Track Puzzle, Taking Apart The Topspin One Tile At A Time Salem State University Digital Commons at Salem State University Honors Theses Student Scholarship Fall 2015-01-01 Topspin: Oval-Track Puzzle, Taking Apart The Topspin One Tile At A Time Elizabeth Fitzgerald

More information

Project 2: Searching and Learning in Pac-Man

Project 2: Searching and Learning in Pac-Man Project 2: Searching and Learning in Pac-Man December 3, 2009 1 Quick Facts In this project you have to code A* and Q-learning in the game of Pac-Man and answer some questions about your implementation.

More information

22c:145 Artificial Intelligence

22c:145 Artificial Intelligence 22c:145 Artificial Intelligence Fall 2005 Informed Search and Exploration II Cesare Tinelli The University of Iowa Copyright 2001-05 Cesare Tinelli and Hantao Zhang. a a These notes are copyrighted material

More information

COUNTING THE NUMBER OF PERMUTATIONS IN RUBIK S CUBE

COUNTING THE NUMBER OF PERMUTATIONS IN RUBIK S CUBE COUNTING THE NUMBER OF PERMUTATIONS IN RUBIK S CUBE Rubik s cube is comprised of 54 facelets and 26 cublets. At first glance, you might think that the number of permutations we can make of the 54 facelets

More information

On the Combination of Constraint Programming and Stochastic Search: The Sudoku Case

On the Combination of Constraint Programming and Stochastic Search: The Sudoku Case On the Combination of Constraint Programming and Stochastic Search: The Sudoku Case Rhydian Lewis Cardiff Business School Pryfysgol Caerdydd/ Cardiff University lewisr@cf.ac.uk Talk Plan Introduction:

More information

Math Circles: Graph Theory III

Math Circles: Graph Theory III Math Circles: Graph Theory III Centre for Education in Mathematics and Computing March 0, 013 1 Notation Consider a Rubik s cube, as shown in Figure 1. The letters U, F, R, L, B, and D shall refer respectively

More information

Optimally Solving Cooperative Path-Finding Problems Without Hole on Rectangular Boards with Heuristic Search

Optimally Solving Cooperative Path-Finding Problems Without Hole on Rectangular Boards with Heuristic Search Optimally Solving Cooperative Path-Finding Problems Without Hole on Rectangular Boards with Heuristic Search Bruno Bouzy Paris Descartes University WoMPF 2016 July 10, 2016 Outline Cooperative Path-Finding

More information

RUBIK S CUBE SOLUTION

RUBIK S CUBE SOLUTION RUBIK S CUBE SOLUTION INVESTIGATION Topic: Algebra (Probability) The Seven-Step Guide to Solving a Rubik s cube To begin the solution, we must first prime the cube. To do so, simply pick a corner cubie

More information

Vasarely Design and Other Non-Cubical Designs

Vasarely Design and Other Non-Cubical Designs Vasarely Design and Other Non-Cubical Designs BRIDGES Mathematical Connections in Art, Music, and Science Hana M. Bizek 121 West Chicago Ave Westmont IL 60559 hbizek@ameritech.net Abstract I exhibited

More information

Solving the Rubik s Cube

Solving the Rubik s Cube the network Solving the Rubik s Cube Introduction Hungarian sculptor and professor of architecture Ernö Rubik invented the Rubik s Cube in 1974. When solved, each side of the Rubik s Cube is a different

More information

A benchmark of algorithms for the Professor s Cube

A benchmark of algorithms for the Professor s Cube DEGREE PROJECT, IN COMPUTER SCIENCE, FIRST LEVEL STOCKHOLM, SWEDEN 2015 A benchmark of algorithms for the Professor s Cube MATTIAS DANIELSSON KTH ROYAL INSTITUTE OF TECHNOLOGY SCHOOL OF COMPUTER SCIENCE

More information

Midterm. CS440, Fall 2003

Midterm. CS440, Fall 2003 Midterm CS440, Fall 003 This test is closed book, closed notes, no calculators. You have :30 hours to answer the questions. If you think a problem is ambiguously stated, state your assumptions and solve

More information

UMBC 671 Midterm Exam 19 October 2009

UMBC 671 Midterm Exam 19 October 2009 Name: 0 1 2 3 4 5 6 total 0 20 25 30 30 25 20 150 UMBC 671 Midterm Exam 19 October 2009 Write all of your answers on this exam, which is closed book and consists of six problems, summing to 160 points.

More information

A GRAPH THEORETICAL APPROACH TO SOLVING SCRAMBLE SQUARES PUZZLES. 1. Introduction

A 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 information

THE 15-PUZZLE (AND RUBIK S CUBE)

THE 15-PUZZLE (AND RUBIK S CUBE) THE 15-PUZZLE (AND RUBIK S CUBE) KEITH CONRAD 1. Introduction A permutation puzzle is a toy where the pieces can be moved around and the object is to reassemble the pieces into their beginning state We

More information

Problem of the Month. Cutting a Cube. A cube is a very interesting object. So we are going to examine it.

Problem of the Month. Cutting a Cube. A cube is a very interesting object. So we are going to examine it. Problem of the Month Cutting a Cube A cube is a very interesting object. So we are going to examine it. Level A: Without holding a cube, try to picture it in your mind. How many sides (faces) does a cube

More information

Artificial Intelligence: Using Neural Networks for Image Recognition

Artificial Intelligence: Using Neural Networks for Image Recognition Kankanahalli 1 Sri Kankanahalli Natalie Kelly Independent Research 12 February 2010 Artificial Intelligence: Using Neural Networks for Image Recognition Abstract: The engineering goals of this experiment

More information

Artificial Intelligence Lecture 3

Artificial Intelligence Lecture 3 Artificial Intelligence Lecture 3 The problem Depth first Not optimal Uses O(n) space Optimal Uses O(B n ) space Can we combine the advantages of both approaches? 2 Iterative deepening (IDA) Let M be a

More information

Rubik s Cube Extended: Derivation of Number of States for Cubes of Any Size and Values for up to Size 25x25x25

Rubik s Cube Extended: Derivation of Number of States for Cubes of Any Size and Values for up to Size 25x25x25 Rubik s Cube Extended: Derivation of Number of States for Cubes of Any Size and Values for up to Size 25x25x25 by Ken F. Fraser 1 Date of original document: 26 October 1991 Date of this revision: 12 February

More information

Free Cell Solver. Copyright 2001 Kevin Atkinson Shari Holstege December 11, 2001

Free Cell Solver. Copyright 2001 Kevin Atkinson Shari Holstege December 11, 2001 Free Cell Solver Copyright 2001 Kevin Atkinson Shari Holstege December 11, 2001 Abstract We created an agent that plays the Free Cell version of Solitaire by searching through the space of possible sequences

More information

A Mathematical Approach To Solving Rubik's Cube by Raymond Tran, UBC Math308 Fall 2005

A Mathematical Approach To Solving Rubik's Cube by Raymond Tran, UBC Math308 Fall 2005 A Mathematical Approach To Solving Rubik's Cube by Raymond Tran, UBC Math308 Fall 2005 History: ''We turn the Cube and it twists us.'' --Erno Rubik The Rubiks Cube is a cube consisting of 6 sides with

More information

The Rubik's-Cube Design Problem

The Rubik's-Cube Design Problem BRIDGES Mathematical Connections in Art, Music, and Science The Rubik's-Cube Design Problem Hana M. Bizek 121 West Chicago Ave Westmont, IL 60559 Email: hbizek@ameritech.net Abstract The design problem

More information

Statistical Tests: More Complicated Discriminants

Statistical Tests: More Complicated Discriminants 03/07/07 PHY310: Statistical Data Analysis 1 PHY310: Lecture 14 Statistical Tests: More Complicated Discriminants Road Map When the likelihood discriminant will fail The Multi Layer Perceptron discriminant

More information

Solving All 164,604,041,664 Symmetric Positions of the Rubik s Cube in the Quarter Turn Metric

Solving All 164,604,041,664 Symmetric Positions of the Rubik s Cube in the Quarter Turn Metric Solving All 164,604,041,664 Symmetric Positions of the Rubik s Cube in the Quarter Turn Metric Tomas Rokicki March 18, 2014 Abstract A difficult problem in computer cubing is to find positions that are

More information

Rubik's Triamid. Introduction

Rubik's Triamid. Introduction http://www.geocities.com/abcmcfarren/math/r90/trmd0.htm Rubik's Triamid Introduction Scramble the Puzzle Take the Triamid completely apart by breaking it down to its individual components (10 pieces and

More information

Instructions for Solving Rubik Family Cubes of Any Size

Instructions for Solving Rubik Family Cubes of Any Size Instructions for Solving Rubik Family Cubes of Any Size Ken Fraser 1 Date of original document: 25 September 2007 Date of this revision: 12 February 2017 Summary The purpose of this document is to provide

More information

Heuristic Search with Pre-Computed Databases

Heuristic 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 information

The Basic Solve Algorithm:

The Basic Solve Algorithm: COD Summer Bridge Enrichment - 2011 Rubik s Cube, the Basic Solve Algorithm. If you want a good java applet for Rubik s Cube, try this: http://www.schubart.net/rc/ Here is a common basic method of solution,

More information

CSE 473 Midterm Exam Feb 8, 2018

CSE 473 Midterm Exam Feb 8, 2018 CSE 473 Midterm Exam Feb 8, 2018 Name: This exam is take home and is due on Wed Feb 14 at 1:30 pm. You can submit it online (see the message board for instructions) or hand it in at the beginning of class.

More information

PROCESS-VOLTAGE-TEMPERATURE (PVT) VARIATIONS AND STATIC TIMING ANALYSIS

PROCESS-VOLTAGE-TEMPERATURE (PVT) VARIATIONS AND STATIC TIMING ANALYSIS PROCESS-VOLTAGE-TEMPERATURE (PVT) VARIATIONS AND STATIC TIMING ANALYSIS The major design challenges of ASIC design consist of microscopic issues and macroscopic issues [1]. The microscopic issues are ultra-high

More information

CS 188 Fall Introduction to Artificial Intelligence Midterm 1

CS 188 Fall Introduction to Artificial Intelligence Midterm 1 CS 188 Fall 2018 Introduction to Artificial Intelligence Midterm 1 You have 120 minutes. The time will be projected at the front of the room. You may not leave during the last 10 minutes of the exam. Do

More information

Compressing Pattern Databases

Compressing Pattern Databases Compressing Pattern Databases Ariel Felner and Ram Meshulam Computer Science Department Bar-Ilan University Ramat-Gan, Israel 92500 Email: ffelner,meshulr1g@cs.biu.ac.il Robert C. Holte Computing Science

More information

Data Structure Analysis

Data Structure Analysis Data Structure Analysis Introduction The objective of this ACW was to investigate the efficiency and performance of alternative data structures. These data structures are required to be created and developed

More information

Lesson 1 Meeting the Cube

Lesson 1 Meeting the Cube Lesson 1 Meeting the Cube How To Solve The Rubik's Cube Instructional Curriculum Meeting the Cube Standards & Skills: Lesson 1 (For complete details, see Standards & Skills Book) Kindergarten Grade 1 Common

More information

The first task is to make a pattern on the top that looks like the following diagram.

The first task is to make a pattern on the top that looks like the following diagram. Cube Strategy The cube is worked in specific stages broken down into specific tasks. In the early stages the tasks involve only a single piece needing to be moved and are simple but there are a multitude

More information

Outline for today s lecture Informed Search Optimal informed search: A* (AIMA 3.5.2) Creating good heuristic functions Hill Climbing

Outline for today s lecture Informed Search Optimal informed search: A* (AIMA 3.5.2) Creating good heuristic functions Hill Climbing Informed Search II Outline for today s lecture Informed Search Optimal informed search: A* (AIMA 3.5.2) Creating good heuristic functions Hill Climbing CIS 521 - Intro to AI - Fall 2017 2 Review: Greedy

More information

Rubik's Magic Transforms

Rubik's Magic Transforms Rubik's Magic Transforms Main Page General description of Rubik's Magic Links to other sites How the tiles hinge The number of flat positions Getting back to the starting position Flat shapes Making your

More information

THE 15 PUZZLE AND TOPSPIN. Elizabeth Senac

THE 15 PUZZLE AND TOPSPIN. Elizabeth Senac THE 15 PUZZLE AND TOPSPIN Elizabeth Senac 4x4 box with 15 numbers Goal is to rearrange the numbers from a random starting arrangement into correct numerical order. Can only slide one block at a time. Definition:

More information

Real Time Word to Picture Translation for Chinese Restaurant Menus

Real Time Word to Picture Translation for Chinese Restaurant Menus Real Time Word to Picture Translation for Chinese Restaurant Menus Michelle Jin, Ling Xiao Wang, Boyang Zhang Email: mzjin12, lx2wang, boyangz @stanford.edu EE268 Project Report, Spring 2014 Abstract--We

More information

An Empirical Evaluation of Policy Rollout for Clue

An Empirical Evaluation of Policy Rollout for Clue An Empirical Evaluation of Policy Rollout for Clue Eric Marshall Oregon State University M.S. Final Project marshaer@oregonstate.edu Adviser: Professor Alan Fern Abstract We model the popular board game

More information

Lab 1. CS 5233 Fall 2007 assigned August 22, 2007 Tom Bylander, Instructor due midnight, Sept. 26, 2007

Lab 1. CS 5233 Fall 2007 assigned August 22, 2007 Tom Bylander, Instructor due midnight, Sept. 26, 2007 Lab 1 CS 5233 Fall 2007 assigned August 22, 2007 Tom Bylander, Instructor due midnight, Sept. 26, 2007 In Lab 1, you will program the functions needed by algorithms for iterative deepening (ID) and iterative

More information

Classifier-Based Approximate Policy Iteration. Alan Fern

Classifier-Based Approximate Policy Iteration. Alan Fern Classifier-Based Approximate Policy Iteration Alan Fern 1 Uniform Policy Rollout Algorithm Rollout[π,h,w](s) 1. For each a i run SimQ(s,a i,π,h) w times 2. Return action with best average of SimQ results

More information

A NUMBER THEORY APPROACH TO PROBLEM REPRESENTATION AND SOLUTION

A NUMBER THEORY APPROACH TO PROBLEM REPRESENTATION AND SOLUTION Session 22 General Problem Solving A NUMBER THEORY APPROACH TO PROBLEM REPRESENTATION AND SOLUTION Stewart N, T. Shen Edward R. Jones Virginia Polytechnic Institute and State University Abstract A number

More information

Rubik's Domino R B F+ F2 F-

Rubik's Domino R B F+ F2 F- http://www.geocities.com/abcmcfarren/math/rdml/rubdom1.htm 12/12/2006 12:40 PM Rubik's Domino Circa 1981: I was at a K-mart waiting in line to buy a handful of commodities, and there they were... an entire

More information

Adversary Search. Ref: Chapter 5

Adversary Search. Ref: Chapter 5 Adversary Search Ref: Chapter 5 1 Games & A.I. Easy to measure success Easy to represent states Small number of operators Comparison against humans is possible. Many games can be modeled very easily, although

More information

Searching with Pattern Databases

Searching with Pattern Databases - Branch Searching with Pattern Databases Joseph C. Culberson and Jonathan Schaeffer Department of Computing Science, University of Alberta, Edmonton, Alberta, Canada, T6G 2H1. Abstract. The efficiency

More information

CS61B Lecture #33. Today: Backtracking searches, game trees (DSIJ, Section 6.5)

CS61B Lecture #33. Today: Backtracking searches, game trees (DSIJ, Section 6.5) CS61B Lecture #33 Today: Backtracking searches, game trees (DSIJ, Section 6.5) Coming Up: Concurrency and synchronization(data Structures, Chapter 10, and Assorted Materials On Java, Chapter 6; Graph Structures:

More information

Solving the 4 x 4 Cube

Solving the 4 x 4 Cube Solving the 4 x 4 Cube How to Reference and Talk About the Cube: Like the 3 x 3 cube, we will refer to three main types of pieces centers (4 per side), edges (2 per edge) and corners. The main approach

More information

How to Solve the Rubik s Cube Blindfolded

How to Solve the Rubik s Cube Blindfolded How to Solve the Rubik s Cube Blindfolded The purpose of this guide is to help you achieve your first blindfolded solve. There are multiple methods to choose from when solving a cube blindfolded. For this

More information

Stockholm

Stockholm 2013-04- 12 Stockholm Benchmarking Rubik s Revenge algorithms Paolo Brolin Echeverria - paolobr@kth.se - 0735 44 10 70 Joakim Westermark - jwesterm@kth.se - 0762 06 61 50 KTH, CSC - DD143X Degree Project

More information

Another neat puzzle using any 5 5 tangle set is to use only the 24 unique tiles to cover the surface of a cube.

Another neat puzzle using any 5 5 tangle set is to use only the 24 unique tiles to cover the surface of a cube. Rubik's Tangle Rubik's Tangle is a tile puzzle. There are several variants of this puzzle, which all have very similar tiles. Each tile is square, and shows four ropes of different colours so that each

More information

Further Mathematics Support Programme

Further Mathematics Support Programme Stage 1 making a cross Solving the Rubik s cube The first stage is to make a cross so that all the edges line up over the correct centre pieces in the middle layer. Figure 1 Find a white edge piece (in

More information

Heuristics & Pattern Databases for Search Dan Weld

Heuristics & Pattern Databases for Search Dan Weld 10//01 CSE 57: Artificial Intelligence Autumn01 Heuristics & Pattern Databases for Search Dan Weld Recap: Search Problem States configurations of the world Successor function: function from states to lists

More information

UNIVERSITY of PENNSYLVANIA CIS 391/521: Fundamentals of AI Midterm 1, Spring 2010

UNIVERSITY of PENNSYLVANIA CIS 391/521: Fundamentals of AI Midterm 1, Spring 2010 UNIVERSITY of PENNSYLVANIA CIS 391/521: Fundamentals of AI Midterm 1, Spring 2010 Question Points 1 Environments /2 2 Python /18 3 Local and Heuristic Search /35 4 Adversarial Search /20 5 Constraint Satisfaction

More information

CHAPTER 8: EXTENDED TETRACHORD CLASSIFICATION

CHAPTER 8: EXTENDED TETRACHORD CLASSIFICATION CHAPTER 8: EXTENDED TETRACHORD CLASSIFICATION Chapter 7 introduced the notion of strange circles: using various circles of musical intervals as equivalence classes to which input pitch-classes are assigned.

More information

CHAPTER 4 LINK ADAPTATION USING NEURAL NETWORK

CHAPTER 4 LINK ADAPTATION USING NEURAL NETWORK CHAPTER 4 LINK ADAPTATION USING NEURAL NETWORK 4.1 INTRODUCTION For accurate system level simulator performance, link level modeling and prediction [103] must be reliable and fast so as to improve the

More information

Solving the Rubik s Cube Optimally is NP-complete

Solving the Rubik s Cube Optimally is NP-complete Solving the Rubik s Cube Optimally is NP-complete Erik D. Demaine MIT Computer Science and Artificial Intelligence Laboratory, 32 Vassar St., Cambridge, MA 02139, USA edemaine@mit.edu Sarah Eisenstat MIT

More information

Objective: the student will gain speed and accuracy in letter recognition.

Objective: the student will gain speed and accuracy in letter recognition. ALPHABET ARC Objective: the student will gain speed and accuracy in letter recognition. Materials: Alphabet arc (enlarge 200 percent and attach to 12 x 18 construction paper). 12 x18 construction paper

More information

Wireless Communications Principles and Practice 2 nd Edition Prentice-Hall. By Theodore S. Rappaport

Wireless Communications Principles and Practice 2 nd Edition Prentice-Hall. By Theodore S. Rappaport Wireless Communications Principles and Practice 2 nd Edition Prentice-Hall By Theodore S. Rappaport Chapter 3 The Cellular Concept- System Design Fundamentals 3.1 Introduction January, 2004 Spring 2011

More information

Implementation and Analysis of Iterative MapReduce Based Heuristic Algorithm for Solving N-Puzzle

Implementation and Analysis of Iterative MapReduce Based Heuristic Algorithm for Solving N-Puzzle 420 JOURNAL OF COMPUTERS, VOL. 9, NO. 2, FEBRUARY 2014 Implementation and Analysis of Iterative MapReduce Based Heuristic Algorithm for Solving N-Puzzle Rohit P. Kondekar Visvesvaraya National Institute

More information

CS4700 Fall 2011: Foundations of Artificial Intelligence. Homework #2

CS4700 Fall 2011: Foundations of Artificial Intelligence. Homework #2 CS4700 Fall 2011: Foundations of Artificial Intelligence Homework #2 Due Date: Monday Oct 3 on CMS (PDF) and in class (hardcopy) Submit paper copies at the beginning of class. Please include your NetID

More information

p. 2 21st Century Learning Skills

p. 2 21st Century Learning Skills Contents: Lesson Focus & Standards p. 1 Review Prior Stages... p. 2 Vocabulary..... p. 2 Lesson Content... p. 3-7 Math Connection.... p. 8-9 Review... p. 10 Trivia. p. 10 21st Century Learning Skills Learning

More information

a b c d e f g h i j k l m n

a 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 information

Neural Networks and Antenna Arrays

Neural Networks and Antenna Arrays Neural Networks and Antenna Arrays MAJA SAREVSKA 1, NIKOS MASTORAKIS 2 1 Istanbul Technical University, Istanbul, TURKEY 2 Hellenic Naval Academy, Athens, GREECE sarevska@itu.edu.tr mastor@wseas.org Abstract:

More information

AI Approaches to Ultimate Tic-Tac-Toe

AI Approaches to Ultimate Tic-Tac-Toe AI Approaches to Ultimate Tic-Tac-Toe Eytan Lifshitz CS Department Hebrew University of Jerusalem, Israel David Tsurel CS Department Hebrew University of Jerusalem, Israel I. INTRODUCTION This report is

More information

Image Analysis of Granular Mixtures: Using Neural Networks Aided by Heuristics

Image Analysis of Granular Mixtures: Using Neural Networks Aided by Heuristics Image Analysis of Granular Mixtures: Using Neural Networks Aided by Heuristics Justin Eldridge The Ohio State University In order to gain a deeper understanding of how individual grain configurations affect

More information

The patterns considered here are black and white and represented by a rectangular grid of cells. Here is a typical pattern: [Redundant]

The patterns considered here are black and white and represented by a rectangular grid of cells. Here is a typical pattern: [Redundant] Pattern Tours The patterns considered here are black and white and represented by a rectangular grid of cells. Here is a typical pattern: [Redundant] A sequence of cell locations is called a path. A path

More information

Game Playing State of the Art

Game Playing State of the Art Game Playing State of the Art Checkers: Chinook ended 40 year reign of human world champion Marion Tinsley in 1994. Used an endgame database defining perfect play for all positions involving 8 or fewer

More information

Spring 06 Assignment 2: Constraint Satisfaction Problems

Spring 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 information

Localization (Position Estimation) Problem in WSN

Localization (Position Estimation) Problem in WSN Localization (Position Estimation) Problem in WSN [1] Convex Position Estimation in Wireless Sensor Networks by L. Doherty, K.S.J. Pister, and L.E. Ghaoui [2] Semidefinite Programming for Ad Hoc Wireless

More information

ISudoku. Jonathon Makepeace Matthew Harris Jamie Sparrow Julian Hillebrand

ISudoku. 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 information

LEARN TO SOLVE THE RUBIK'S CUBE

LEARN TO SOLVE THE RUBIK'S CUBE LEARN TO SOLVE THE RUBIK'S CUBE Contents: Lesson Focus & Standards p. 2-3 Review Prior Stages... p. 4 Lesson Content p. 5-9 Review.. p. 9 Math Connection. p. 10 Vocabulary... p. 10 Trivia. p. 10 Scrambling

More information

NN Design Hub: NN Librarie[S]

NN Design Hub: NN Librarie[S] NN Design Hub: NN Librarie[S] Here you are the NN Librarie[S], the new design tool by Fractus Antennas (NN) that helps you design the antenna for your wireless device using any standard RF CAD software.

More information

3432 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 53, NO. 10, OCTOBER 2007

3432 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 53, NO. 10, OCTOBER 2007 3432 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL 53, NO 10, OCTOBER 2007 Resource Allocation for Wireless Fading Relay Channels: Max-Min Solution Yingbin Liang, Member, IEEE, Venugopal V Veeravalli, Fellow,

More information

Slicing a Puzzle and Finding the Hidden Pieces

Slicing a Puzzle and Finding the Hidden Pieces Olivet Nazarene University Digital Commons @ Olivet Honors Program Projects Honors Program 4-1-2013 Slicing a Puzzle and Finding the Hidden Pieces Martha Arntson Olivet Nazarene University, mjarnt@gmail.com

More information

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm CS 88 Introduction to Fall Artificial Intelligence Midterm INSTRUCTIONS You have 8 minutes. The exam is closed book, closed notes except a one-page crib sheet. Please use non-programmable calculators only.

More information