Task Scheduling. A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering. May 2016 Task Scheduling Slide 1

Size: px
Start display at page:

Download "Task Scheduling. A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering. May 2016 Task Scheduling Slide 1"

Transcription

1 Task Scheduling A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering May 0 Task Scheduling Slide

2 About This Presentation This presentation belongs to the lecture series entitled Ten Puzzling Problems in Computer Engineering, devised for a ten-week, one-unit, freshman seminar course by Behrooz Parhami, Professor of Computer Engineering at University of California, Santa Barbara. The material can be used freely in teaching and other educational settings. Unauthorized uses, including any use for financial gain, are prohibited. Behrooz Parhami Edition Released Revised Revised Revised Revised First May 00 May 00 May 009 May 00 May 0 May 0 May 0 May 0 May 0 Task Scheduling Slide

3 Mini-Sudoku Puzzle Complete entries in this chart so that numbers - appear without repetition in each row, each column and each block Standard Sudoku consists of a 9 9 chart, but this mini version is good for a quick fix USA Today carries a daily mini-sudoku at its site: Sudoku isn t a math puzzle: We can use the letters A-F, or any other six symbols, instead of the numbers - May 0 Task Scheduling Slide

4 Mini-Sudoku Puzzle: Solution Method Complete entries in this chart so that letters A-F appear without repetition in each row, each column and each block AE C B D D C A To continue from here, write down all possible choices in the remaining blank boxes and see whether the resulting info leads to more progress F B D A C E A C D F SuDoKu: abbr. in Japanese for numbers must be single. Euler may have invented it; Howard Garns (US) & Wayne Gould (HK) popularized it in modern times D C F A AE C D May 0 Task Scheduling Slide

5 Sudoku Puzzle: Easy Example Complete entries in this chart so that numbers -9 appear without repetition in each row, each column and each block 9 Many newspapers carry these puzzles; there are also many collections in book form Sudoku puzzles of varying difficulties (easy, medium, hard, evil) are available at and several other Web sites, such as USA Today s site May 0 Task Scheduling Slide

6 Sudoku Puzzle Solution Method Strategy : When you can t make progress by Strategy, write down all candidate numbers in the cells and try to eliminate a number of options via reasoning. For example if xy, xy, xyz are candidates in three cells of a block, then the cell marked xyz must hold z Strategy : Identify a missing number from a row, column, or block; if you can exclude all but one cell for that number, then write it down ,,,,, 9 missing from this column missing from this row May 0 Task Scheduling Slide

7 Sudoku Puzzle: Hard Example Complete entries in this chart so that numbers -9 appear without repetition in each row, each column and each block Hard puzzles typically have fewer entries supplied, with each row, column, or block containing only a few entries Hard puzzles may have handles or starting points ( in the top left block or 9 in center and lower right blocks) May 0 Task Scheduling Slide

8 Constructing a (Mini-)Sudoku Puzzle Begin with a completed puzzle and one by one remove selected entries that can be deduced from the remaining ones This will ensure a unique solution, which is a desirable attribute Interesting fact: In a 9 9 Sudoku puzzle, you may need at least initial entries (clues) for the solution to be unique; no one knows whether a -clue puzzle with unique solution exists May 0 Task Scheduling Slide (Web page devoted to minimum Sudoku)

9 Variations on Sudoku Other sizes (e.g.,, with blocks; or, with blocks) Combining this 000s phenomenon with Rubik s cube of the 90s... or with the age-old sliding puzzle Latin square May 0 Task Scheduling Slide 9

10 Task Scheduling Problem We have a set of of tasks There are some processors that can execute tasks Assign tasks to processors so as to meet certain constraints A task may fit only some processors Tasks may have prerequisite tasks Preemption may be (dis)allowed Tasks may have deadlines Shortest schedule may be sought Numbers in Sudoku puzzle Cells in Sudoku puzzle can hold numbers Place numbers in cells while honoring some constraints Use only numbers -9 Some numbers already placed Different numbers in each row Different numbers in each column Different numbers in each block Virtually all instances of the task scheduling problem are difficult (NP-hard), just like Sudoku May 0 Task Scheduling Slide 0

11 Resource Allocation Problem We have a set of of resources There are locations where resources may be placed Assign resources to locations to meet certain constraints A resource may fit only some locations Resources must be easily accessible Resource mobility may be (dis)allowed Resource cost may differ by location Lowest-cost assignment may be sought Numbers in Sudoku puzzle Cells in Sudoku puzzle can hold numbers Place numbers in cells while honoring some constraints Use only numbers -9 Some numbers already placed Different numbers in each row Different numbers in each column Different numbers in each block Virtually all instances of the resource allocation problem are difficult (NP-hard), just like Sudoku May 0 Task Scheduling Slide

