Professional Documents
Culture Documents
Computer Science 37 Lecture 1
Computer Science 37 Lecture 1
Luiz Felipe Perrone, Sudikoff 209 Cybersecurity Research Group ISTS Dartmouth College
1.1
Administrivia
1) We have a webpage:
http://www.cs.dartmouth.edu/~cs37 (syllabus, slides, readings, and all administrivia)
2) TAs: Clint Hepner and Ming Li 3) Office Hours 4) Textbook: one required plus another two for who really wants more. 5) X-Hours: I just cant get enough.
1.2
Administrivia
6) Honor Principle: read it, abide by it. 7) Grades: QZ = 6%, MT = 20%, FE = 24%, HW = 49%
QZ =
3 i =1
qzi
HW =
7 i =1
hwi
g = QZ + MT + FE + HW
g
Final grade:
g*1.025 g *1.05
Lecture 1
Abstraction Layers Where Bits Are Born
1.4
Layers of Abstraction
abstraction: the act or process of abstracting. abstracting: to make an abstract of , to summarize. Think about how you interact with the world: You dont constantly think about all the details in everything around you. You think about essentials. You deal with function blocks and interfaces.
1.5
Layers of Abstraction
Points to consider: 1) Give something an input and get something from it as output. Its the functionality that matters. 2) When we can conceptually break down a system into cooperating components, the interface between components must be well understood.
1.6
Layers of Abstraction
domain
function
range
1.7
Layers of Abstraction
program domain computer
output data
input data
f()
range
1.8
Layers of Abstraction
Application System Software Hardware
Compilers, web browsers, word processors, MP3 players, etc. I/O device control, process scheduling, virtual memory, file system, etc. Arithmetic operations, data transfer, memory, mass storage, etc.
Abstractions: serve to hide detail behind functionality, you concentrate on what you must, allow for a good measure of flexibility.
1.10
10
Layers of Abstraction
Application System Software Functional Components
Logic Gates Hardware Discrete Electronic Components
Bus,CPU,Memory
AND,OR,NOT,
"!
1.11
11
12
1.13
13
Information Representation
The switch has two possible states:
potential (V)
+5 V
1
surely 1
uncertainty zone
surely 0
0
BINARY SYSTEM
14
15
1.16
16
Mechanical Limitation
V0
Can read the output value from this point on
input
output
time
During this time the output value is meaningless
1.17
17
collector base
potential as ground.
1.18
18
Vo
0V +5V
Vi
+5V 0V
1.19
19
A 0 1
B 1 0
From discrete components to logic gates: our first move up toward a higher layer of abstraction.
Truth table
1.20
20
electrons spins
1.21
21
A qubit differs from a bit in that it can assume a superposition of states: they can be both 0 and 1 simultaneously.
25
1.22
22
Advantages of Spintronics
Spin doesnt change when devices are powered off: we can have nicer memories built with this technology. Consume less power. Incredibly faster computation. More integration.
1.23
23
1.24
24