Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please USE Pyton Sagemath code to write.Thanks a lot Problem 1: The 15 puzzle revisited Grading criteria: code correctness for a and b; mathematical correctness

Please USE Pyton Sagemath code to write.Thanks a lotimage text in transcribedimage text in transcribed

Problem 1: The 15 puzzle revisited Grading criteria: code correctness for a and b; mathematical correctness for c. Part d is optional. a. Construct a graph I representing the spaces of a 4 x 4 grid, with the vertices labeled A E I M B F J N C G K O D H L P in which two vertices are joined by an edge if the corresponding squares of the grid share a side (not just a corner). b. Form the symmetric group G on the symbols A through P. (Note: for l a list, SymmetricGroup (1) gives the group of permutations acting on 1.) Let S be the subset of G consisting of the transpositions of the form (XY) for each edge {X, Y} in I. Verify that S generates G. Edit C. Find a subset T of S of smallest possible size such that I does in fact generate G. You should verify (computationally, that I generates G, and explain (mathematically) why no smaller set can work. (Hint for the second part: argue in terms of the graph I.) e. Optional: in class, I explained that the 15 puzzle has unsolvable states. For example, starting with the numbers in order (1 at A through 15 at o, with P empty) you cannot arrive at a position where 14 andl4 15 are swapped while everything else remains in place. Explain why this does not contradict anything you did earlier in this problem. Problem 1: The 15 puzzle revisited Grading criteria: code correctness for a and b; mathematical correctness for c. Part d is optional. a. Construct a graph I representing the spaces of a 4 x 4 grid, with the vertices labeled A E I M B F J N C G K O D H L P in which two vertices are joined by an edge if the corresponding squares of the grid share a side (not just a corner). b. Form the symmetric group G on the symbols A through P. (Note: for l a list, SymmetricGroup (1) gives the group of permutations acting on 1.) Let S be the subset of G consisting of the transpositions of the form (XY) for each edge {X, Y} in I. Verify that S generates G. Edit C. Find a subset T of S of smallest possible size such that I does in fact generate G. You should verify (computationally, that I generates G, and explain (mathematically) why no smaller set can work. (Hint for the second part: argue in terms of the graph I.) e. Optional: in class, I explained that the 15 puzzle has unsolvable states. For example, starting with the numbers in order (1 at A through 15 at o, with P empty) you cannot arrive at a position where 14 andl4 15 are swapped while everything else remains in place. Explain why this does not contradict anything you did earlier in this

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

Draw a schematic diagram of I.C. engines and name the parts.

Answered: 1 week ago