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

    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

    Set up light box so that one slit of light escapes from the box. (The light box must be plugged into the power box, which must be plugged into the power socket)…

    • 508 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
  • Satisfactory Essays

    All the Light We Cannot See by Anthony Doerr is a novel about the impact war has on innocent people's lives. The struggles of people with disabilities in a time where people weren’t very kind to each other was mentioned often in the story. Doerr writes often about people who coped with and tried to cure blindness through curses, roadblocks, treasure hunts and terrible allies. It seemed that the search for answers and finding hope was the main theme of the story. But it was very sad and dark often, it was depressing in some parts.…

    • 213 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    The most prominent theme of the novel highlights war. Doerr’s work of fiction uses physical symbols to showcase the effects of war on people, of resistance to oppression, and the effort of citizens trying to maintain normality, creating a whole better understanding for readers about the outcomes of war. Historians, philosophers, and writers alike can attest to the human struggle to follow a certain moral code; history shows a constant rift between what humans claim they should do and what they actually do. If this rift did not exist, many a crisis and war could be averted, but humanity would not be its beautifully flawed self. In the novel All the Light We Cannot See, Doerr is raved over for “masterfully and knowledgeably recreating the deprived civilian conditions of war-torn France and the strictly controlled lives of the military occupiers” (Hooper 23). However, the use of literary devices in the novel reflects a message deeper than that of just another war-time story. Doerr utilizes the war setting as a means of further exploring the nature of humanity in a distinct context. He does not define the characters by war; he defines the characters and gives them a war to respond…

    • 868 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

    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

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

    • 3080 Words
    • 13 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