SICP-Notes-Lecture 01 Course Introduction

Lecture 01 Course Introduction

These are my notes for SICP(Structure and Interpretation of Computer Programs). Hope they’ll be of some help to you.

Introduction

Computer Science is no more about computers than astronomy is about telescopes.

  • Introduction to Programming
  • Managing Complexity: Mastering Abstraction; Programming Paradigms

This is a challenging course that will demand a lot from you.
But this will also be a fruitful course that will bring a lot to you.

  • Ask for help if you are stuck and make a good effort on all of the homework.

  • Do not share code.

Expressions

Description

An expression describes a computation and evaluates to a value.

Types of expressions

  • Primitive Expressions: 2(numbers); "hello"(strings); add(names)
  • Arithmetic Expressions: 1 + 2; 15 // 3
  • Call Expressions: add(3, 4); max(add(2, 3), 5*min(-1, 4))

Evaluating call expressions

  1. Evaluate
  • evaluate the operator subexpression
  • evaluate each operand subexpression
  1. Apply
  • apply the value of the operator subexpression to the values of the operand subexpression

Values

Description

  • Programs manipulate values

  • Values represent different types of data

Types of data

  • Integers: 2; 44; -3
  • Strings:"hello"; "cs61a"
  • Floats: 3.14; 4.5; -2.0
  • Booleans: True; False

Expressions evaluate to values in one or more steps

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值