2 Pages

blocksDoc

Course: HIST 101, Spring 2008
School: RPI
Rating:
 
 
 
 
 

Word Count: 412

Document Preview

Jones Mike Alex Packard SlidingBlocks Design Document 1. Our block object will contain a "current position" field denoted by x and y coordinates. Each position in the 2D array representing our tray object will either be null, or point to the block object that occupies that space. Each block object will have its position determined by its coordinates. So even if the array indices points to the...

Register Now

Unformatted Document Excerpt

Coursehero >> New York >> RPI >> HIST 101

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Jones Mike Alex Packard SlidingBlocks Design Document 1. Our block object will contain a "current position" field denoted by x and y coordinates. Each position in the 2D array representing our tray object will either be null, or point to the block object that occupies that space. Each block object will have its position determined by its coordinates. So even if the array indices points to the block object the coordinates, only apply to the block objects coordinates of the top left position. 2. Inside of our tray object will be three (but not only three) fields, one of which will be "current position", possible paths, and current path. For all positions that we find that are possible, we will check if they are the solution, and if yes, stop. If they are not the solution, have we seen them before? If no, add them to the stack, if yes, ignore them. 3. Starting with our initial position, we will call our getPossibilities() method on the table, which will return multiple new possible positions. Starting with the last one reported, they will be added to a stack, and then will be popped and recursively have get possibilities called on them. We will run this algorithm depth first, meaning that we will run a single of path possibilities until we encounter either the solution or a repeated configuration. Once a known solution is encountered we know to stop searching and print out the solution. 4. Block moves on more than one space should not be considered. By considering these moves there may be solutions that are ignored unintentionally. Mike Jones Alex Packard 5. As we recurse down the tree, we will add the configurations to a stack. When a configuration is determined to not lead to a solution, we will unmake the moves by recursing back up the tree, popping configurations off the stack as we go. 6. Tentatively, we plan to use a 2D array to store our tray and the configuration on the tray at the current time. The hash function we intend to use to calculate the hash for the current position entails: [psuedocode] String bob = "" //temporary string for all blocks{ bob+= "" + xco + "" + yco + ""+ height + "" + width; } bob.hash(); [end psuedocode] If this position has been seen before (it is already inside the hash table), and if the position is not the solution position, than end this branch of recursion, if it hasn't been seen before than we just add it to the table and move on.
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Penn State - SOC - 003
Murder Behavioral o Social Learning Theory Observational Learning Account for Behavior o Murder Predisposition of observing a murder/violence o That its ok o Video Games, Movies, Mass Media o Murder's actins Directly Observable Behavior Not Ask Wh
RPI - HIST - 101
Benjamin Smith Alex PackardNameThatSort Test PlanTesting:In order to successfully determine which algorithm is which, we will submit each one to a series of tests with varying sizes and types of data. First, we will subject them to a small number
Penn State - SOC - 003
External Stimuli 1) Stimuli helps to create brain pathways. The ones we continue to use in later life will strengthen Others will die 2) Babies can learn to speak any language at birth. 3) Babies get to be very good at reading our facial expressions.
Penn State - SOC - 003
Movie: Seasons of Life: Infancy and Early Childhood Shared values from previous generations will shape newborns Family stories are very important. They combine to tell us how we feel about nature and another things. They build a web of feeling and fr
Penn State - SOC - 003
Ten things that should be taught in a high school parenting class: How to feed a baby Proper way to hold a baby Change a diaper How to respond in certain emergencies What to do when they are sick Proper Punishment How to teach them When to praise the
Penn State - SOC - 003
Status A recognized social position that an individual occupies Ascribed Status A social position that someone receives at birth (sex, nationality, race) or assumes involuntarily later in life (spouses passes away you become widow) Achieved Status A
Penn State - SOC - 003
Possible Selves Images of what we dream of or dread becoming in the future Self-Esteem A persons overall self-evaluation or sense of self worth Evaluation of oneself as: Good or Bad Better or Worse Acceptable or Unacceptable Beliefs And Judgments Att
Penn State - SOC - 003
Academic Integrity at Penn State Survey of 60 students -the pursuit of scholarly activity in an open, honest, and responsible manner, serving as a basic guiding principle for all academic activity. -have u ever cheated on an in class exam. 63% yes. 8
Penn State - SOC - 003
Prejudice An attitude involving a rigid and irrational generalization about an entire category of people An attitude or a belief Prejudices may be positive or negative Stereotype A set of prejudices concerning some category of people This is what pre
Penn State - SOC - 003
Chapter 2 Spotlight effect the belief that others are paying more attention to one's appearance and behavior than they really are Illusion of transparency the illusion that our concealed emotions leak out and can be easily read by others Self-conce
Penn State - SOC - 003
Chapter 3 Attribution theory the theory of how people explain others behavior; for example, by attributing it either to internal dispositions or to external situations Dispositional attribution attributing behavior to the person's disposition and t
Penn State - SOC - 003
Chapter 5 168-200 Genes, Culture, and Gender - In viewing human similarities and differences, two perspectives dominate- an evolutionary perspective and a cultural perspective. - Natural Selection- the evolutionary process by which nature selects tra
Penn State - SOC - 003
Chapter 4 Notes -Attitude- a favorable or unfavorable evaluative reaction toward something or someone, exhibited in one's beliefs, feelings, or intended behavior. -people's attitudes may or may not cause them to act upon these attitudes. -Bogus Pipel
Penn State - SOC - 003
Altruism A motive to increase another's welfare without conscious regard for one's self interests. Social-exchange theory the theory that human interactions are transactions that aim to maximize one's rewards and minimize one's costs States that we
Penn State - SOC - 003
Chapter 7 249-283 -Peripheral route to Persuasion- occurs when people are influenced by incidental cues, such as a speaker's attractiveness. -cigarette ads target people's feelings towards attractiveness, instead of trying to explain why people shoul
Penn State - SOC - 003
Chapter 8 Group Two or more people who, for longer than a few moments, interact with and influence one another and perceive one another as `us' People not working together are just a collection of people. These people are just merely present. They a
Penn State - PSYCH - 100
Classnotes 1 Spring 2008 Introduction to Psychology Dr. Hunt Psych 100.001Objectives What do Psychologists know about first impressions? (e.g., 6 universal facial emotions) Know the official definition of Psychology Be familiar with 7 subfield
Penn State - PSYCH - 100
Classnotes 2 Introduction to Psychology Dr. Hunt Spring 2008Objectives (Chapter 1 Continued): Methods of PsychologyWhat are the 4 types of descriptive methods of studying behavior? What are the advantages and disadvantages of each of these method
Penn State - PSYCH - 100
How many legs does the elephant have?Classnotes 4 Intro to Psychology- Spring 2008 Dr. Hunt Ch. 3: Sensation and PerceptionKey words: Sensation vs. Perception Sensation (biological) Perception (psychological) Transduction Hearing Seeing Touch Tas
Penn State - PSYCH - 100
Classnotes 5 General Psychology Spring 2008 Dr. HuntKey Words and Terms:Consciousness Selective Attention 2 Requirements of selective attention 3 Levels of consciousness (Levels of Information Processing) 1. High: controlled processes: sharp and
Penn State - PSYCH - 100
General Psychology Spring 2008 Dr. Hunt Classnotes 7 Ch. 5 Learning: Key Words and Objectives Know the basic definition of `Learning.' Understand the basic terminology of Classical Conditioning (CC) Stimulus (S) Response (R) Unconditioned Response
Penn State - PSYCH - 100
General Psychology Spring 2008 Dr. Hunt Classnotes 8 Chapter 6: MemoryMemory: Basic concepts encoding storage retrieval 3 stage model of memory Sensory STM (working memory) How do we increase or extend STM? LTM (long term memory) Procedural memory
Penn State - PSYCH - 100
Classnotes 10 General Psychology Dr. Hunt Spring 2008 Objectives Be familiar with the Prisoner Study and the Milgram Study about Obedience. Be able to talk about how the studies were done and the basic outcomes and findings of these studies. What is
Penn State - STAT - 200
Homework 4 Solutions 7.5 7.9 1000/125000 =1/125, or .008 a. The relative frequency interpretation of probability applies here. The probability was most likely determined by observing the number of Americans injured by lightning during a number of yea
Penn State - STAT - 200
Homework 5 Solutions8.18.7 8.8a. Continuous b. Discrete c. Continuous d. Discrete e. Discrete 1 (.05 + .20 + .50 + .15) = .10. (The sum of all probabilities must equal 1.) a. Condition 1: Sum = .1 + .1 + .3 + .5 = 1. Condition 2: Each of the f
Penn State - STAT - 200
Homework 5 Solutions 8.65 a. = 100(1/2) = 50 and 100(.5)(1 .5) 5. b. P(X 60) P(Z (60 50)/5) = P(Z 2) = 1 P(Z < 2) = 1 .9772 = .0228. c. P(X 59.5) P(Z (59.5 50)/5) = 1 P(Z < 1.9) = 1 .9713 = .0287. a. Answer = .0571. For a binomial r
Penn State - STAT - 200
CHAPTER 5 EXERCISE SOLUTIONS5.1 a. Negative, because coordination will decrease when amount of alcohol consumed is increased. b. No association would be expected between height and grade point average. c. Negative because as amount of training for r
Penn State - STAT - 200
RAQ 2 Coverage and Content RAQ 2 will cover Chapter 3 Sections 3.1 and 3.3-3.5 ( 71 to top of 75) and pages 80-94), and Chapter 4 pages 117-133 (sections 4.1-4.2) Section 3.1: 1. What are representative samples and the fundamental rule for using data
Lakeland College - WORLD LIT - 201
Jeremy Reis 11/25/07 World LiteratureClothes is a literary short story that uses many different themes, ideas, and images throughout the story. American Culture is a central and intricate theme in the story clothes. Divakaruni uses American Culture
Penn State - STAT - 200
Open-ended Practice Questions for Exam April 181. A randomly selected sample of n = 16 students at a university is asked, "How much did you spend on textbooks this semester?" Computer output for analyzing the research question isVariable SpentN
Penn State - STAT - 200
Study Guide and Coverage for RAQ 3 RAQ 3 Coverage: RAQ 3 will be given on Friday, April 4. It will cover Sections 9.1-9.5, 10.110.5, and 12.1-12.4. You should know, or how to do, the following Chapter 9 Section 9.1 The difference between parameters a
Lakeland College - BIOLOGY - 101
Jeremy Reis Biology Jean LordThis article has many key components that need to be addressed by both the consumer and governmental agencies. Consumers need to be more aware and informed about what exactly they are drinking. The producer says that Di
Lakeland College - BIOLOGY - 101
Signs And Symptoms Drinking alone or in secret Being unable to limit the amount of alcohol you drink Not remembering conversations or commitments, sometimes referred to as "blacking out" Making a ritual of having drinks before, with or
Bryant - ACG - 204
Chapter 1An Introduction to Managerial Accounting and Cost ConceptsSolutions to Questions1-1 Managerial accounting is concerned with providing information to managers for use inside the organization. Financial accounting is concerned with providin
Washington University in St. Louis - HIST - Greek Lead
USA PATRIOT ACTUSA Patriot Act was overwhelmingly passed by Congress and signed by the President on Oct. 26, 2001USA PATRIOT Act = Uniting and Strengthening America by Providing Appropriate Tools Required to Intercept and Obstruct Terrorism Ac
HCCS - COMM - 1307
Sofia Straus Alternative Assignment Chapter 4 Radio Goes Digital Radio has become more than AM and FM. Popular radio stations are now streaming live on the internet so people can listen to their favorite stations anywhere in the world. There are also
Arizona - ABE - 484
ABE 484/584CHOIHW11. Fundamentals of Thermodynamics (1) Write three different modes of convective heat transfer. Explain the mechanism (driving force and/or cause) of each mode briefly.(2) Define specific enthalpy (h) in terms of specific inte
Arizona - ABE - 484
ABE 484/584CHOIHW21. [Cookware] One brand of cookware has stainless steel pots with copper bases. Discuss the advantages and disadvantages of this design. Do not limit your design consideration merely to heat transfer aspects.2.[Work] Measure
Indiana - HPER-H - 263
Environmental HealthThe World at LargeOverpopulation Present 6.4 billion 2050 9.4 billion India and China have largest populations US population is less than 300 million The problem lies in the number of resourcesAir Pollution Sulfur Dioxi
Arizona - ABE - 484
ABE 484/584CHOIHW41. [Self-cleaning Oven] An engineer at a leading manufacturer of household appliances has newly proposed a self-cleaning oven that involves the use of a composite window separating the oven cavity from the room air. The composi
Michigan - EEB - 341
The 4 functions of metabolic pathways1. Obtain chemical energy from capturing solar energy or from degradation of energy rich nutrients 2. Conversion of nutrient molecules into cellular precursors (cell's own characteristic molecules) 3. Polymerisa
SUNY Stony Brook - EGL - 362.02
Hail Caesar, even if you are inept. Oh yeah, LEAP DAY! LEAP DAY! LEAP DAY! English Honors: Sexually Transmitted Honors Society. Every time you get raped, you kill yourself. But suicide is a Catholic sin. So Lucina doesn't commit suicide, she sorta sp
SUNY Stony Brook - EGL - 362.02
Revengers Tragedy. It's got the freaking word revenge in it! Uncertain authorship on this one. Some says it's Middleton, but others say it doesn't fit his other works. Middleton stayed in the cities for his plots, and the characters are cookiecutter
Washington University in St. Louis - POLI SCI - L32 3381
L32 3381 National Security, Civil Liberties & the LawWashington University Fall 2005 Tuesdays & Thursdays 10 a.m.-11:30 a.m. Crow 204Planning for Homeland SecurityUS has regarded terrorism as an important threat to national security since at l
UCF - AMH - 2020
-----Stalin pleas for a two front war to draw pressure off him. Want Churchill and Roosevelt to open a front in Europe Decide to attack the "soft underbelly" of the Nazis. Attack North Africa in November 1942. Rommel surrenders in May 1943.
Arizona - ABE - 484
ABE 484/584CHOIHW31. [Window] A double-glazed window has two sheets of glass separated by a thin layer of air. The air gap is thin enough so that convection between the glass panes may be neglected. Determine the reduction in heat transfer when
SUNY Stony Brook - EGL - 362.02
A spider diagram of revenge now surrounds the Duke. Hey, she had flesh, she was hot, she asked for it. The toy broke. I discarded it. I really don't see why I'm on trial. I can do this because I can and I'm allowed. Duke: This is going to hurt my nam
University of Texas - PGE - 312
PGE 312 - SPRING 2008Physical and Chemical Behavior of Petroleum Fluids I Test #2 Solution KeyProblem 1 (40 points) Figure 1 shows the Pressure Temperature diagrams for five hydrocarbon fluids labeled A, B, C, D and E. Also shown on the figure ar
Arizona - ABE - 484
ABE 484/584CHOIHW51. [Temperature and Food Safety] Most people think they know when food is done by trusting their experience or the color of meat. This can be misleading. One out of four hamburgers turns brown in the middle before it has reache
SUNY Stony Brook - EGL - 362.02
Are we supposed to dislike the women in this play? They're out of their humors. Jilted women are told through the lens of the men who desert them. It's a good story until you become them. Everyone knows about Helen, no one knows about Oenone, Paris'
SUNY Stony Brook - EGL - 362.02
Entrapment. We've a madhouse. (dadadadada) there's a madhouse. Overly melancholic. Citadel- it's a fort. Our job is to guard the citadel. If it's hard to get in, it's also hard to get out. How not to socialize women. This is daddy's little girl being
Washington University in St. Louis - POLI SCI - L32 3381
WWII Japanese InternmentNation stunned by Pearl Harbor Hit close to home - West Coast Fear of ethnic Japanese More than 100,000 of Japanese descent on West Coast.Public Officials in California began calling for relocation of those of Japane
Washington University in St. Louis - POLI SCI - L32 3381
Ben Fox 1/30/08 Prof. Lieberman National SecurityCASE BRIEF 1. The style of the caseDennis vs. United States, 341 U.S. 494 (U.S. Supreme Court 1951)2. Procedural factsEleven leaders of the National Board of the Communist Party were arrested and
ASU - HIST - 109
MIDTERM EXAM II STUDY GUIDE 18th-CENTURY COLONIAL AMERICA If you had to describe 18th-century America with one word, what would it be? (Hint: It's also an issue of importance today & can be voluntary or forced.) Immigration By what two ways can popul
Austin CC - MATH - 1423
Too: Professor McGuff From: Kasey Humphreys, head of Analysis Date: Jan 25, 2008 Re: Advertising Expense for 2008 I am e-mailing you in response to your request that the analysis department obtain some figures regarding our advertising expenses. I am
St. John Fisher - ENGL - 212
Ian Tierson Professor Bloom English 212Branagh: Henry V and Hamlet Being as Henry V was the first of Branagh's Shakespearean films; it sets the stage for later films such as Hamlet. There are several things that carry over from one film to the othe
St. John Fisher - PHIL - 228
Ian Tierson 4/9/2008 Professor O'Brien Philosophy through Literature Final Research PaperThe development of Character through a DoppelgangerThe term doppelganger has been used in discussion of characters for a long time. The idea of an evil twin
St. John Fisher - PHYS - 113
Ian Tierson 4/9/2008 Dr. Karim Physics in Modern Technology Final Paper Hybrid CarsA recent trend of increasing gas prices has caused many american consumers to look for fuel economy as a determining factor in the vehicles they purchase. Hybrids, w
St. John Fisher - PHYS - 113
Ian Tierson 4/9/2008 Dr. Karim Physics in Modern TechnologyThe world of visual display monitors is being developed further everyday. One of the more recent and significant developments is the flat panel display. Flat panel displays are a slimmer an
St. John Fisher - PHYS - 113
Ian Tierson Dr. Karim9/11/2006 Physics in Modern TechnologyA recent trend of increasing gas prices has caused many american consumers to look for fuel economy as a determining factor in the vehicles they purchase. Hybrids, while they do inccrease
St. John Fisher - PHYS - 113
Ian Tierson 4/9/2008 Dr. Karim Navigation and TimeTime has always been a crucial factor in navigation. Today, with the modern navigational tool the GPS, or Global Positioning System, time is still utilized in delivering an accurate location on the