1 Page

q3-soln

Course: CS 490, Fall 2009
School: Hendrix
Rating:
 
 
 
 
 

Word Count: 423

Document Preview

CSci Solutions, 490, Spring 2005, Quiz 3 1. Curved surfaces are most easily represented in most systems with a polygon approximation, but rendering the polygon surfaces shows sharp shading differences if the polygons are relatively large, destroying the illusion of curves. Gouraud shading strives to smooth out the shading by interpolating the color of each pixel based on the colors computed for the various...

Register Now

Unformatted Document Excerpt

Coursehero >> Arkansas >> Hendrix >> CS 490

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.
CSci Solutions, 490, Spring 2005, Quiz 3 1. Curved surfaces are most easily represented in most systems with a polygon approximation, but rendering the polygon surfaces shows sharp shading differences if the polygons are relatively large, destroying the illusion of curves. Gouraud shading strives to smooth out the shading by interpolating the color of each pixel based on the colors computed for the various vertices of each polygon. 2. For each row of the image, we select one of ve formats: Raw data, offset of pixel color relative to pixel to the left, offset of pixel color relative to pixel above, offset of pixel relative to average of the pixel to the left and pixel above, and offset relative to the complex Paeth prediction formula After choosing the format, we apply standard text compression to the resulting numbers. 3. The two major ones that I emphasized in class were reection off of rough surfaces or refraction through transluscent surfaces. Also, Monte Carlo path tracing automatically estimates secondary reections (i.e., surfaces receive illumination from light bouncing off of other surfaces), whereas standard ray tracing cannot handle this directly. 4. P2 P1 P3 P0 The important point here is that a natural cubic spline will go through all of the control points. 5. A straightforward detection collision system would need to check each object against all other object to see whether it collides with any of them. This is a O(n 2 ) approach. With the objects stored within an octtree, we would only need to check for collisions between objects intersecting the same cube of the octtree; as a result, the amount of time taken is likely to be closer to O(n). 6. The le dialog study addressed placement of components within the dialog box, showing that placing them along a line in the order they will be used leads to faster usage. The BellSouth study addressed reporting data in a narrative format versus a more structured summary format. It found that the more structured summary permitted testers to view problems with the instruments more readil...

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:

