Preview

Lights Out Linear Algebra

Better Essays
Open Document
Open Document
1112 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Lights Out Linear Algebra
The purpose of this project is to solve the game of Light’s Out! by using basic knowledge of Linear algebra including matrix addition, vector spaces, linear combinations, and row reducing to reduced echelon form. |

Lights Out! is an electronic game that was released by Tiger Toys in 1995. It is also now a flash game online. The game consists of a 5x5 grid of lights. When the game stats a set of lights are switched to on randomly or in a pattern. Pressing one light will toggle it and the lights adjacent to it on and off. The goal of the game is to switch all the lights off in as few button presses as possible. In the folling examples, 1 will represent a “on” light and 0 will represent an “off” light. Yellow represents a button pressed and changed and green represents a button that was not pressed but was changed as a result of the pressed button.

Example 1

1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 |

Starting Grid Pressing button 1 Pressing button 18 Example 2

1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 |

Zero button presses One button press Two button presses Three button presses

Notice Pressing a button on even number of times has the same effect as if the button was never pressed and pressing the button an odd number of

You May Also Find These Documents Helpful

  • Satisfactory Essays

    ECT114 week 3 lab

    • 299 Words
    • 2 Pages

    3. Analyze the switch logic circuit in Figure 1. The light ON is considered a logic HIGH, and the light OFF is considered a logic LOW.…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Record the numbers of time twice without exercise and twice after been exercising. You must try the activity again, doing it the same way and using the same two fingers (thumb and index).…

    • 478 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    In the book All the Light We Cannot See by Anthony Doerr, Werner starts to develop a better realization of what the intentions of the institute are when it comes to teaching the students, and becomes less loyal to what the institute has taught him because of this. Werner starts to realize the methods that are being used by the institute in order to promote brutality. Werner also realizes that the institute is manipulating him into using his intelligence in order to do vicious things in favor of the Nazis. As werner becomes more aware of what is happening, he starts to disobey the violent morals he has been taught despite the danger that could result from this.…

    • 601 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    In my last step the dominos knock each other over and hit the button for the light. The energy stays as kinetic energy and I can tell from the movement. I controlled the sizes of the dominos to make sure they would hit the button.…

    • 520 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Starch Lab

    • 399 Words
    • 2 Pages

    This lab gives a better understanding of biosynthesis of starch. As you can see with our data we had some discrepancies in tubes where glucose was present no starch should have been found however we have “+” in a few of the time slots this could be do to…

    • 399 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Math/116 Syllabus

    • 2856 Words
    • 12 Pages

    This course introduces basic algebra concepts and assists in building skills for performing specific mathematical operations and problem solving. Students will solve equations, evaluate algebraic expressions, solve and graph linear equations and linear inequalities, graph lines, and solve systems of linear equations and linear inequalities. These concepts and skills will serve as a foundation for subsequent business coursework. Applications to real-world problems are also explored throughout the course. This course is the first half of the college algebra sequence, which is completed in MAT 117, Algebra 1B.…

    • 2856 Words
    • 12 Pages
    Powerful Essays
  • Better Essays

    Forum 2 Linear Equations 2

    • 1133 Words
    • 4 Pages

    Pick one of the following problems. Show how you would solve it using a system…

    • 1133 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Circuits 2014

    • 604 Words
    • 3 Pages

    Build a simple series circuit that consists of 4-6 pieces of wire, 1 light bulb, and 1 battery (voltage source). In order to complete the circuit, the red circles at the end of each must overlap. Please note that the light bulb also has TWO circles. Your circuit is complete and working when the light comes on and the blue dots begin moving.…

    • 604 Words
    • 3 Pages
    Good Essays
  • Good Essays

    In All the Light We Cannot See by Anthony Doerr, the tragedy of World War II is exposed and seen through the eyes of the guilty men who aided in its vengeful mission. Nazism flourished, as it let the masses of Germany believe in their own self-importance again. Their dreams were revived. Adolf Hitler exploited this weakness by fabricating an opulent future for those whose lives had been ravaged by the Treaty of Versailles. One man with one idea lifted up an entire country, but he did not want or care for their hope.…

    • 962 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    have talked about in lecture. The light designers use of different colored lights made it easier for the…

    • 579 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    be considered, where x1 , x2 , ... , xn are the unknowns, elements aik (i = 1, 2, ..., m;…

    • 3080 Words
    • 13 Pages
    Good Essays
  • Good Essays

    Both boys stared into each other’s eyes with fear. They quickly got up to open the bathroom door. Once they were inside they noticed that Lisa was frozen. “I killed her!” Danny stated. “No you didn’t she’s just in cryonic sleep!” Walter said. At this moment both Danny and Walter were afraid they needed to unfreeze their sister. Walter asked Danny if he read the rules before playing “I didn’t read them” he stated. Walter got an uneasy feeling and decided it was time for them to read the rules of the game. “Pieces reset at the end of each game” “that means we get to go home if we play” Walter stated. Danny started to get anxious and didn’t want to continue playing the game. “All I know is when we play that game, bad things happen” Danny stated. “Don’t be a baby” Walter said as he cranked the key and started to play the next round. “Eight. Look, I’m halfway there,” he said with satisfaction. The card popped out and looked at it “…

    • 814 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Mille Lacs Messenger (2008, February 12). The art of lighting up. Retrieved March 17, 2008, from http://millelacsmessenger.1upsoftware.com/main.asp?Search=1&ArticleID=17830&SectionID=1&SubSectionID=&S=1…

    • 845 Words
    • 4 Pages
    Good Essays
  • Good Essays

    light so they can go. No one, not even the driver knows when this light is going to light…

    • 473 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Ken Bijelow, "The Seven-Segment LED." Welcome to Play-Hookey websites. 2007. Doctronic Educational Publication. [Accessed: 2 Mar 2009]…

    • 3471 Words
    • 14 Pages
    Powerful Essays