12 Scheduling Required CE Courses CS 0 Math A Math B ECE Phys Chem A Chem B Chem AL Chem BL Units units CS 0 Math C Phys 0 units CS 0 CS 0 Phys L Phys Math A ECE A Upper - division standing Engr 0 Phys L Phys ECE A ECE B ECE B ECE C Or CS 0 Constraints Prerequisite: Solid downward arrow Corequisite: Dashed sideways arrow Units per quarter: CS 0A CS 0 Or CS 0 Or PSTAT 0A ECE ECE A ECE B ECE 9 May 0 Task Scheduling Slide

13 Scheduling Required CE Courses CS 0 Math A Math B ECE Phys Chem A Chem B Chem AL Chem BL Units units 0 units CS 0 CS 0 CS 0 Math C Phys L Phys Phys Math A ECE A Upper - division standing Engr 0 Phys L Phys ECE A ECE B ECE B ECE C Or CS 0 Constraints Prerequisite: Solid downward arrow Corequisite: Dashed sideways arrow Units per quarter: CS 0A CS 0 Or CS 0 Or PSTAT 0A ECE ECE A ECE 9 ECE B Almost done! May 0 Task Scheduling Slide

14 Job Task Machine Time Staff Ja Ta M Ja Ta M Jb Tb M Jb Tb M Jb Tb M Jc Tc M Jd Td M Jd Td M M M M Job-Shop Scheduling S t a f f S t a f f Ta Tb Ta Td Td Tb Tc Tb Ta Tb Ta Td Tc Td Tb May 0 Task Scheduling Slide Tb Time Time

15 Schedule Refinement Job Task Machine Time Staff Ja Ta M Ja Ta M Jb Tb M Jb Tb M Jb Tb M Jc Tc M Jd Td M Jd Td M M M M S t a f f S t a f f Ta Ta Tb Tb Ta Ta Tb Td Tc Tb Td Switch? Td Tb Tc May 0 Task Scheduling Slide Tb Td Time Time

16 Truck Scheduling Seattle Portland Boise 0% Chicago SF % 0% % NYC LA Dallas 0% Orlando Truck location Required trip 00% Truck load May 0 Task Scheduling Slide