Hendrix - CS - 490
Solutions, Quiz 1, CSci 490, Spring 20051. 100 pixels. [The projection of the wall onto the screen would be 1/2 a foot, since the distance:height ratio would be the same both for the wall (40:10) and for the projection of the wall onto the screen (2
Hendrix - CS - 490
CSci 490, Spring 2005, Quiz 1Name: 1. [6 pts] Suppose we are performing a perspective projection onto a vertical screen one foot square which is one foot away from the eye. Eighty feet away in the same direction, there is a wall ten feet high. If th
Hendrix - CS - 490
Questions 1 Question Q21: (Solution, p 2) What is the motivation behind generalizing homogeneous coordinates to allow the last entry to be other than 1? Question Q22: (Solution, p 2) Explain the concept of Gouraud shading. Question Q23: (Solution, p
Hendrix - ASSN - 490
CSci 490, Spring 2005, Assignment 1This assignment, worth 40 points, is due at 3pm, Friday, January 28. Submit it by attaching your modied les to an e-mail to cburch@cburch.com. This assignment involves writing two important pieces to a rather sophi
Hendrix - ASSN - 490
CSci 490, Spring 2005, Assignment 3This assignment, worth 30 points, is due at 3pm, Friday, February 11. Submit it by attaching your modied les to an e-mail to cburch@cburch.com. From the Web page you can download a set of Java classes that implemen
Hendrix - ASSN - 490
CSci 490, Spring 2005, Assignment 6This assignment, worth 40 points, is due at 3pm, Friday, April 8. Submit it by attaching your modied les to an e-mail to cburch@cburch.com. You can download the base code from the course Web page, which implements
Hendrix - ASSN - 6
CSci 490, Spring 2005, Assignment 6This assignment, worth 40 points, is due at 3pm, Friday, April 8. Submit it by attaching your modied les to an e-mail to cburch@cburch.com. You can download the base code from the course Web page, which implements
Hendrix - CS - 360
CSci 360, Fall 2004, Assignment 9This assignment, worth 40 points, is due Wednesday, November 10, at the beginning of class. You should submit a paper copy of your lambda expressions to my ofce or at the beginning of class. For this assignment, I re
Hendrix - CS - 280
CSci 280, Spring 2009, Exam 1This take-home exam is due Friday, February 13, at 4pm. You should submit your solution on paper, either handwritten or typed. E-mailed solutions will not be accepted. Answer only four of the following ve problems. If yo
Hendrix - CS - 210
Questions 1 Question 8.11: (Solution, p 3) Name at least two generic purposes of an operating system. Question 8.12: (Solution, p 3) One way of receiving a response from a device is to poll it periodically about whether it has any additional informat
Hendrix - CS - 210
CSCI 210 Assn. 5: Caching effectsLab note: You may work with up to one other person on this assignment and submit your solution together, or you may work alone. The write-up is due at 5:00pm on Friday, April 30. It is worth 40 points.ObjectivesA
Hendrix - CS - 210
Questions 1 Question 131: (Solution, p 4) Describe the inputs and outputs of a (1-way) they relate.Question 132: (Solution, p 4) In implementing HYMNs control unit, the fetch cycle and the execute cycle each consisted of two clock phases: one phase
Hendrix - CS - 210
Solutions, Quiz 4, CSCI 210, Spring 20041. When skip is 16,384, each access to arr[i] in the inner loop maps to the same set of cache lines, the lines accessed at the beginning of the inner loop will be dropped from the cache as the inner loop conti
Hendrix - CS - 210
Questions 1 Question 7.31: (Solution, p 2) Describe the contents of the object le that is created by the compiler and subsequently given to the linker. Question 7.32: (Solution, p 2) Describe two advantages of dynamic linking (load-time or run-time)
Hendrix - CS - 210
Questions 1 Question 10.21: (Solution, p 5) Dene the following terms as they relate to processes and threads. a. race b. deadlockQuestion 10.22: (Solution, p 5) At right is a class for representing a long-term computation. It attempts to implement
Hendrix - CS - 210
Quiz 4, CSCI 210, Spring 2004Name: 1. [10 pts] Tests on an Intel Pentium III processor reveal that the performance of the code at right depends heavily on the value of skip. skip 16,352 16,384 time 40 ms 480 msSurprisingly, with a larger value of
Hendrix - CS - 210
Questions 1 Question 6.41: (Solution, p 4) In class, we examined an alternative to using a stack for supporting subroutines, where each subroutine would have its own static memory locations for remembering data. For example, consider the following sq
Hendrix - CS - 210
Lab 8: ThreadsObjectivesto gain experience using threads in a program. to understand competitive and cooperative synchronization.You can run getcs to get a minimal template for this assignment, called PrimeCount.java. Write a Java program that
Hendrix - CS - 210
Lab 6: System callsObjectivesTo become more familiar with the Intel x86 assembly language. To practice the use of interrupts for initiating system calls to Linux. To learn about how parameters typed on a command line are given to a program unde
Hendrix - CS - 210
Quiz 3, CSCI 210, Spring 2004Name: 1. [8 pts] At right, complete the Java program so that it runs two threads. One thread should execute the following code to continually update. totalfor(int i = 1; true; i+) total += i; public class Counter extend
Hendrix - CS - 210
Final, CSCI 210, Spring 2004Name: 1. [5 pts] How many bits does a kilobyte contain? 2. [7 pts] Approximate in the form need not be normalized.) 3. [8 pts] In the following function, you can assume that place is a power of two. Complete the functi
Hendrix - CS - 150
Questions1Question Seq1: (Solution, p 2) Tabulate how the circuit at right changes as the input the inputs at left. 0 1 0 1 0 1 0 1 0 1 DQ QQ1 Q0DQ Qck ! ! ! Question Seq2: (Solution, p 2) Design a ci
Hendrix - CS - 150
Questions1Question J81: (Solution, p 3) Explain the difference between using an instance method in a Java program and using a class method. Question J82: (Solution, p 3) Suppose we were to execute the method . for the at right passing array param
Hendrix - CS - 210
Solutions, Final, CSCI 210, Spring 20041. 2.3. return (number & place) != 0; 4.5 7 7 76.This loop has a common subexpression of 10 * n. We can save time by computing we enter the loop, and reusing this result each iteration.int ten_times_n =
Hendrix - CS - 340
Chapter 1Object-oriented featuresThe compilers job for a procedural language like C is relatively straightforward, because C and most other compiled procedural languages have been designed to approximate what the computer does. Other language para
Muskingum - FREN - 04
Muskingum College Modern Language DepartmentSENIOR SEMINAR RESEARCH PRESENTATIONS IN FRENCH Fall, 2004Dec. 1 6:00 PM 125 BoydSenior Seminar ResearchAll Muskingum language majors complete a senior seminar capstone research project in which they
Muskingum - SEMSPN - 04
Keara Baker Spanish Capstone Seminar Abstract Images of Spanish Women in the Novels El cuarto de atrs and El embrujo de ShanghaiThe topic that I chose to study was the role of women and how each individual woman is viewed in the two contemporary Spa
Muskingum - SEMSPN - 04
Beth Lawson Spanish Capstone Seminar Abstract The Influences that Inspired the Themes of Carmen Martn Gaite and Juan MarsMy Senior Seminar will discuss the works of two authors that grew up in Spain during the civil war, and as a result experienced
Muskingum - SEMSPN - 04
Annabeth Cohen Spanish Capstone Seminar Abstract Ekphrasis and its Application to the Novels El cuarto de atrs by Carmen Martn Gaite and El embrujo de Shanghai by Juan MarsEkphrasis, an element of literature, is the relation between words and images
Muskingum - SEMSPN - 04
Adam Milazzotto Spanish Capstone Seminar Abstract History and Myth in the Novels El embrujo de Shanghai and El cuarto de atrasThis final project for the Spanish Seminar class of Fall 2004 is based upon two contemporary Spanish novels: El embrujo de
Muskingum - SEMSPN - 04
Ryan Hurley-Niezgoda Spanish Capstone Seminar Abstract The Influence of Memory on Intertextuality in the Novels El cuarto de atrs and El embrujo de ShanghaiThe term intertextuality is used to describe how a given text relates to other texts. It is t
Muskingum - SENSEM - 06
Muskingum College Modern Language Department SENIOR SEMINAR RESEARCH PRESENTATION in GERMAN Spring 2006 April 18 6: 00 PM 105 BoydSenior Seminar Research All Muskingum language majors complete a senior seminar capstone research project in which they
Muskingum - MASTERPIEC - 2000
MUSKINGUM COLLEGE Dept. of Modern Languages Dr. Franz-J. Wehage, BSC 227 Office Ph: 826-8301Office hours: MWF 10:30; 12:30; MWF 2:30E-mail:wehage@muskingum.edu German 123 / Masterpieces of German Literature in English Translation. W riting Unit Fa
Muskingum - M - 370
Muskingum - M - 150
Chapter 1Section 1.2 Symbolic LogicSentences vs Statements A truth value is one of two words either true (T) or false (F). A statement is a particular type of sentence whose truth value can always be determined. This means it is always possible by
Muskingum - ACCT - 420
Core Concepts ofACCOUNTING INFORMATION SYSTEMSMoscove, Simkin & BagranoffChapter 2 Documenting Accounting Information Systems Introduction Why Documentation Is Important Document and Systems Flowcharts Data Flow Diagrams Other Documentatio
Hendrix - CS - 150
Questions1Question 3.23: (Solution, p 2) What is the smallest (most negative) number you can represent in twelve bits using sign-magnitude representation? In twos-complement representation? Give both the bit pattern of the number and its decimal
Hendrix - CS - 210
Exam 1, CSCI 210, Spring 2004Name: 1. [10 pts] How would the behavior of the following two Unix shell commands differ?unix% grep open f > wc unix% grep open f | wc2. [5 pts] Suppose we are using an 7-bit oating-point representation with 3 bits fo
Hendrix - CS - 210
Exam 0, CSCI 210, Spring 2004Name: 1. [10 pts] Suppose we have a le called words, which contains the words of the English language, one per line, in random order. Give a Unix command that would display the rst word alphabetically in the English lang
Hendrix - CS - 150
Questions1Question 4.11: (Solution, p 4) Draw two truth tables illustrating the outputs of a half-adder, one table for the output and the other for the output. Question 4.12: (Solution, p 4) Fill in the truth table at right for the following circ
Hendrix - CS - 340
CSci 340, Spring 2003, Assignment 6This assignment is due Friday, May 2, at 4:00pm. You should submit your solution both electronically (using handincs 340 6) and to my ofce (using paper). Your job in this assignment is to write a program that reads
Hendrix - CS - 340
CSci 340, Spring 2003, Assignment 2This assignment is due Friday, February 21 at 5:00pm. You should submit to my ofce a paper copy of the class declaration and methods developed for this assignment. You can transfer text from Squeaks System Browser
Muskingum - ERIC - 07
Basin Research (2007) 19, 5166, doi: 10.1111/j.1365-2117.2007.00318.xOrigin of early overpressure in the Upper Devonian Catskill Delta Complex, western NewYork stateGary G. Lash n and David R. BloodwnDepartment of Geosciences, State University
Muskingum - ERIC - 07
Int J Earth Sci (Geol Rundsch) (2005) 94: 956978 DOI 10.1007/s00531-005-0014-1O R I GI N A L P A P E RH. Broichhausen R. Littke T. HantschelMudstone compaction and its inuence on overpressure generation, elucidated by a 3D case study in the N
Muskingum - ERIC - 07
Plant and Soil 234: 99108, 2001. 2001 Kluwer Academic Publishers. Printed in the Netherlands.99Development of ectomycorrhizas in model beechspruce ecosystems on siliceous and calcareous soil: a 4-year experiment with atmospheric CO2 enrichment a
Muskingum - ERIC - 07
Forest Ecology and Management 223 (2006) 403414 www.elsevier.com/locate/forecoEffects of silvicultural treatments on survival and growth of trees planted on reclaimed mine lands in the AppalachiansChad N. Casselman a,1, Thomas R. Fox a,*, James A.
Muskingum - ERIC - 07
LAND DEGRADATION & DEVELOPMENT Land Degrad. Develop. 9, 115121 (1998)PHOSPHORUS: A LIMITING FACTOR FOR RESTORATION OF SOIL FERTILITY IN A NEWLY RECLAIMED COAL MINED SITE IN XUZHOU, CHINAH. CHEN, C. ZHENG AND Y. ZHUInstitute of Soil Science, Chine
Muskingum - ERIC - 07
Ecological Modelling 114 (1999) 275 286Numerical modelling of biostabilisation for a coal mine overburden dump slopeS.K. Chaulya a, R.S. Singh a, M.K. Chakraborty a, B.B Dhar b,*b a Scientists, En6ironmental Management Group, Central Mining Rese
Muskingum - ERIC - 07
Geomorphology 39 2001. 151169 www.elsevier.nlrlocatergeomorphMacropore flow on a reclaimed surface mine: infiltration and hillslope hydrologyMichael D. Guebert a,1, Thomas W. Gardner b,)aDepartment of Enironmental Science, Taylor Uniersity, 500
Hendrix - ASSN - 360
CSci 360, Fall 2004, Assignment 4This assignment, worth 35 points, is due Friday, October 1, at 5:00pm. To submit, attach your nal solution (as described below) to an e-mail sent to cburch@cburch.com. Your job in this project is to implement an expr
Hendrix - CS - 360
Solutions, Quiz 2, CSCI 360, Fall 20041. The order of the methods listed in a classs VMT must be xed, since the VMTs for all subclasses must follow this order at the beginning of their VMTs. Smalltalk, however, allows the programmer to add and remov
Hendrix - CS - 360
Solutions, Quiz 3, CSCI 360, Fall 20041. f.g.(x.f (g : x) [The parentheses are unnecessary here, but they make the intention clearer.] 2. (a.b.c.a c c) (d.e.d e) (2 3) (5 8) (b.c.(d.e.d e) c c) (2 3) (5 8) (c.(d.e.d e) c c) (5 8) (d.e.d
Hendrix - CS - 360
CSCI 360, Fall 2004Survey of programming languages www.cburch.com/cs/360/Instructor: E-mail: Telephone: Ofce: Hours: Dr Carl Burch burch@grendel.hendrix.edu 4501377 (ofce); 5486135 (home) M. C. Reynolds 310 M 10a-11a, T 3p-4p, W 3p-4p, F 10a-11a dr
Hendrix - CS - 360
CSci 360, Fall 2004, Assignment 3This assignment is worth 25 points. Your solutions to this assignment (which may be typed or handwritten) are due at the beginning of class Friday, September 17. Note that your solution will be considered late if you
Hendrix - CS - 360
Questions 1 Question 11.11: (Solution, p 6) Suppose we are writing a Web server. Explain how threads would be useful for our program, and describe why they are useful in this context.Question 11.12: (Solution, p 6) Name and explain two reasons that
Hendrix - CS - 360
Quiz 3, CSCI 360, Fall 2004Name: 1. [7 pts] Give a lambda expression representing the composition function. That is, the function represented by your expression should take two functions f and g as arguments and return the composition of the two fun
Hendrix - CS - 360
Solutions, Final, CSCI 360, Fall 20041. public class Deadlock {Thread a; Thread b; public void runA() { synchronized(a) { synchronized(b) { System.out.println("Im A"); } } } public void runB() { synchronized(b) { synchronized(a) { System.out.printl
Hendrix - CS - 360
Solutions, Midterm, CSCI 360, Fall 20041. T := b S c | 2. X := x X | x 3. A N and N<C S := X + S | X S := a S c | T4. It allows more exibility to the programmer, so that variables can mean different things at different times. Also, the code te
Hendrix - CS - 360
CSci 360, Fall 2004, Assignment 2This assignment is worth 20 points. Your solutions to this assignment (which may be typed or handwritten) are due at the beginning of class Friday, September 10. Note that your solution will be considered late if you
Hendrix - CS - 360
Final, CSCI 360, Fall 2004Name: 1. [10 pts] For the Java program at right, suppose we have two threads, a and b, where a executes the runA method and b executes the runB method. Give an example of code for runA and runB which could result in deadloc