2 Pages

doggiebag-10

Course: CS 103, Fall 2009
School: Hudson VCC
Rating:
 
 
 
 
 

Word Count: 661

Document Preview

Daily CS103 Doggie Bag 10 The most important topics and details of the day. February 23, 2006 Topic 1. Records. In addition to variants, records are another sort of user-dened datatype in OCaml. Intuitively, records are collections of named values, very much like a struct in C/C++, except that basic record elds are immutable. Record types must be declared before they are constructed, by specifying eld names and...

Register Now

Unformatted Document Excerpt

Coursehero >> New York >> Hudson VCC >> CS 103

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.
Daily CS103 Doggie Bag 10 The most important topics and details of the day. February 23, 2006 Topic 1. Records. In addition to variants, records are another sort of user-dened datatype in OCaml. Intuitively, records are collections of named values, very much like a struct in C/C++, except that basic record elds are immutable. Record types must be declared before they are constructed, by specifying eld names and their associated types. Field values are accessed (i.e., records are deconstructed), via familiar dot notation; i.e., if r is a record, and l is a eld name in r, then r.l accesses the associated eld value. Examples: type student = { name : string; email : string; gpa : float} let bob = { name = bob; email = bob@uvm.edu; gpa = 3.2} bob.email bob@uvm.edu type rt = { a : int; b : bool } let rv = { a = 1 + 2; b = true} rv : rt rv.a : int rv.a 3 rv.a = 2 false Topic 2. Mutation and state. So far, we have considered the purely functional subset of OCaml. Now, we turn out consideration to mutable features in OCaml. Mutation is a form of side effect, where something happens behind the scenes, rather than as a direct result of evaluation. With mutable variables, what happens behind the scenes is that the store, where mutable values are saved, is changed, affecting the state of the computer. Reference cells are the most basic sort of mutable variables. All reference cells have a ref type, and may be dereferenced and updated. Reference cells are in fact memory locations, analogous to a pointer. There are three basic operations on reference cells: creation: ref v c, where c is a fresh reference cell; stores v at store location referenced by c dereferencing: !e v returns the contents of c iff e c assignment: e := e unit iff e c, and stores v in c where e v. NB: Assignment does not affect variable bindings. Also, now we see the usefulness of type unit, as the dummy result of a primarily side-effecting computation. example: let a = ref 5 a : int ref !a 5 := a 4 !a 4 a = 3 not well typed 1 Topic 3. Sequencing and evaluation order. Side effects make evaluation order really matter. For example, suppose x is a value of type int ref and suppose we perform the operations x := 1 and x := 2; the order in which we perform these operations has an effect on the evaluation of subsequent expressions such as !x + 2. Sequencing allows you to explicitly evaluate one expression before the other; an expression of the form (e1;e2) will result in the evaluation of e1 before e2. For example: let x = ref 0 in (x := 1; x := 2; !x + 2) 4 let x = ref 0 let store_and_return y = (x := y; y) store_and_return 1 1 !x 1 Note that the order of evaluation for compound expressions becomes very important. For example, the order in which operands of an addition expression are evaluated will effect the outcome of the following expression: let x = ref 0 in (x := 1; 1) + (x := 2; 1) + !x does it evaluate to 2, or to 4? Topic 4. Using mutation. Some languages are purely functional and contain no mutability. Some functional purists maintain that state is uneccessary! Indeed, it is easier to reason, via induction, about purely functional programs, and so correctn...

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:

Hudson VCC - CS - 103
CS103 Daily Doggie Bag 5The most important topics and details of the day. January 31, 2006Topic 1. Recursive functions. factorial functions: Assume the following recursive definitions of the exponentiation andlet rec expt = (fun x -> if x = 0 the
Hudson VCC - CS - 274
Abstract Graphics ProgramUser Input Model Application Program Graphics Pipeline DisplayHow does one implement a model? Algorithmic Models Polyhedral Models Quadtrees, Octrees, etc. Parametric Models (e.g., B-splines) Implicit Models (e.g., su
Hudson VCC - CS - 251
CLOS (PAIP pp. 445455)Object-oriented paradigm: data objects determine which functions (methods) are invoked. In LISP this is accomplished by the Common Lisp Object System, also known as CLOS. The function defclass denes a class of objects. For exam
Hudson VCC - CS - 265
A Digression on Probability TheoryLecture Notes for CS 265 Delivered from January 28 through February 2, 2004 Robert R. Snapp 2004MotivationIt is impossible to know every factor that concerns the performance of computer networks: Network trac
Hudson VCC - CS - 256
CS 256Neural Computation Homework #1Spring 2008 Due: 31 Jan.1. Show that a McCulloch-Pitts unit (mpu) with r excitatory inputs, s inhibitory inputs, and threshold k {0, 1, . . . , r },x1(t) xr (t) xr+1(t) xr+s(t) ympu = i=1 rky(t) x
Hudson VCC - CS - 103
CS103 Daily Doggie Bag 17The most important topics and details of the day. April 11, 2006Topic 1. Abstract syntax of D. The abstract syntax of D is obtained by extending the expr datatype with forms for conditionals, variables, functions, and Let:
Hudson VCC - CS - 202
CS202 Compiler ConstructionMarch 25, 2003CS 202-221Assignment 7Due tonight at midnight Solution class files have been postedAssignment 8Posted tomorrow Due next Tuesday at midnightToday:Canonical form IR transformation Assignment 8 over
Hudson VCC - CS - 209
administriviatodaystart with debuggingassignment 1 due todayeverybody ready? any last questions?assignment 2 out today as well start meeting with project groups todayalready met with the Johns (et al) Bobby and company after class Ron, Tom an
GWU - NSAEBB - 175
GWU - NSAEBB - 83
GWU - NSAEBB - 94
GWU - NSAEBB - 139
GWU - CS - 124
CSCI 124 and CSCI 224 - Discrete Structures II Modular Inverse Practice Problems and Solutions Find the modular inverse of the following numbers using the euclidean algorithm. You may use a calculator to compute remainders. 1. 121 mod 25 Answer: a 25
GWU - CS - 124
CSCI 124 and CSCI 224/Vora/GWU1CSCI 124/224: Discrete Structures II: Divisibility In this section, we study the divisibility of one integer by another. You should already be familiar with the basic ideas, but need to be able to prove them, using
GWU - MATH - 03
MTH 3-MV Spring 2006 Practice Problems. Do only odd problems, since the answers are in the back of the book.These problems will not be collected, and are for your own benefit and practice. It is strongly recommended that you do these problems since
GWU - MATH - 03
Fun problems to practiceTry a few problems. If you feel comfortable answering one of the questions, how about coming up to the board to present? You should really understand how to solve quadratic equations, it will make your other mathematical vent
GWU - MATH - 52
Chapter 1 Class Problems Section 1.1Math 52-10 Summer 20071. Market research indicates that consumers will buy x thousand units of a particular kind of coffee maker when the unit price is p = "0.27x + 51 dollars. The cost of producing the x thous
GWU - COURSE - 284
Twin Crises: The Causes of Banking and Balance of Payments ProblemsGraciela L. Kaminsky Department of Economics George Washington University Lecture Notes1The FactsThe 1990s witnessed an epidemic of crises, including countries as far apart a
GWU - COURSE - 284
GEORGE WASHINGTON UNIVERSITY Department of Economics International Finance: Economics 284, Spring 2008 Graciela L. Kaminsky Office: Monroe Hall 362 phone: 202- 994-6686 e-mail: graciela@gwu.edu http:/home.gwu.edu/~graciela Office Hours: Tuesdays, 2:3
GWU - COURSE - 280
GEORGE WASHINGTON UNIVERSITYEcon 280, Spring 2000 Graciela L. Kaminsky Oce Phone: (202) 994-6686 Syllabus I. Course Description The rst part of the course emphasizes macroeconomic issues and policies in an open-economy setting. It begins with the an
GWU - COURSE - 382
GEORGE WASHINGTON UNIVERSITY Department of Economics International Finance: Economics 382 Spring 2008 Graciela L. Kaminsky Office: Monroe Hall 362 phone: 202-994-6686 e-mail: graciela@gwu.edu http:/home.gwu.edu/~graciela 1. Basic Relations in the Ope
GWU - MATH - 52
Problems for Sections 3.1 through 3.3. Directions: Sketch the graph of each function, as outlined in the "How to Graph a Function f(x)" notes.x+2 x " 2x + 1 2. f (x) = x 4 + 4 x 3 + 4 x 2 1 19. f (x) = 2 3. f (x) = x 3 " 3x 4 x + x +1 6 5 4 4. f (x
GWU - MATH - 52
5.1 1. The marginal revenue derived from producing q units of a certain commodity is R"(q) = 4q #1.2q 2 dollars per unit. If the revenue derived from producing 20 units is $30,000, how much revenue should be expected from producing 40 units?!2. A
Hudson VCC - ME - 208
ME 208 Biomechanics II Assignment 3 Due Wednesday 2/27/2008Fit the experimental creep data posted on the web-page for the motion segment to a 4 parameter fluid model (e.g., Burger's model). You can use the .csv files already created and posted, or
Hudson VCC - CE - 10
Laboratory 8 - CE10 Due at beginning of your next lab period (Nov. 8th, 9th, or 10th) PART I 1) Go to one of the following web sites: a) http:/www.emba.uvm.edu/ce10/final.html b) http:/www.emba.uvm.edu/ce11/2003/groups/groups.html 2) Select FIVE proj
Hudson VCC - ME - 207
ME 207 Biomechanics I Assignment 3 Due Wednesday 9/19/2007 Read Chapter 5 of Mow & Huiskes: Structure and Function of Articular Cartilage Part 1: Assignment in handout entitled: Fracture loading models for long bones Part 2: Assignment in handout en
Hudson VCC - ME - 207
ME 207 Biomechanics I Assignment 4 Due Wednesday 9/26/2007 Read Chapter 7 of Mow & Huiskes: Structure and Function of Ligaments & Tendons Text, Capter 5, Problem 4 Problem 5 (this is a grad/bonus problem) Problem 8 Problem 9 Problem 11C:\james\cla
Hudson VCC - ME - 183
ME 183 ME Lab IV Senior Lab Fall 2005Time and Location: M W 8:00-8:50am; Room 209 Votey, Lab Sections Perkins 108: M 13:25-16:25; T 14:00-16:25; W 13:25-16:25 Instructor: JC Iatridis, 231b Votey Building, Phone: 656-2774, james.iatridis@uvm.edu T
Hudson VCC - STAT - 141
Department of Mathematics and Statistics College of Engineering and Mathematical Sciences University of Vermont STAT 141 Basic Statistical Methods-Section C Instructor Chip Cole, Ph.D. Professor of Statistics 104 Mansfield 656-4302 ccole@cems.uvm.ed
Hudson VCC - ME - 207
Neurons Neurons and electrical potentialJames IatridisReference: Enderle J, Blanchard S, Bronzino J: Biomedical Engineering, Academic Press, 2000 Human brain contains about 10^12 neurons partitioned into fewer than 1000 different types in an orga
Hudson VCC - ST - 241
STATISTICS 241 SYLLABUSSection A Spring 2009Professor: Je Buzas Oce Hours: (Room 105, Manseld House) Monday 10:00-11:00 a.m., Wednesday 2:00-3:00 p.m. and by appointment. Phone: 656-2971 Class: Tuesday and Thursday 8:30-9:45 in Waterman 419. Pleas
Hudson VCC - CS - 202
Homeworks now due on Wednesdays Will introduce on Thursdays, discuss on Tuesdays if warranted Assignment 3: Recognizer for Lake expressions; silently accepts Written problem: recursive descent or table-driven LL(1) parser OKCS 202-11precedence1
Hudson VCC - CS - 256
CS 256Neural Computation Homework #2Spring 2005 Due: Fri, Feb 181. In this exercise you will construct an interactive computer program that will use a Hopfield network to store and retrieve one dozen Valentine's Day greetings to one or more spe
Hudson VCC - CS - 256
CS 256Neural Computation Course SyllabusSpring 2005Instructor: Robert R. Snapp, 353 Votey, 656 0735, snapp@cs.uvm.edu. Oce Hours: TBA; or by appointment. Lectures: MWF, 3:35 4:25 p.m. in 367 Votey. Web Page: www.cs.uvm.edu/snapp/CS256/ Descrip
Hudson VCC - CS - 103
Continuations (pp. 111112)(define answer? (lambda (exp) (not (app? exp) (define reduce-once-appl (lambda (exp succeed fail) (variant-case exp (lit (datum) (fail) (varref (var) (fail) (lambda (formal body) (fail) (app (rator rand) (if (and (beta-rede
Hudson VCC - CS - 256
CS 256Neural Computation Course SyllabusSpring 2008Instructor: Robert R. Snapp, 353 Votey, 6560735, snapp@cs.uvm.edu. Office Hours: Tu.: 10:0011:00 a.m., Th.: 2:00 3:15 p.m., or by appointment. GTA: Zhenyu Lu, zlu@uvm.edu Lectures: T&Th, 3:30
Hudson VCC - CS - 256
CS 256 Midterm Exam #2 Instructions:Neural ComputationSpring 2005 April 29, 2005You may spend as much time working the problems as you require, but the exam is due at the beginning of class (3:35 p.m.) on Friday, April 29, 2005. This take-home
Hudson VCC - CS - 32
Hudson VCC - HCOL - 196
HCOL 196AComputers of the Future Course SyllabusSpring 2006Instructor: Robert R. Snapp, 353 Votey, 6560735, snapp@cs.uvm.edu. Office Hours: tba. Seminar: MWF, 10:10 11:00 AM in NQuad N116. Web Page: www.cs.uvm.edu/snapp/cotf/ Description: How
Hudson VCC - CS - 103
CS 103Catalog Description: Lecture Hours: Instructor: Office Hours: GTF Support: Course Web Page: Textbooks:Programming LanguagesSpring 1998Systematic treatment of principles underlying the features and implementation of programming languages.
Hudson VCC - CS - 251
CS 251Machine Intelligence Course SyllabusSpring 2001Instructor: Robert R. Snapp, 353 Votey Bldg., 656 0735, snapp@cs.uvm.edu. Ofce Hours: Tuesdat 10:0011:00 a.m., Friday 3:004:30 p.m. or by appointment. Lectures: MWF, 11:15 12:05 p.m. in 367
Hudson VCC - CS - 209
administriviamore performance tuning todayplus most of next week assignment 4 out monday next status report due wednesdaysome people had (are having) tool problemstry to start working with tool earlierany project questions?CS209-22Performa
Hudson VCC - CS - 209
administriviatodaytalk about available GUI tool support wednesday finish with testingassignment 3 due wednesdayis everyone managing to get things working?projectstatus reports due today should be making good progress now everyone needs to be
Hudson VCC - CS - 209
administriviatodaybegin GUI testing friday nish GUI testing monday spring breakassignment 3 due wednesday after break3/29 (not 3/28 as it says on the handout) any questions?project?rst status report due monday after break1CS209-19GUI T
Hudson VCC - EE - 100
HomeWork #2 Due on Sep 15 at 9:30am #Q1 Text Page 104 P2.18 #Q2 Text Page 107 P2.38
Hudson VCC - EE - 100
HomeWork #1 Due on Sep 8 at 9:30am #Q1 Text Page 41 P1.28 #Q2 Text Page 42 P1.32 #Q3 Text Page 43 P1.50 #Q4 Text Page 44 P1.57
Hudson VCC - EE - 100
HomeWork #3 Due on Sep 27 at 10:45am (NOT 9:30am). Solve at least 6 questions from the following list of questions. We will review these questions in the class on Sep 27. Although maximum points are 12 points for this homework, some questions will be
Hudson VCC - EE - 100
HomeWork #4 Due on Oct 11 (Tue) at 9:30am. (do not turn in) means that the grader does not check, thus no points are assigned. However these questions are also very useful for preparation to Midterm II. CH4.1 P4.4*The solution is of the form of Equ
Hudson VCC - EE - 100
HomeWork #2 Due on Sep 15 at 9:30am #Q1 Text Page 104 P2.18 #Q2 Text Page 107 P2.38
Hudson VCC - ASCI - 098
EQUINE ADVANCED INSTRUCTING TECHNIQUESSpring 2009 Lesson times: Section 98D, 10:00am 11:15am Tuesdays, Ellen A. Hardacre Equine Center, Beginner Section 98E, 10:00am 11:15am Thursdays, Ellen A. Hardacre Equine Center, Beginner Section 192D, 11:30a
Hudson VCC - ASCI - 098
ASCI 098 Horse Barn Cooperative Fall 2007 Prerequisites: Current Horse Barn Member Faculty: Dr. Betsy Greene 200A Terrill Hall 802-656-2108 Betsy.Greene@uvm.edu Dr. Josie Trott 206 Terrill Hall 802-656-0145 jtrott@uvm.eduTime: Class: Monday 4:40 p.
Hudson VCC - ASCI - 110
ASCI 110ANIMAL NUTRITION, METABOLISM & FEEDINGLECTURES: 11:45 12:35 M W F AIKEN 104 Lecture Instructor: Ela Zakrzewska B329 Given Email: Elzbieta.Zakrzewska@uvm.edu Phone: 656-4558 Laboratory Coordinator: Ms. Fran Kinghorn 107B Terrill Hall Email:
Hudson VCC - ASCI - 121
EQUUS ASCI 121, Spring 2009 Faculty: Dr. Jenny Wilkinson, 212 Terrill, 656-0144 (office), Jenny.Wilkinson@uvm.edu Staff: Mark Young, 500 Spear Street, 863-0205 (barn), 862-2151 (machine), mryoung@uvm.edu Office Hours: By appointment (email works well
Hudson VCC - ASCI - 220
ASCI 220 LACTATION PHYSIOLOGY - SPRING 2008INSTRUCTOR Dr. Tom McFadden, 310 McAuley, Tel: 656-0559; Email: thomas.mcfadden@uvm.edu OFFICE HOURS By appointment Text: Assigned readings and lecture notesRESOURCES Website: http:/classes.ansci.uiuc.ed
Hudson VCC - ASCI - 264
ASCI 264 Clinical Topics in Livestock Medicine 2007 Thursdays 8 to 10:45 a.m. Paul R. Miller Research Center Classroom (UVM Dairy)Instructor: Dr. Ruth Blauwiekel 116 Hills Agriculture Building ph. 656-7881 (direct) or 656-0459 (OACM office) email: d
Hudson VCC - ASCI - 110
Animal Science 110 Animal Nutrition, Metabolism, & FeedingGeneral InformationInstructor:Dr. Matt Waldron Basement, Red Cross Bldg. 32 North Prospect Street 303 McAuley Hall Phone: 656-0593 e-mail: Matthew.Waldron@uvm.edu Fran Kinghorn 307 McAule
Hudson VCC - ASCI - 115
ASCI 115: Introduction to Equine Studies Fall 2008 Course Objective: to introduce and expand students knowledge and experience in all facets of the equine industry. Faculty: Dr. Betsy Greene Terrill 204 Phone 656-2108 betsy.greene@uvm.edu Jennie Scud
Hudson VCC - ASCI - 154
DOG TRAINING AND BEHAVIOR COURSE SYLLABUS ASCI 154 Spring Semester 2008 Professor Jamie Shaw Wednesday, 6:00 to 9:00 pm MY EMAIL ADDRESS IS: vtcountrydogs@yahoo.com January 16 o Professor Expectations o Syllabus/Grading o The Training Game: How it fe
Hudson VCC - ASCI - 141
ASCI 141 Anatomy and Physiology of Domestic AnimalsFall Semester, 2008 Instructors: Dr. David Kerr Associate Professor Terrill Hall #213 david.kerr@uvm.eduDr. Ruth Blauwiekel University Veterinarian Hills #116 DrRuth@uvm.eduTeaching Assistants:
Hudson VCC - ASCI - 121
EQUUS ASCI 121, Fall 2007 Note: Bold type indicates material is due August 30 Introduction. Explanation of course requirements and responsibilities. Explain cooperative barn relationship. Tour of facilities. Identification of horses and barn members.
Hudson VCC - ASCI - 098
ASCI 098 Horse Barn Cooperative Spring 2009 Prerequisites: Faculty: Current Horse Barn Member Dr. Jenny Wilkinson, 212 Terrill 656-0144 (office), 881-9901 (cell), 891-4903 (home) Jenny.Wilkinson@uvm.edu Mondays 4:40-5:30pm at Ellen A Hardacre. Barn M