17 Multiprocessor Scheduling Task graph with unit-time tasks Here s a heuristic known as list scheduling:. Find the depth T of the task graph. Take T as a goal for the running time T p. Determine the latest possible start times. Assign priorities in order of latest times T = (execution time goal) Latest start times: see the layered diagram Priorities: shown on the diagram in red When two tasks have the same latest start time, a secondary tie-breaking rule is used Vertex v represents j j Task task or Computation computation j May 0 Task Scheduling Slide x 0 x 0 y T p T Latency p Latency with with p proce p T T Number Number of nodes of nodes (h T T Depth Depth of the of the graph ( x Output Output 9 9

18 Assignment to Processors Tasks listed in priority order * 9 0 Vertex v represents j j Task task or Computation computation j x x T p T Latency p Latency with with p proce p T T Number Number of nodes of nodes (h T T Depth Depth of the of the graph ( P 9 0 x P P P P P Even in this simple case of unit-time tasks, multiprocessor scheduling remains difficult with as few as processors Time Step 0 0 y Output Output 9 9 May 0 Task Scheduling Slide

19 Two Related and Similar Problems The knapsack problem We have storage capacity W and n files of sizes w i and values v i Pick a max-value subset of files that fit in the storage space W Files cannot be broken into pieces Naïve solution: Examine all n subsets Dynamic programming solution Various heuristic aids Approx. solutions (say, 90% of optimal) Off-line game of Tetris We have a rectangular bin and a sequence of tetrominos Find optimal play to maximize the number of pieces used Pieces can only be rotated Exponentially many choices There are many other related and similarly hard problems, some of which don t even admit efficient approximations May 0 Task Scheduling Slide 9

Task Scheduling. A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering. May 2007 Task Scheduling Slide 1

Task Scheduling. A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering. May 2007 Task Scheduling Slide 1 Task Scheduling A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering May 00 Task Scheduling Slide About This Presentation This presentation belongs to the lecture series

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

Fault-Tolerant Computing

Fault-Tolerant Computing Fault-Tolerant Computing Dealing with Low-Level Impairments Slide About This Presentation This presentation has been prepared for the graduate course ECE 57A (Fault-Tolerant Computing) by Behrooz Parhami,

More information

KenKen Strategies. Solution: To answer this, build the 6 6 table of values of the form ab 2 with a {1, 2, 3, 4, 5, 6}

KenKen Strategies. Solution: To answer this, build the 6 6 table of values of the form ab 2 with a {1, 2, 3, 4, 5, 6} KenKen is a puzzle whose solution requires a combination of logic and simple arithmetic and combinatorial skills. The puzzles range in difficulty from very simple to incredibly difficult. Students who

More information

Yet Another Organized Move towards Solving Sudoku Puzzle

Yet Another Organized Move towards Solving Sudoku Puzzle !" ##"$%%# &'''( ISSN No. 0976-5697 Yet Another Organized Move towards Solving Sudoku Puzzle Arnab K. Maji* Department Of Information Technology North Eastern Hill University Shillong 793 022, Meghalaya,

More information

Physical Zero-Knowledge Proof: From Sudoku to Nonogram

Physical Zero-Knowledge Proof: From Sudoku to Nonogram Physical Zero-Knowledge Proof: From Sudoku to Nonogram Wing-Kai Hon (a joint work with YF Chien) 2008/12/30 Lab of Algorithm and Data Structure Design (LOADS) 1 Outline Zero-Knowledge Proof (ZKP) 1. Cave

More information

arxiv: v2 [math.ho] 23 Aug 2018

arxiv: 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 information

of Nebraska - Lincoln

of Nebraska - Lincoln University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln MAT Exam Expository Papers Math in the Middle Institute Partnership 7-2009 Sudoku Marlene Grayer University of Nebraska-Lincoln

More information

Techniques for Generating Sudoku Instances

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

Problem A: Watch the Skies!

Problem A: Watch the Skies! Problem A: Watch the Skies! Air PC, an up-and-coming air cargo firm specializing in the transport of perishable goods, is in the process of building its central depot in Peggy s Cove, NS. At present, this

More information

Take Control of Sudoku

Take Control of Sudoku Take Control of Sudoku Simon Sunatori, P.Eng./ing., M.Eng. (Engineering Physics), F.N.A., SM IEEE, LM WFS MagneScribe : A 3-in-1 Auto-Retractable Pen

More information

Fault-Tolerant Computing

Fault-Tolerant Computing Fault-Tolerant Computing Dealing with Low-Level Impairments Oct. 007 Fault Masking Slide bout This Presentation This presentation has been prepared for the graduate course ECE 57 (Fault-Tolerant Computing)

More information

The Mathematics Behind Sudoku Laura Olliverrie Based off research by Bertram Felgenhauer, Ed Russel and Frazer Jarvis. Abstract

The Mathematics Behind Sudoku Laura Olliverrie Based off research by Bertram Felgenhauer, Ed Russel and Frazer Jarvis. Abstract The Mathematics Behind Sudoku Laura Olliverrie Based off research by Bertram Felgenhauer, Ed Russel and Frazer Jarvis Abstract I will explore the research done by Bertram Felgenhauer, Ed Russel and Frazer

More information

Constraint Satisfaction Problems: Formulation

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

Sudoku. How to become a Sudoku Ninja: Tips, Tricks and Strategies

Sudoku. How to become a Sudoku Ninja: Tips, Tricks and Strategies Sudoku How to become a Sudoku Ninja: Tips, Tricks and Strategies 1 Benefits Fun Exercises the Mind Improves Memory Improves Logical and Critical Reasoning Helps to decline the effects of aging Can help

More information

1 Introduction. 2 An Easy Start. KenKen. Charlotte Teachers Institute, 2015

1 Introduction. 2 An Easy Start. KenKen. Charlotte Teachers Institute, 2015 1 Introduction R is a puzzle whose solution requires a combination of logic and simple arithmetic and combinatorial skills 1 The puzzles range in difficulty from very simple to incredibly difficult Students

More information

Quintessence A Packet of Puzzles by John Bulten

Quintessence A Packet of Puzzles by John Bulten Quintessence A Packet of Puzzles by John Bulten Editor s Note: The last, giant grid here is one of the hardest puzzles we have ever presented. If I knew in advance John wanted to make a puzzle like this,

More information

KenKen Strategies 17+

KenKen Strategies 17+ KenKen is a puzzle whose solution requires a combination of logic and simple arithmetic and combinatorial skills. The puzzles range in difficulty from very simple to incredibly difficult. Students who

More information

Easy Games and Hard Games

Easy Games and Hard Games Easy Games and Hard Games Igor Minevich April 30, 2014 Outline 1 Lights Out Puzzle 2 NP Completeness 3 Sokoban 4 Timeline 5 Mancala Original Lights Out Puzzle There is an m n grid of lamps that can be

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

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

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

T H E M A T H O F S U D O K U

T H E M A T H O F S U D O K U T H E M A T H S U D O K U O F Oscar Vega. Department of Mathematics. College of Science and Mathematics Centennial Celebration. California State University, Fresno. May 13 th, 2011. The Game A Sudoku board

More information

INTRODUCTION TO COMPUTER SCIENCE I PROJECT 6 Sudoku! Revision 2 [2010-May-04] 1

INTRODUCTION TO COMPUTER SCIENCE I PROJECT 6 Sudoku! Revision 2 [2010-May-04] 1 INTRODUCTION TO COMPUTER SCIENCE I PROJECT 6 Sudoku! Revision 2 [2010-May-04] 1 1 The game of Sudoku Sudoku is a game that is currently quite popular and giving crossword puzzles a run for their money

More information

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

Classic Sudoku 9x9 - Easy To Medium - Volume Logic Puzzles By Nick Snels READ ONLINE

Classic Sudoku 9x9 - Easy To Medium - Volume Logic Puzzles By Nick Snels READ ONLINE Classic Sudoku 9x9 - Easy To Medium - Volume 62-276 Logic Puzzles By Nick Snels READ ONLINE If you are searched for a book by Nick Snels Classic Sudoku 9x9 - Easy to Medium - Volume 62-276 Logic Puzzles

More information

Applications of Advanced Mathematics (C4) Paper B: Comprehension INSERT WEDNESDAY 21 MAY 2008 Time:Upto1hour

Applications of Advanced Mathematics (C4) Paper B: Comprehension INSERT WEDNESDAY 21 MAY 2008 Time:Upto1hour ADVANCED GCE 4754/01B MATHEMATICS (MEI) Applications of Advanced Mathematics (C4) Paper B: Comprehension INSERT WEDNESDAY 21 MAY 2008 Afternoon Time:Upto1hour INSTRUCTIONS TO CANDIDATES This insert contains

More information

Sudoku: Is it Mathematics?

Sudoku: Is it Mathematics? Sudoku: Is it Mathematics? Peter J. Cameron Forder lectures April 2008 There s no mathematics involved. Use logic and reasoning to solve the puzzle. Instructions in The Independent There s no mathematics

More information

Some results on Su Doku

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

Sudoku Book: 200 Sudoku Puzzles Of All Difficulties (Volume 2) By Djape READ ONLINE

Sudoku Book: 200 Sudoku Puzzles Of All Difficulties (Volume 2) By Djape READ ONLINE Sudoku Book: 200 Sudoku Puzzles Of All Difficulties (Volume 2) By Djape READ ONLINE The Sudoku website contains online (interactive) and printable sudoku puzzles, ordered by difficulty level. Featuring

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

A year ago I investigated a mathematical problem relating to Latin squares. Most people, whether knowing it or not, have actually seen a Latin square

A year ago I investigated a mathematical problem relating to Latin squares. Most people, whether knowing it or not, have actually seen a Latin square 1 How I Got Started: A year ago I investigated a mathematical problem relating to Latin squares. Most people, whether knowing it or not, have actually seen a Latin square at some point in their lives and

More information

The mathematics of Septoku

The mathematics of Septoku The mathematics of Septoku arxiv:080.397v4 [math.co] Dec 203 George I. Bell gibell@comcast.net, http://home.comcast.net/~gibell/ Mathematics Subject Classifications: 00A08, 97A20 Abstract Septoku is a

More information

10/5/2015. Constraint Satisfaction Problems. Example: Cryptarithmetic. Example: Map-coloring. Example: Map-coloring. Constraint Satisfaction Problems

10/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 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

Mathematics Enhancement Programme TEACHING SUPPORT: Year 3

Mathematics Enhancement Programme TEACHING SUPPORT: Year 3 Mathematics Enhancement Programme TEACHING UPPORT: Year 3 1. Question and olution Write the operations without brackets if possible so that the result is the same. Do the calculations as a check. The first

More information

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

Beyond Prolog: Constraint Logic Programming

Beyond Prolog: Constraint Logic Programming Beyond Prolog: Constraint Logic Programming This lecture will cover: generate and test as a problem solving approach in Prolog introduction to programming with CLP(FD) using constraints to solve a puzzle

More information

Welcome to the Sudoku and Kakuro Help File.

Welcome to the Sudoku and Kakuro Help File. HELP FILE Welcome to the Sudoku and Kakuro Help File. This help file contains information on how to play each of these challenging games, as well as simple strategies that will have you solving the harder

More information

Investigation of Algorithmic Solutions of Sudoku Puzzles

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

Game Variations: Ultimate Tic Tac Toe

Game Variations: Ultimate Tic Tac Toe Game Variations: Ultimate Tic Tac Toe Middle School In this lesson, students will experience the engineering process when creating modifications to a familiar game. Next Generation Science Standards MS-ETS1-1

More information

Lumines Strategies. Greg Aloupis, Jean Cardinal, Sébastien Collette, and Stefan Langerman

Lumines Strategies. Greg Aloupis, Jean Cardinal, Sébastien Collette, and Stefan Langerman Lumines Strategies Greg Aloupis, Jean Cardinal, Sébastien Collette, and Stefan Langerman Département d Informatique, Université Libre de Bruxelles, Boulevard du Triomphe CP212, 1050 Bruxelles, Belgium.

More information

Mathematics of Magic Squares and Sudoku

Mathematics of Magic Squares and Sudoku Mathematics of Magic Squares and Sudoku Introduction This article explains How to create large magic squares (large number of rows and columns and large dimensions) How to convert a four dimensional magic

More information

Problem A. Worst Locations

Problem A. Worst Locations Problem A Worst Locations Two pandas A and B like each other. They have been placed in a bamboo jungle (which can be seen as a perfect binary tree graph of 2 N -1 vertices and 2 N -2 edges whose leaves

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

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

Applications of Advanced Mathematics (C4) Paper B: Comprehension WEDNESDAY 21 MAY 2008 Time:Upto1hour

Applications of Advanced Mathematics (C4) Paper B: Comprehension WEDNESDAY 21 MAY 2008 Time:Upto1hour ADVANCED GCE 4754/01B MATHEMATICS (MEI) Applications of Advanced Mathematics (C4) Paper B: Comprehension WEDNESDAY 21 MAY 2008 Afternoon Time:Upto1hour Additional materials: Rough paper MEI Examination

More information

An Exploration of the Minimum Clue Sudoku Problem

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

Algorithmique appliquée Projet UNO

Algorithmique appliquée Projet UNO Algorithmique appliquée Projet UNO Paul Dorbec, Cyril Gavoille The aim of this project is to encode a program as efficient as possible to find the best sequence of cards that can be played by a single

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

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

DEVELOPING LOGICAL SKILLS WITH THE HELP OF SUDOKU. Radost Nicolaeva-Cohen, Andreea Timiras, Adrian Buciu, Emil Robert Rudi Wimmer

DEVELOPING LOGICAL SKILLS WITH THE HELP OF SUDOKU. Radost Nicolaeva-Cohen, Andreea Timiras, Adrian Buciu, Emil Robert Rudi Wimmer DEVELOPING LOGICAL SKILLS WITH THE HELP OF SUDOKU Radost Nicolaeva-Cohen, Andreea Timiras, Adrian Buciu, Emil Robert Rudi Wimmer Larnaka 28. März 2018 Basics History Pro and Contra on Sudoku for teaching

More information

CSC 396 : Introduction to Artificial Intelligence

CSC 396 : Introduction to Artificial Intelligence CSC 396 : Introduction to Artificial Intelligence Exam 1 March 11th - 13th, 2008 Name Signature - Honor Code This is a take-home exam. You may use your book and lecture notes from class. You many not use

More information

You ve seen them played in coffee shops, on planes, and

You ve seen them played in coffee shops, on planes, and Every Sudoku variation you can think of comes with its own set of interesting open questions There is math to be had here. So get working! Taking Sudoku Seriously Laura Taalman James Madison University

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

Link and Link Impedance 2018/02/13. VECTOR DATA ANALYSIS Network Analysis TYPES OF OPERATIONS

Link and Link Impedance 2018/02/13. VECTOR DATA ANALYSIS Network Analysis TYPES OF OPERATIONS VECTOR DATA ANALYSIS Network Analysis A network is a system of linear features that has the appropriate attributes for the flow of objects. A network is typically topology-based: lines (arcs) meet at intersections

More information

Foundations of AI. 3. Solving Problems by Searching. Problem-Solving Agents, Formulating Problems, Search Strategies

Foundations of AI. 3. Solving Problems by Searching. Problem-Solving Agents, Formulating Problems, Search Strategies Foundations of AI 3. Solving Problems by Searching Problem-Solving Agents, Formulating Problems, Search Strategies Luc De Raedt and Wolfram Burgard and Bernhard Nebel Contents Problem-Solving Agents Formulating

More information

Counting Sudoku Variants

Counting Sudoku Variants Counting Sudoku Variants Wayne Zhao mentor: Dr. Tanya Khovanova Bridgewater-Raritan Regional High School May 20, 2018 MIT PRIMES Conference Wayne Zhao Counting Sudoku Variants 1 / 21 Sudoku Number of fill-ins

More information

PELLISSIPPI STATE COMMUNITY COLLEGE MASTER SYLLABUS AUTOCAD FOR INTERIOR DESIGN: STUDIO IV IDT 2305

PELLISSIPPI STATE COMMUNITY COLLEGE MASTER SYLLABUS AUTOCAD FOR INTERIOR DESIGN: STUDIO IV IDT 2305 PELLISSIPPI STATE COMMUNITY COLLEGE MASTER SYLLABUS AUTOCAD FOR INTERIOR DESIGN: STUDIO IV IDT 2305 Class Hours: 3 Credit Hours: 4 Laboratory Hours: 3 Date Revised: Spring 2011 NOTE: This course is designed

More information

PA3 Part 2: BLM List. Workbook 3 - Patterns & Algebra, Part 2 1 BLACKLINE MASTERS

PA3 Part 2: BLM List. Workbook 3 - Patterns & Algebra, Part 2 1 BLACKLINE MASTERS PA Part : BLM List Calendars Colouring Exercise Hanji Puzzles Hundreds Charts 8 Mini Sudoku 9 Sudoku The Real Thing Sudoku Warm Up Venn Diagram BLACKLINE MASTERS Workbook - Patterns & Algebra, Part Calendars

More information

MITOCW watch?v=krzi60lkpek

MITOCW watch?v=krzi60lkpek MITOCW watch?v=krzi60lkpek The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To

More information

arxiv:cs/ v2 [cs.cc] 27 Jul 2001

arxiv:cs/ v2 [cs.cc] 27 Jul 2001 Phutball Endgames are Hard Erik D. Demaine Martin L. Demaine David Eppstein arxiv:cs/0008025v2 [cs.cc] 27 Jul 2001 Abstract We show that, in John Conway s board game Phutball (or Philosopher s Football),

More information

Lecture 2: Problem Formulation

Lecture 2: Problem Formulation 1. Problem Solving What is a problem? Lecture 2: Problem Formulation A goal and a means for achieving the goal The goal specifies the state of affairs we want to bring about The means specifies the operations

More information

An improved strategy for solving Sudoku by sparse optimization methods

An improved strategy for solving Sudoku by sparse optimization methods An improved strategy for solving Sudoku by sparse optimization methods Yuchao Tang, Zhenggang Wu 2, Chuanxi Zhu. Department of Mathematics, Nanchang University, Nanchang 33003, P.R. China 2. School of

More information

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

isudoku Computing Solutions to Sudoku Puzzles w/ 3 Algorithms by: Gavin Hillebrand Jamie Sparrow Jonathon Makepeace Matthew Harris

isudoku Computing Solutions to Sudoku Puzzles w/ 3 Algorithms by: Gavin Hillebrand Jamie Sparrow Jonathon Makepeace Matthew Harris isudoku Computing Solutions to Sudoku Puzzles w/ 3 Algorithms by: Gavin Hillebrand Jamie Sparrow Jonathon Makepeace Matthew Harris What is Sudoku? A logic-based puzzle game Heavily based in combinatorics

More information

Counting Things Solutions

Counting Things Solutions Counting Things Solutions Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles March 7, 006 Abstract These are solutions to the Miscellaneous Problems in the Counting Things article at:

More information

Overview. Initial Screen

Overview. Initial Screen 1 of 19 Overview Normal game play is by using the stylus. If your device has the direction and select keys you may use those instead. Users of older models can set the Hardkey navigation option under the

More information

MASTER PROOFS through GAMES

MASTER PROOFS through GAMES MASTER PROOFS through GAMES NCTM Annual Conference 2018 Washington D.C. Presented by Peter Sell and Paul Winston Peter and Quinn Paul and KenKen inventor Tetsuya Miyamoto DIGITS (Mastermind with Numbers)

More information

Southeastern European Regional Programming Contest Bucharest, Romania Vinnytsya, Ukraine October 21, Problem A Concerts

Southeastern European Regional Programming Contest Bucharest, Romania Vinnytsya, Ukraine October 21, Problem A Concerts Problem A Concerts File: A.in File: standard output Time Limit: 0.3 seconds (C/C++) Memory Limit: 128 megabytes John enjoys listening to several bands, which we shall denote using A through Z. He wants

More information

CS-171, Intro to A.I. Mid-term Exam Winter Quarter, 2015

CS-171, Intro to A.I. Mid-term Exam Winter Quarter, 2015 CS-171, Intro to A.I. Mid-term Exam Winter Quarter, 2015 YUR NAME: YUR ID: ID T RIGHT: RW: SEAT: The exam will begin on the next page. Please, do not turn the page until told. When you are told to begin

More information

Sudoku 16 X 16: 100 Sudoku Puzzles Volume 2 By David Badger READ ONLINE

Sudoku 16 X 16: 100 Sudoku Puzzles Volume 2 By David Badger READ ONLINE Sudoku 16 X 16: 100 Sudoku Puzzles Volume 2 By David Badger READ ONLINE If you are searching for a ebook Sudoku 16 x 16: 100 Sudoku puzzles Volume 2 by David Badger in pdf format, then you've come to the

More information

Lecture 20 November 13, 2014

Lecture 20 November 13, 2014 6.890: Algorithmic Lower Bounds: Fun With Hardness Proofs Fall 2014 Prof. Erik Demaine Lecture 20 November 13, 2014 Scribes: Chennah Heroor 1 Overview This lecture completes our lectures on game characterization.

More information

Sudoku an alternative history

Sudoku an alternative history Sudoku an alternative history Peter J. Cameron p.j.cameron@qmul.ac.uk Talk to the Archimedeans, February 2007 Sudoku There s no mathematics involved. Use logic and reasoning to solve the puzzle. Instructions

More information

EC O4 403 DIGITAL ELECTRONICS

EC O4 403 DIGITAL ELECTRONICS EC O4 403 DIGITAL ELECTRONICS Asynchronous Sequential Circuits - II 6/3/2010 P. Suresh Nair AMIE, ME(AE), (PhD) AP & Head, ECE Department DEPT. OF ELECTONICS AND COMMUNICATION MEA ENGINEERING COLLEGE Page2

More information

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

Milton Public Schools Elementary Summer Math

Milton Public Schools Elementary Summer Math Milton Public Schools Elementary Summer Math Did you know that the average American child loses between 1 and 3 months of learning in reading and math each summer? You can continue to love and enjoy your

More information

ARITHMOGONS The number in a square must be the sum of the numbers on each side of it.

ARITHMOGONS The number in a square must be the sum of the numbers on each side of it. ARITHMOGONS The number in a square must be the sum of the numbers on each side of it. For example: 3 7 4 1. 2. 3. DOTTY SHAPES Shape 1 is 1cm x 1cm. Find the area of each shape. Shape 2 Shape 1 Shape 3

More information

DOWNLOAD OR READ : CLASSIC SUDOKU 9X9 MEDIUM LEVEL N7 100 MEDIUM SUDOKU PUZZLES FORMAT EASY TO USE AND TO TAKE EVERYWHERE 6X9 PDF EBOOK EPUB MOBI

DOWNLOAD OR READ : CLASSIC SUDOKU 9X9 MEDIUM LEVEL N7 100 MEDIUM SUDOKU PUZZLES FORMAT EASY TO USE AND TO TAKE EVERYWHERE 6X9 PDF EBOOK EPUB MOBI DOWNLOAD OR READ : CLASSIC SUDOKU 9X9 MEDIUM LEVEL N7 100 MEDIUM SUDOKU PUZZLES FORMAT EASY TO USE AND TO TAKE EVERYWHERE 6X9 PDF EBOOK EPUB MOBI Page 1 Page 2 classic sudoku 9x9 medium pdf 9x9 Sudoku

More information

Computer Science Scholarship Puzzle Packet

Computer Science Scholarship Puzzle Packet Computer Science Scholarship Puzzle Packet Please set aside about two hours for working on these problems. Feel free to use a calculator on any problem you wish. But if you do, just make a note. By Calc.

More information

Question Score Max Cover Total 149

Question Score Max Cover Total 149 CS170 Final Examination 16 May 20 NAME (1 pt): TA (1 pt): Name of Neighbor to your left (1 pt): Name of Neighbor to your right (1 pt): This is a closed book, closed calculator, closed computer, closed

More information

Hinojosa Kinder Math Vocabulary Words. Topic 1. number. zero. one

Hinojosa Kinder Math Vocabulary Words. Topic 1. number. zero. one Topic 1 Word Picture number 2 zero 0 one 1 two 2 three 3 four 4 five 5 count 1 2 3 whole part none 0 picture objects order 0 1 2 3 4 represent triangle describe blue 3 sides 3 corners Topic 2 Word Picture

More information

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6 CS100: DISCRETE STRUCTURES Lecture 8 Counting - CH6 Lecture Overview 2 6.1 The Basics of Counting: THE PRODUCT RULE THE SUM RULE THE SUBTRACTION RULE THE DIVISION RULE 6.2 The Pigeonhole Principle. 6.3

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

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

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

CS 171, Intro to A.I. Midterm Exam Fall Quarter, 2016

CS 171, Intro to A.I. Midterm Exam Fall Quarter, 2016 CS 171, Intro to A.I. Midterm Exam all Quarter, 2016 YOUR NAME: YOUR ID: ROW: SEAT: The exam will begin on the next page. Please, do not turn the page until told. When you are told to begin the exam, please

More information

Episode 3 8 th 12 th February Substitution and Odd Even Variations By Kishore Kumar and Ashish Kumar

Episode 3 8 th 12 th February Substitution and Odd Even Variations By Kishore Kumar and Ashish Kumar Episode 3 8 th 12 th February 2019 Substitution and Odd Even Variations By Kishore Kumar and Ashish Kumar Sudoku Mahabharat rounds will also serve as qualifiers for Indian Sudoku Championship for year

More information

ON THE ENUMERATION OF MAGIC CUBES*

ON THE ENUMERATION OF MAGIC CUBES* 1934-1 ENUMERATION OF MAGIC CUBES 833 ON THE ENUMERATION OF MAGIC CUBES* BY D. N. LEHMER 1. Introduction. Assume the cube with one corner at the origin and the three edges at that corner as axes of reference.

More information

Sudoku Squares as Experimental Designs

Sudoku Squares as Experimental Designs Sudoku Squares as Experimental Designs Varun S B VII Semester,EEE Sri Jayachamarajendra College of Engineering, Mysuru,India-570006 ABSTRACT Sudoku is a popular combinatorial puzzle. There is a brief over

More information

MATH302: Mathematics & Computing Permutation Puzzles: A Mathematical Perspective

MATH302: Mathematics & Computing Permutation Puzzles: A Mathematical Perspective COURSE OUTLINE Fall 2016 MATH302: Mathematics & Computing Permutation Puzzles: A Mathematical Perspective General information Course: MATH302: Mathematics & Computing Permutation Puzzles: A Mathematical

More information

Dynamic Programming. Objective

Dynamic Programming. Objective Dynamic Programming Richard de Neufville Professor of Engineering Systems and of Civil and Environmental Engineering MIT Massachusetts Institute of Technology Dynamic Programming Slide 1 of 35 Objective

More information

Sudoku Solver Manual. Version June 2017

Sudoku Solver Manual. Version June 2017 Sudoku Solver Manual Version 1.6.7 10 June 2017 Table of Contents Introduction... 10 Introduction to Sudoku... 10 Sudoku Puzzles... 12 Sudoku Solver... 12 Solving Tutorial... 13 Solving With Singletons...

More information

(school and non-school related)

(school and non-school related) (check one of the following) (International students applying for financial aid must apply Regular Decision.) (Medical Scholar Candidates must apply Early Action.) (choose only one) (school and non-school

More information

The remarkably popular puzzle demonstrates man versus machine, backtraking and recursion, and the mathematics of symmetry.

The remarkably popular puzzle demonstrates man versus machine, backtraking and recursion, and the mathematics of symmetry. Chapter Sudoku The remarkably popular puzzle demonstrates man versus machine, backtraking and recursion, and the mathematics of symmetry. Figure.. A Sudoku puzzle with especially pleasing symmetry. The

More information

Surveillance 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 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 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

GET OVERLAPPED! Author: Huang Yi. Forum thread:

GET OVERLAPPED! Author: Huang Yi. Forum thread: GET OVERLAPPED! Author: Huang Yi Test page: http://logicmastersindia.com/2019/02s/ Forum thread: http://logicmastersindia.com/forum/forums/thread-view.asp?tid=2690 About this Test: This test presents a

More information

Enumerating 3D-Sudoku Solutions over Cubic Prefractal Objects

Enumerating 3D-Sudoku Solutions over Cubic Prefractal Objects Regular Paper Enumerating 3D-Sudoku Solutions over Cubic Prefractal Objects Hideki Tsuiki 1,a) Yohei Yokota 1, 1 Received: September 1, 2011, Accepted: December 16, 2011 Abstract: We consider three-dimensional

More information

CS 32 Puzzles, Games & Algorithms Fall 2013

CS 32 Puzzles, Games & Algorithms Fall 2013 CS 32 Puzzles, Games & Algorithms Fall 2013 Study Guide & Scavenger Hunt #2 November 10, 2014 These problems are chosen to help prepare you for the second midterm exam, scheduled for Friday, November 14,

More information