Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This project is about a game that consists of a 5 5 grid of lights. Buttons are adjacent if they are directly touching vertically or
This project is about a game that consists of a grid of lights. Buttons are adjacent
if they are directly touching vertically or horizontally not diagonally In the game, all
buttons can be in one of two states, on or off. Pressing any button changes the state of
that button and all adjacent buttons. The goal of the game is to turn off all of the lights
on the game board. The goal of this project is to use linear algebra and matrix theory to
analyze the game and find solutions to various starting conditions. A picture of the game
with buttons labeled can be found below.
The student should do at least the following analysis of the game:
a Create an adjacency matrix, for the game. This is a matrix consisting of
s and which encodes whether two buttons are adjacent to each other. The
entry should be a if and only if the and buttons are adjacent. For
example, but since and are adjacent buttons, but and are
not. Note: Since in the game a button changes its own state when pressed, a
button is adjacent to itself.
b If vec is the initial state vector, what would it look like for the initial state of all the
lights being onThis should be a column vector. Use for off and for on
c If vec is the final state vector, what would it look like at the end of the game?
d Does it matter in what order the buttons are pushed? A push vector can be
created, where represents a button which is not pushed and a button which is
pushed. Create a push vector where buttons and are pushed and all
others are not.
e With as the adjacency matrix and vec as a push vector, what does Mvec
represent in context? If you have trouble with this simply try serval push vectors
and compare them to the vector found when multiplying by the adjacency matrix.
It can help to map them out on the game grid so you can see them in context
instead of just as a column vector.
f Calculate Mvec using the vector vec from part Is this push vector a solution to the
game which starts with all lights on How do you know?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started