CSE 1729 Study Guide - Fall 2018, Comprehensive Term Test Notes - Recursion, Binary Search Tree, Modular Arithmetic

152 views39 pages
silveralpaca779 and 13 others unlocked
CSE 1729 Full Course Notes
28
CSE 1729 Full Course Notes
Verified Note
28 documents

Document Summary

Lecture 2 notes: programs are built during a dialog w interpreter. > 198: in scheme, compound expressions have the form ( . > (+ (* 4 5) (* 4 245): eval 4 5, apply * 4 5 -> 20, then eval and apply the other set of parentheses, add both values. Binding variables to values: our first example of abstraction, involves a special form: define, the form: (define , binds the variable to the val obtained by eval. 7: the define special form can also be used to define new functions, the syntax is the following: (define ( ) body, thus, : the expression is evaluated, if it evals to #t, is evaluated, and its val is returned. Otherwise is eval and its val is returned. Conditionals via if: simple conditionals are implemented by the if special form (if

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers