20 Pages

LISP-tutorial

Course: CS 450, Fall 2009
School: Kentucky
Rating:
 
 
 
 
 

Word Count: 4844

Document Preview

Common <pre> LISP Hints Geoffrey J. Gordon <ggordon@cs.cmu.edu> Friday, February 5, 1993 Modified by Bruno Haible <haible@ma2s2.mathematik.uni-karlsruhe.de> Note: This tutorial introduction to Common...

Register Now

Unformatted Document Excerpt

Coursehero >> Kentucky >> Kentucky >> CS 450

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.
Common <pre> LISP Hints Geoffrey J. Gordon <ggordon@cs.cmu.edu> Friday, February 5, 1993 Modified by Bruno Haible <haible@ma2s2.mathematik.uni-karlsruhe.de> Note: This tutorial introduction to Common Lisp was written for the CMU environment, so some of the details of running lisp toward the end may differ from site to site. Further Information The best LISP textbook I know of is Guy L. Steele Jr. _Common LISP: the Language_. Digital Press. 1984. The first edition is easier to read; the second describes a more recent standard. (The differences between the two standards shouldn't affect casual programmers.) A book by Dave Touretsky has also been recommended to me, although I haven't read it, so I can't say anything about it. Symbols A symbol is just a string of characters. There are restrictions on what you can include in a symbol and what the first character can be, but as long as you stick to letters, digits, and hyphens, you'll be safe. (Except that if you use only digits and possibly an initial hyphen, LISP will think you typed an integer rather than a symbol.) Some examples of symbols: a b c1 foo bar baaz-quux-garply Some things you can do with symbols follow. (Things after a ">" prompt are what you type to the LISP interpreter, while other things are what the LISP interpreter prints back to you. The ";" is LISP's comment character: everything from a ";" to the end of line is ignored.) > (setq a 5) ;store a number as the value of a symbol 5 > a ;take the value of a symbol 5 > (let ((a 6)) a) ;bind the value of a symbol temporarily to 6 6 > a ;the value returns to 5 once the let is finished 5 > (+ a 6) ;use the value of a symbol as an argument to a function 11 > b ;try to take the value of a symbol which has no value Error: Attempt to take the value of the unbound symbol B There are two special symbols, t and nil. The value of t is defined always to be t, and the value of nil is defined always to be nil. LISP uses t and nil to represent true and false. An example of this use is in the if statement, described more fully later: > (if t 5 6) 5 > (if nil 5 6) 6 > (if 4 5 6) 5 The last example is odd but correct: nil means false, and anything else means true. (Unless we have a reason to do otherwise, we use t to mean true, just for the sake of clarity.) Symbols like t and nil are called self-evaluating symbols, because they evaluate to themselves. There is a whole class of self-evaluating symbols called keywords; any symbol whose name starts with a colon is a keyword. (See below for some uses for keywords.) Some examples: > :this-is-a-keyword :THIS-IS-A-KEYWORD > :so-is-this :SO-IS-THIS > :me-too :ME-TOO Numbers An integer is a string of digits optionally preceded by + or -. A real number looks like an integer, except that it has a decimal point and optionally can be written in scientific notation. A rational looks like two integers with a / between them. LISP supports complex numbers, which are written #c(r i) (where r is the real part and i is the imaginary part). A number is any of the above. Here are some numbers: 5 17 -34 +6 3.1415 1.722e-15 #c(1.722e-15 0.75) The standard arithmetic functions are all available: +, -, *, /, floor, ceiling, mod, sin, cos, tan, sqrt, exp, expt, and so forth. All of them accept any kind of number as an argument. +, -, *, and / return a number according to type contagion: an integer plus a rational is a rational, a rational plus a real is a real, and a real plus a complex is a complex. Here are some examples: > (+ 3 3/4) ;type contagion 15/4 > (exp 1) ;e 2.7182817 > (exp 3) ;e*e*e 20.085537 > (expt 3 4.2) ;exponent with a base other than e 100.90418 > (+ 5 6 7 (* 8 9 10)) ;the fns +-*/ all accept multiple arguments There is no limit to the absolute value of an integer except the memory size of your computer. Be warned that computations with bignums (as large integers are called) can be slow. (So can computations with rationals, especially compared to the corresponding computations with small integers or floats.) Conses A cons is just a two-field record. The fields are called "car" and "cdr", for historical reasons. (On the first machine where LISP was implemented, there were two instructions CAR and CDR which stood for "contents of address register" and "contents of decrement register". Conses were implemented using these two registers.) Conses are easy to use: > (cons 4 5) ;Allocate a cons. Set the car to 4 and the cdr to 5. (4 . 5) > (cons (cons 4 5) 6) ((4 . 5) . 6) > (car (cons 4 5)) 4 > (cdr (cons 4 5)) 5 Lists You can build many structures out of conses. Perhaps the simplest is a linked list: the car of each cons points to one of the elements of the list, and the cdr points either to another cons or to nil. You can create such a linked list with the list fuction: > (list 4 5 6) (4 5 6) Notice that LISP prints linked lists a special way: it omits some of the periods and parentheses. The rule is: if the cdr of a cons is nil, LISP doesn't bother to print the period or the nil; and if the cdr of cons A is cons B, then LISP doesn't bother to print the period for cons A or the parentheses for cons B. So: > (cons 4 nil) (4) > (cons 4 (cons 5 6)) (4 5 . 6) > (cons 4 (cons 5 (cons 6 nil))) (4 5 6) The last example is exactly equivalent to the call (list 4 5 6). Note that nil now means the list with no elements: the cdr of (a b), a list with 2 elements, is (b), a list with 1 element; and the cdr of (b), a list with 1 element, is nil, which therefore must be a list with no elements. The car and cdr of nil are defined to be nil. If you store your list in a variable, you can make it act like a stack: > (setq a nil) NIL > (push 4 a) (4) > (push 5 a) (5 4) > (pop a) 5 > a (4) > (pop a) 4 > (pop a) NIL > a NIL Functions You saw one example of a function above. Here are some more: > (+ 3 4 5 6) ;this function takes any number of arguments 18 > (+ (+ 3 4) (+ (+ 4 5) 6)) ;isn't prefix notation fun? 22 > (defun foo (x y) (+ x y 5)) ;defining a function FOO > (foo 5 0) ;calling a function 10 > (defun fact (x) ;a recursive function (if (> x 0) (* x (fact (- x 1))) 1 ) ) FACT > (fact 5) 120 > (defun a (x) (if (= x 0) t (b (- x)))) ;mutually recursive functions A > (defun b (x) (if (> x 0) (a (- x 1)) (a (+ x 1)))) B > (a 5) T > (defun bar (x) ;a function with multiple statements in (setq x (* x 3)) ;its body -- it will return the value (setq x (/ x 2)) ;returned by its final statement (+ x 4) ) BAR > (bar 6) 13 When we defined foo, we gave it two arguments, x and y. Now when we call foo, we are required to provide exactly two arguments: the first will become the value of x for the duration of the call to foo, and the second will become the value of y for the duration of the call. In LISP, most variables are lexically scoped; that is, if foo calls bar and bar tries to reference x, bar will not get foo's value for x. The process of assigning a symbol a value for the duration of some lexical scope is called binding. You can specify optional arguments for your functions. Any argument after the symbol &optional is optional: > (defun bar (x &optional y) (if y x 0)) BAR > (defun baaz (&optional (x 3) (z 10)) (+ x z)) BAAZ > (bar 5) 0 > (bar 5 t) 5 > (baaz 5) 15 > (baaz 5 6) 11 > (baaz) 13 It is legal to call the function bar with either one or two arguments. If it is called with one argument, x will be bound to the value of that argument and y will be bound to nil; if it is called with two arguments, x and y will be bound to the values of the first and second argument, respectively. The function baaz has two optional arguments. It specifies a default value for each of them: if the caller specifies only one argument, z will be bound to 10 instead of to nil, and if the caller specifies no arguments, x will be bound to 3 and z to 10. You can make your function accept any number of arguments by ending its argument list with an &rest parameter. LISP will collect all arguments not otherwise accounted for into a list and bind the &rest parameter to that list. So: > (defun foo (x &rest y) y) FOO > (foo 3) NIL > (foo 4 5 6) (5 6) Finally, you can give your function another kind of optional argument called a keyword argument. The caller can give these arguments in any order, because they're labelled with keywords. > (defun foo (&key x y) (cons x y)) FOO > (foo :x 5 :y 3) (5 . 3) > (foo :y 3 :x 5) (5 . 3) > (foo :y 3) (NIL . 3) > (foo) (NIL) An &key parameter can have a default value too: > (defun foo (&key (x 5)) x) FOO > (foo :x 7) 7 > (foo) 5 Printing Some functions can cause output. The simplest one is print, which prints its argument and then returns it. > (print 3) 3 3 The first 3 above was printed, the second was returned. If you want more complicated output, you will need to use format. Here's an example: > (format t "An atom: ~S~%and a list: ~S~%and an integer: ~D~%" nil (list 5) 6) An atom: NIL and a list: (5) and an integer: 6 The first argument to format is either t, nil, or a stream. T specifies output to the terminal. Nil means not to print anything but to return a string containing the output instead. Streams are general places for output to go: they can specify a file, or the terminal, or another program. This handout will not describe streams in any further detail. The second argument is a formatting template, which is a string optionally containing formatting directives. All remaining arguments may be referred to by the formatting directives. LISP will replace the directives with some appropriate characters based on the arguments to which they refer and then print the resulting string. Format always returns nil unless its first argument is nil, in which case it prints nothing and returns a string. There are three different directives in the above example: ~S, ~D, and ~%. The first one accepts any LISP object and is replaced by a printed representation of that object (the same representation which is produced by print). The second one accepts only integers. The third one doesn't refer to an argument; it is always replaced by a carriage return. Another useful directive is ~~, which is replaced by a single ~. Refer to a LISP manual for (many, many) additional formatting directives. Forms and the Top-Level Loop The things which you type to the LISP interpreter are called forms; the LISP interpreter repeatedly reads a form, evaluates it, and prints the result. This procedure is called the read-eval-print loop. Some forms will cause errors. After an error, LISP will put you into the debugger so you can try to figure out what caused the error. LISP debuggers are all different; but most will respond to the command "help" or ":help" by giving some form of help. In general, a form is either an atom (for example, a symbol, an integer, or a string) or a list. If the form is an atom, LISP evaluates it immediately. Symbols evaluate to their value; integers and strings evaluate to themselves. If the form is a list, LISP treats its first element as the name of a function; it evaluates the remaining elements recursively, and then calls the function with the values of the remaining elements as arguments. For example, if LISP sees the form (+ 3 4), it treats + as the name of a function. It then evaluates 3 to get 3 and 4 to get 4; finally it calls + with 3 and 4 as the arguments. The + function returns 7, which LISP prints. The top-level loop provides some other conveniences; one particularly convenient convenience is the ability to talk about the results of previously typed forms. LISP always saves its most recent three results; it stores them as the values of the symbols *, **, and ***. For example: > 3 3 > 4 4 > 5 5 > *** 3 > *** 4 > *** 5 > ** 4 > * 4 Special forms There are a number of special forms which look like function calls but aren't. These include control constructs such as if statements and do loops; assignments like setq, setf, push, and pop; definitions such as defun and defstruct; and binding constructs such as let. (Not all of these special forms have been mentioned yet. See below.) One useful special form is the quote form: quote prevents its argument from being evaluated. For example: > (setq a 3) 3 > a 3 > (quote a) A > 'a ;'a is an abbreviation for (quote a) A Another similar special form is the function form: function causes its argument to be interpreted as a function rather than being evaluated. For example: > (setq + 3) 3 > + 3 > '+ + > (function +) #<Function + @ #x-fbef9de> > #'+ ;#'+ is an abbreviation for (function +) #<Function + @ #x-fbef9de> The function special form is useful when you want to pass a function as an argument to another function. See below for some examples of functions which take functions as arguments. Binding Binding is lexically scoped assignment. It happens to the variables in a function's parameter list whenever the function is called: the formal parameters are bound to the actual parameters for the duration of the function call. You can bind variables anywhere in a program with the let special form, which looks like this: (let ((var1 val1) (var2 val2) ... ) body ) Let binds var1 to val1, var2 to val2, and so forth; then it executes the statements in its body. The body of a let follows exactly the same rules that a function body does. Some examples: > (let ((a 3)) (+ a 1)) 4 > (let ((a 2) (b 3) (c 0)) (setq c (+ a b)) c ) 5 > (setq c 4) 4 > (let ((c 5)) c) 5 > c 4 Instead of (let ((a nil) (b nil)) ...), you can write (let (a b) ...). The val1, val2, etc. inside a let cannot reference the variables var1, var2, etc. that the let is binding. For example, > (let ((x 1) (y (+ x 1))) y ) Error: Attempt to take the value of the unbound symbol X If the symbol x already has a global value, stranger happenings will result: > (setq x 7) 7 > (let ((x 1) (y (+ x 1))) y ) 8 The let* special form is just like let except that it allows values to reference variables defined earlier in the let*. For example, > (setq x 7) 7 > (let* ((x 1) (y (+ x 1))) y ) 2 The form (let* ((x a) (y b)) ... ) is equivalent to (let ((x a)) (let ((y b)) ... ) ) Dynamic Scoping The let and let* forms provide lexical scoping, which is what you expect if you're used to programming in C or Pascal. Dynamic scoping is what you get in BASIC: if you assign a value to a dynamically every scoped variable, mention of that variable returns that value until you assign another value to the same variable. In LISP, dynamically scoped variables are called special variables. You can declare a special variable with the defvar special form. Here are some examples of lexically and dynamically scoped variables. In this example, the function check-regular references a regular (ie, lexically scoped) variable. Since check-regular is lexically outside of the let which binds regular, check-regular returns the variable's global value. > (setq regular 5) 5 > (defun check-regular () regular) CHECK-REGULAR > (check-regular) 5 > (let ((regular 6)) (check-regular)) 5 In this example, the function check-special references a special (ie, dynamically scoped) variable. Since the call to check-special is temporally inside of the let which binds special, check-special returns the variable's local value. > (defvar *special* 5) *SPECIAL* > (defun check-special () *special*) CHECK-SPECIAL > (check-special) 5 > (let ((*special* 6)) (check-special)) 6 By convention, the name of a special variable begins and ends with a *. Special variables are chiefly used as global variables, since programmers usually expect lexical scoping for local variables and dynamic scoping for global variables. For more information on the difference between lexical and dynamic scoping, see _Common LISP: the Language_. Arrays The function make-array makes an array. The aref function accesses its elements. All elements of an array are initially set to nil. For example: > (make-array '(3 3)) #2a((NIL NIL NIL) (NIL NIL NIL) (NIL NIL NIL)) > (aref * 1 1) NIL > (make-array 4) ;1D arrays don't need the extra parens #(NIL NIL NIL NIL) Array indices always start at 0. See below for how to set the elements of an array. Strings A string is a sequence of characters between double quotes. LISP represents a string as a variable-length array of characters. You can write a string which contains a double quote by preceding the quote with a backslash; a double backslash stands for a single backslash. For example: "abcd" has 4 characters "\"" has 1 character "\\" has 1 character Here are some functions for dealing with strings: > (concatenate 'string "abcd" "efg") "abcdefg" > (char "abc" 1) #\b ;LISP writes characters preceded by #\ > (aref "abc" 1) #\b ;remember, strings are really arrays The concatenate function can actually work with any type of sequence: > (concatenate 'string '(#\a #\b) '(#\c)) "abc" > (concatenate 'list "abc" "de") (#\a #\b #\c #\d #\e) > (concatenate 'vector '#(3 3 3) '#(3 3 3)) #(3 3 3 3 3 3) Structures LISP structures are analogous to C structs or Pascal records. Here is an example: > (defstruct foo bar baaz quux ) FOO This example defines a data type called foo which is a structure containing 3 fields. It also defines 4 functions which operate on this data type: make-foo, foo-bar, foo-baaz, and foo-quux. The first one makes a new object of type foo; the others access the fields of an object of type foo. Here is how to use these functions: > (make-foo) #s(FOO :BAR NIL :BAAZ NIL :QUUX NIL) > (make-foo :baaz 3) #s(FOO :BAR NIL :BAAZ 3 :QUUX NIL) > (foo-bar *) NIL > (foo-baaz **) 3 The make-foo function can take a keyword argument for each of the fields a structure of type foo can have. The field access functions each take one argument, a structure of type foo, and return the appropriate field. See below for how to set the fields of a structure. Setf Certain forms in LISP naturally define a memory location. For example, if the value of x is a structure of type foo, then (foo-bar x) defines the bar field of the value of x. Or, if the value of y is a one- dimensional array, (aref y 2) defines the third element of y. The setf special form uses its first argument to define a place in memory, evaluates its second argument, and stores the resulting value in the resulting memory location. For example, > (setq a (make-array 3)) #(NIL NIL NIL) > (aref a 1) NIL > (setf (aref a 1) 3) 3 > a #(NIL 3 NIL) > (aref a 1) 3 > (defstruct foo bar) FOO > (setq a (make-foo)) #s(FOO :BAR NIL) > (foo-bar a) NIL > (setf (foo-bar a) 3) 3 > a #s(FOO :BAR 3) > (foo-bar a) 3 Setf is the only way to set the fields of a structure or the elements of an array. Here are some more examples of setf and related functions. > (setf a (make-array 1)) ;setf on a variable is equivalent to setq #(NIL) > (push 5 (aref a 1)) ;push can act like setf (5) > (pop (aref a 1)) ;so can pop 5 > (setf (aref a 1) 5) 5 > (incf (aref a 1)) ;incf reads from a place, increments, 6 ;and writes back > (aref a 1) 6 Booleans and Conditionals LISP uses the self-evaluating symbol nil to mean false. Anything other than nil means true. Unless we have a reason not to, we usually use the self-evaluating symbol t to stand for true. LISP provides a standard set of logical functions, for example and, or, and not. The and and or connectives are short-circuiting: and will not evaluate any arguments to the right of the first one which evaluates to nil, while or will not evaluate any arguments to the right of the first one which evaluates to t. LISP also provides several special forms for conditional execution. The simplest of these is if. The first argument of if determines whether the second or third argument will be executed: > (if t 5 6) 5 > (if nil 5 6) 6 > (if 4 5 6) 5 If you need to put more than one statement in the then or else clause of an if statement, you can use the progn special form. Progn executes each statement in its body, then returns the value of the final one. > (setq a 7) 7 > (setq b 0) 0 > (setq c 5) 5 > (if (> a 5) (progn (setq a (+ b 7)) (setq b (+ c 8))) (setq b 4) ) 13 An if statement which lacks either a then or an else clause can be written using the when or unless special form: > (when t 3) 3 > (when nil 3) NIL > (unless t 3) NIL > (unless nil 3) 3 When and unless, unlike if, allow any number of statements in their bodies. (Eg, (when x a b c) is equivalent to (if x (progn a b c)).) > (when t (setq a 5) (+ a 6) ) 11 More complicated conditionals can be defined using the cond special form, which is equivalent to an if ... else if ... fi construction. A cond consists of the symbol cond followed by a number of cond clauses, each of which is a list. The first element of a cond clause is the condition; the remaining elements (if any) are the action. The cond form finds the first clause whose condition evaluates to true (ie, doesn't evaluate to nil); it then executes the corresponding action and returns the resulting value. None of the remaining conditions are evaluated; nor are any actions except the one corresponding to the selected condition. For example: > (setq a 3) 3 > (cond ((evenp a) a) ;if a is even return a ((> a 7) (/ a 2)) ;else if a is bigger than 7 return a/2 ((< a 5) (- a 1)) ;else if a is smaller than 5 return a-1 (t 17) ;else return 17 ) 2 If the action in the selected cond clause is missing, cond returns what the condition evaluated to: > (cond ((+ 3 4))) 7 Here's a clever little recursive function which uses cond. You might be interested in trying to prove that it terminates for all integers x at least 1. (If you succeed, please publish the result.) > (defun hotpo (x steps) ;hotpo stands for Half Or Triple Plus One (cond ((= x 1) steps) ((oddp x) (hotpo (+ 1 (* x 3)) (+ 1 steps))) (t (hotpo (/ x 2) (+ 1 steps))) ) ) A > (hotpo 7 0) 16 The LISP case statement is like a C switch statement: > (setq x 'b) B > (case x (a 5) ((d e) 7) ((b f) 3) (otherwise 9) ) 3 The otherwise clause at the end means that if x is not a, b, d, e, or f, the case statement will return 9. Iteration The simplest iteration construct in LISP is loop: a loop construct repeatedly executes its body until it hits a return special form. For example, > (setq a 4) 4 > (loop (setq a (+ a 1)) (when (> a 7) (return a)) ) 8 > (loop (setq a (- a 1)) (when (< a 3) (return)) ) NIL The next simplest is dolist: dolist binds a variable to the elements of a list in order and stops when it hits the end of the list. > (dolist (x '(a b c)) (print x)) A B C NIL Dolist always returns nil. Note that the value of x in the above example was never nil: the NIL below the C was the value that dolist returned, printed by the read-eval-print loop. The most complicated iteration primitive is called do. A do statement looks like this: > (do ((x 1 (+ x 1)) (y 1 (* y 2))) ((> x 5) y) (print y) (print 'working) ) 1 WORKING 2 WORKING 4 WORKING 8 WORKING 16 WORKING 32 The first part of a do specifies what variables to bind, what their initial values are, and how to update them. The second part specifies a termination condit...

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:

Kentucky - CS - 687
Security flaws in PulsarNotation: T is intruder, P is presenter, S is secondary, R is report code, M isa monitor program, B is a host that is being attacked by T.Specific flawsscheduler problemsScheduler runs as root, subject to running tro
Kentucky - CS - 655
{3uW5a35 p %G53'sGR1~G3a~GUa'5'ax5u e ! c 42 e ! c# m ) ! ) ! ! 6 A 6 ! )2 m F ` b P !# 2 F b !# P P2# ) ! P c# m BUIG`875&quot;qU$858
Kentucky - ENG - 570
Act 1, Scene 1 Elsinore. A platform before the castle. FRANCISCO at his post. Enter to him BERNARDO BERNARDO Who's there? FRANCISCO Nay, answer me: stand, and unfold yourself. BERNARDO
Kentucky - ENG - 570
MACBETHDRAMATIS PERSONAEDUNCANking of Scotland.MALCOLM|| his sons.DONALBAIN|MACBETH|| generals of the king's army.BANQUO|MACDUFF||LENNOX||ROSS|| noblemen of Scotland.MENTEITH||ANGUS||CAITHNESS|FL
Kentucky - CS - 655
%!PS-Adobe-1.0 %Creator: Linux:raphael (Raphael Finkel) %Title: stdin (ditroff) %CreationDate: Tue Aug 19 22:54:11 1997 %EndComments %!PS-AdobeFont-1.1: LucidaSans-Typewriter 1.003X %CreationDate: 1993 Dec 07 10:43:50 % Lucida is a registered tradema
Kentucky - INF - 401
A quick course in operating systemsRaphael Finkel Computer Science Department University of Kentucky Lexington, KY raphael@cs.uky.eduOperating Systems1What is an operating system?Resource Principle An operating system is a set of algorithms
Georgia Tech - CS - 4440
CS4440 Course Reading SummariesPaper #: 1.28Title: Fundamental Challanges in Mobile ComputingSummary:The paper addresses the fundamental issues faced by researchers in mobile computing citing a few of the issues that impact mobile computing na
Georgia Tech - CS - 4440
!- /* Font Definitions */ @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1593833729 1073750107 16 0 415 0;} /* Style Definitions */ p.Ms
Georgia Tech - CS - 4440
Paper#: 28Title: Fundamental Challenges in Mobile ComputingThe paper focuses on the various constraints in mobility and explains the adaptation strategies for efficient performance of mobile devices. Mobile devices have low processor speed, less
Sanford-Brown Institute - AM - 261
AM261 Recent Applications of Probability and Statistics Project 8: MCMC for expectations and restorations We will test the Gibbs sampler by computing expectations and comparing to the results from Project 7. And we will pretend that the Ising model
CSU Fullerton - DBS - 201
1Chapter 1File Systems and DatabasesDatabase Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel1In this chapter, you will learn: What a database is, what it does, and why database design is important How modern
CSU Fullerton - DBS - 201
2Chapter 2The Relational Database ModelDatabase Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel2In this chapter, you will learn: That the relational database model takes a logical view of data That the relat
CSU Fullerton - DBS - 201
3Chapter 3 Entity Relationship (E-R) ModelingDatabase Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel3In this chapter, you will learn: What a conceptual model is and what its purpose is The difference between
CSU Fullerton - DBS - 201
4Chapter 4 Normalization of Database TablesDatabase Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel4In this chapter, you will learn: What normalization is and what role it plays in database design About the no
CSU Fullerton - DBS - 201
DBS201 SQL Practice ProblemsTABLE COMMANDS: CREATE TABLE ALTER TABLE ADD CONSTRAINT ALTER TABLE DROP CONSTRAINT ALTER TABLE ADD COLUMN ALTER TABLE DROP COLUMN ALTER TABLE ALTER COLUMN Examples: 1. ALTER TABLE Premm40.StudentADD COLUMN (s
Moravian - PUBLIC - 200570
MORAVIAN COLLEGE Art History Special Topics: ART 310 ART HISTORY WORKSHOP: METHODS, CRITICISM &amp; EXHIBITION PRACTICE Syllabus PROF. RADYCKI Phone: 610.861.1627 dradycki@moravian.edu Office: South Hall, Church St. Campus Hours: Mon &amp; Wed 4-5:00 pm What
CSU Fullerton - DBS - 201
DBS201: Merging 3NF TablesLecture 7Merging 3NF Tables Bottomup design on a number of similar views (reports/screens) generates a series of tables in 3NF Resulting tables are similarMerging 3NF RelationsView 1Premiere Corporation Order De
Virginia Tech - PUBS - 424
5COMMERCIAL BARLEY ENTRIES Virginia Tech and Virginia Crop Improvement Association, 9142 Atlee Station Road, Mechanicsville, VA 23116 Barsoy, Callao, Doyce, Nomini, Price, Thoroughbred, and Wysor.COMMERCIAL AND EXPERIMENTAL WHEAT ENTRIES AgriPro
Sanford-Brown Institute - CS - 244
Cyclic Correlated EquilibriaSeong Jae Lee CS244, March CS244 5 M h 2007Definitions Markov Game Deterministic Markov Game : T : A S Turn-Taking Game : if |Aii,s| &gt; 1 A|jj,s| = 1 j != i Turn Taking 1, i. Value and Quality Stationary Policy
Laurentian - CPSC - 3670
CS 3670 Assignment 3 Spring 2005 Due Date: 2.18.2005Soufiane Noureddine1. Given the natural spline S on [0, 2]: S(x) = {S 0 (x), S1 (x)} Where: S0 (x) = 1 + 2x 3x3 on [0, 1] and S1 (x) = a + b(x-1) + c(x-1)2 +d(x-1)3 on [1, 2]. Find a, b, c, and d
Laurentian - CPSC - 3670
Computer Science 3670 Numerical Methods Course Outline Spring 2005Instructor: Office: E-mail: Lecture: Textbook: Dr. Soufiane Noureddine C520 (University Hall) soufiane.noureddine@uleth.ca MWF: 15:00-15:50 Room: B543Numerical Analysis, R. Burden
Academy of Art University - ANM - 180
Production TitleSequenceSceneCut/Shot Notes:Page No.ActionDialExtra654321FrameCamera Instructions
Duke - STA - 290
STA290 ASSIGNMENT 2Part 1Scientists are interested in the Earth's temperature change since the last glacial maximum, about 20,000 years ago. The first study to estimate the temperature change was published in 1980, and estimated a change of -1.5 de
Duke - STA - 290
%!PS-Adobe-2.0 %Creator: dvips(k) 5.92b Copyright 2002 Radical Eye Software %Title: HW2.dvi %Pages: 2 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMR17 CMBX12 CMR10 CMSY10 CMTT10 CMBX10 %EndComments %DVIPSWebPage: (www.radicaleye.com
Duke - STA - 290
%!PS-Adobe-2.0 %Creator: dvips(k) 5.92b Copyright 2002 Radical Eye Software %Title: HW3.dvi %Pages: 2 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: CMR17 CMR10 CMBX12 CMMI10 CMR7 CMMI7 CMSY10 CMBX10 %+ CMTT10 CMEX10 CMSY7 %EndComments
Duke - STA - 290
%!PS-Adobe-2.0 %Creator: dvips(k) 5.95a Copyright 2005 Radical Eye Software %Title: HW4.dvi %Pages: 2 %PageOrder: Ascend %BoundingBox: 0 0 595 842 %DocumentFonts: CMBX12 CMR10 CMMI10 CMR7 CMMI7 CMSY10 CMEX10 CMSY7 %+ CMTT10 %DocumentPaperSizes: a4 %E
Duke - STA - 290
STA290 ASSIGNMENT 6Due November 8, 2007 1. Consider the hierarchical random effects model from class Yij j with non-informative prior p(, , ) -1 -1 2 where = 1/ 2 and = 1/ . N (j , 2 ) 2 N (, )(1) (2) (3)(a) If the (improper) prior dis
Duke - STA - 290
%!PS-Adobe-2.0 %Creator: dvips(k) 5.95a Copyright 2005 Radical Eye Software %Title: assignment6.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 595 842 %DocumentFonts: CMR17 CMR10 CMMI10 CMMI7 CMSY10 CMR7 CMSY7 %DocumentPaperSizes: a4 %EndComments
Mt. Holyoke - ASOL - 997
a997igsa-11.0748702-11.0295687-10.9842687-10.9389685-10.8936709-10.8483736-10.8030731-10.7577721-10.7124702-10.6671688-10.6218697-10.5765706-10.5312695-10.4859691-10.4406707-10.3953710-10.3500705-10.3047707-10.25
Duke - STA - 290
%!PS-Adobe-3.0 %Pages: (atend) %BoundingBox: 0 0 563 776 %HiResBoundingBox: 0.000000 0.000000 562.700000 775.400000 %. %Creator: GNU Ghostscript 707 (pswrite) %CreationDate: 2007/09/20 13:29:17 %DocumentData: Clean7Bit %LanguageLevel: 2 %EndComments
Duke - STA - 290
%!PS-Adobe-3.0 %Pages: (atend) %BoundingBox: 0 0 548 777 %HiResBoundingBox: 0.000000 0.000000 547.200000 776.507959 %. %Creator: GNU Ghostscript 707 (pswrite) %CreationDate: 2007/09/20 13:30:56 %DocumentData: Clean7Bit %LanguageLevel: 2 %EndComments
Duke - STA - 290
%!PS-Adobe-3.0 %Pages: (atend) %BoundingBox: 0 0 548 777 %HiResBoundingBox: 0.000000 0.000000 547.100000 776.507959 %. %Creator: GNU Ghostscript 707 (pswrite) %CreationDate: 2007/09/20 13:32:21 %DocumentData: Clean7Bit %LanguageLevel: 2 %EndComments
Duke - STA - 290
%!PS-Adobe-3.0 %Pages: (atend) %BoundingBox: 0 0 548 777 %HiResBoundingBox: 0.000000 0.000000 547.700000 776.507959 %. %Creator: GNU Ghostscript 707 (pswrite) %CreationDate: 2007/09/20 13:33:15 %DocumentData: Clean7Bit %LanguageLevel: 2 %EndComments
Mt. Holyoke - ASOL - 723
-11.1656680-11.1198673-11.0739663-11.0281683-10.9822712-10.9364703-10.8905703-10.8447717-10.7988706-10.7530685-10.7071680-10.6612687-10.6154693-10.5695679-10.5237663-10.4778676-10.4320689-10.3861719-10.3403737-10
Mt. Holyoke - ASOL - 1004
a1004igsa-11.0748670-11.0295638-10.9842653-10.9389671-10.8936675-10.8483685-10.8030692-10.7577701-10.7124705-10.6671700-10.6218662-10.5765643-10.5312687-10.4859711-10.4406673-10.3953644-10.3500647-10.3047664-10.2
Mt. Holyoke - ASOL - 972
-11.1656718-11.1198712-11.0739708-11.0281704-10.9822710-10.9364711-10.8905709-10.8447704-10.7988688-10.7530710-10.7071743-10.6612738-10.6154730-10.5695699-10.5237657-10.4778687-10.4320729-10.3861723-10.3403714-10
Mt. Holyoke - ASOL - 985
-11.2115706-11.1656679-11.1198661-11.0739670-11.0281689-10.9822698-10.9364695-10.8905688-10.8447684-10.7988692-10.7530701-10.7071702-10.6612702-10.6154723-10.5695745-10.5237738-10.4778729-10.4320725-10.3861719-10
Mt. Holyoke - ASOL - 998
a998igsa-11.0748675-11.0295690-10.9842689-10.9389685-10.8936678-10.8483671-10.8030667-10.7577669-10.7124667-10.6671662-10.6218667-10.5765671-10.5312658-10.4859645-10.4406652-10.3953670-10.3500686-10.3047671-10.25
Mt. Holyoke - ASOL - 1002
a1002igsa-11.0748680-11.0295673-10.9842679-10.9389676-10.8936681-10.8483695-10.8030690-10.7577676-10.7124684-10.6671697-10.6218697-10.5765696-10.5312689-10.4859681-10.4406669-10.3953651-10.3500647-10.3047659-10.2
Mt. Holyoke - ASOL - 1003
-11.0295669-10.9842663-10.9389671-10.8936678-10.8483690-10.8030719-10.7577731-10.7124734-10.6671737-10.6218702-10.5765661-10.5312681a1003igsa-10.4859708-10.4406706-10.3953702-10.3500687-10.3047673-10.2595660-10.
Mt. Holyoke - ASOL - 1005
a1005igsa-11.0295696-10.9842690-10.9389704-10.8936706-10.8483690-10.8030663-10.7577651-10.7124666-10.6671684-10.6218706-10.5765720-10.5312695-10.4859670-10.4406683-10.3953698-10.3500705-10.3047703-10.2595695-10.2
Mt. Holyoke - ASOL - 977
-11.2574629-11.2115651-11.1656660-11.1198671-11.0739666-11.0281658-10.9822642-10.9364626-10.8905623-10.8447628-10.7988643-10.7530653-10.7071654-10.6612655-10.6154651-10.5695634-10.5237629-10.4778656-10.4320672-10
Mt. Holyoke - ASOL - 995
a995igsa-11.1201671-11.0748701-11.0295693-10.9842691-10.9389711-10.8936733-10.8483727-10.8030712-10.7577706-10.7124704-10.6671702-10.6218701-10.5765713-10.5312719-10.4859710-10.4406709-10.3953728-10.3500729-10.30
Georgia Tech - ISYE - 7406
ClusteringKwokLeung Tsui Industrial &amp; Systems Engineering Georgia Institute of Technology1Statistical Learning Methods Supervised Learning Statistical data mining techniques creating a functions from a training dataset. Prediction or classifi
Laurentian - BIOL - 4110
Biology 41101GenomeGenome: All the genetic material in the chromosomes of particular organism; its size is generally given as its total number of base pairs. Chromosomes: The self-replicating genetic structure of cells containing the cellular DN
San Diego State - ART - 496
Taylor Muna Plantin Robert Granjon The famous French type designer and printer Robert Granjon is best known for his italic type characters based on French handwriting. His type style became known as Civilite. Since italic styles were already popular
San Diego State - ART - 496
Museum of Contemporary Art ChicagoCALDERALEXANDER in focusView Calder's mobiles, stabiles, drawings and paintings in this small exhibition. These works, dating from 1927 to 1968, demonstrate the artist's development throughout his 50 year caree
San Diego State - ART - 496
San Diego State - ART - 496
PlantinRobert GranjonThe quick brown fox jumped over the lazy dog. Plantin Regular The quick brown fox jumped over the lazy dog. Plantin Italic The quick brown fox jumped over the lazy dog. Plantin Bold The quick brown fox jumped over the lazy dog.
San Diego State - ART - 496
%!PS-Adobe-3.1 %ADO_DSC_Encoding: MacOS Roman %Title: taylor6.indd %Creator: Adobe InDesign CS3 (5.0.3) %For: B14 %CreationDate: 2/24/09, 3:57 PM %BoundingBox: 0 0 612 612 %HiResBoundingBox: 0 0 612 612 %CropBox: 0 0 612 612 %LanguageLevel: 3 %Docume
Allan Hancock College - ENVI - 2111
HANDOUT (2):ENVI2111 - Warrah Field TripReport information and assessmentYou must hand in an individually written project report based on the Warrah field trip. In your report, you should consider the biological and methodological questions we p
Allan Hancock College - ENVI - 2111
Warrah Plant Diversity 2006 Habitat type Plot size (m2) 1. Lawn 1 m2 1. Lawn 25 m2 1. Lawn 100 m2 2. UnBurnt Forest 1 m2 2. UnBurnt Forest 25 m2 2. UnBurnt Forest 100 m2 3. Burnt Forest 1 m2 3. Burnt Forest 25 m2 3. Burnt Forest 100 m2 Simpson's Dive
Allan Hancock College - ENVI - 2111
San Diego State - ART - 496
C A L D EFocus R inJuly 28 , 20 07 March 1, 20 0 9 View Calders mobiles, stabiles, drawings and paintings in this small exhibition. These works, dating from 1927 to 1968, demonstrate the artists development throughout his 50 year career. Calder comb
San Diego State - ART - 496
alexanderCALDER IN FOCUSJuly 28, 2007March 1, 2009View Calders mobiles, stabiles, drawings and paintings in this small exhibition. These works, dating from 1927 to 1968, demonstrate the artists development throughout his 50 year career. Calder co
San Diego State - ART - 496
a l ex a n d e r C A L D E RI N F O C U SJuly 28, 2007March 1, 2009 Museum of Contemporary Art Chicago 220 East Chicago Avenue, Chicago, IL 60611 312.280.2660 www.mcachicago.org Monday Closed, Tuesday 10 am8 pm Wednesday through Sunday 10 am5 pm
San Diego State - ART - 496
Michelle Garcia Type Fundamentals Book April 7 2009 , In the process of this project, I learned just how important it is to take things one step at a time. Without doing so, I would not have been able to get the results that I did. Taking the process
San Diego State - ART - 496
10pt UniversBold + ObliqueScaleAxisImage/Graphic ElementMichelle Garcia Typography I Spring 2009
Allan Hancock College - ENVI - 2111
CONSERVATION BIOLOGY AND APPLIED ECOLOGY (ENVI 2111)Habitat fragmentation, restoration ecology and conservation biology Reading list and supporting referencesDr Dieter Hochuli Room 401, Heydon-Laurence Building (A08), 9351 3992; email: dieter@bio.
Allan Hancock College - ENVI - 2111
IntroductionThe Eastern Suburb Banksia Scrub (ESBS) community of the Sydney Basin region was first registered as endangered according to the NSW Threatened Species Conservation Act 1995. Considering its once widespread distribution, efforts have bee
Allan Hancock College - ENVI - 2111
CONSERVATION [or failure of] Of Dasyurus maculatus (SPOT TAILED QUOLL)INTRODUCTIONNocturnal, marsupial carnivore (largest native mainland carnivore) 1 of 4 species of Quoll Divided into two subspecies: Dasyurus maculatus maculatus (south east Aust