111-Lecture01-Introduction - Department of Computer Science

Download Report

Transcript 111-Lecture01-Introduction - Department of Computer Science

COMPSCI 111 / 111G
An introduction to practical computing
Introduction
Hardware
Teaching Staff
•
Prof Andre Nies
Lectures 1 - 10
– Office: Computer Science Building (Bldg 303S) Room 565
– Email: [email protected]
– Office hours: Tue Th 2pm
•
Stefan Wender
Lectures 11 - 15
– Office: Computer Science Building (Bldg 303S) Room 587
– Email: [email protected]
– Office Hours: Open door policy (or email for appointment)
COMPSCI 111 / 111G
2
2
Teaching Staff
Damir Azhar
Lectures 16 - 23
– Office: Computer Science Building (Bldg 303S) Room 596
– Email: [email protected]
– Office Hours: Open door policy (or email for appointment)
Prof Pat Langley
Lectures 24 – 30
– Office: Computer Science Building (Bldg 303S) Room 596
– Email: [email protected]
– Office Hours: Tuesday 11am, Thursday 11am, Friday 2pm
Ann Cameron (Lab Tutor / Course Coordinator)
– Office: Computer Science Building (Bldg 303S) Room 594
– Email: [email protected]
– Open door policy (or email for appointment)
– See Ann if there are any problems
COMPSCI 111 / 111G
3
Computer Science Support Group
See http://www.cs.auckland.ac.nz/uoa/home/for/currentstudents/advisersandsupport/
Ann Cameron
Angela Chang
Adriana Ferraro
Paul Denny
Radu Nicolescu
Andrew Luxton-Reilly
Patricia Rood
COMPSCI 111 / 111G
4
!Contents
. 0-<: '! . +,: +,! . 0-<: '! . +,: +,
! . 0-<: '! . +,: +,
&+,-. / 01,2. +
&+,-. / 01,2. +
Introduction
. 0-<:
. +,:
= \ KLK
*" &-7#I)
(> " *K) Software
#U-] !" ($^
" (%
U-6'!) I*^
" (% +,
– Hardware, Digital
= \ KLK*" &-7#I) (> " *K) #U-] " ($^ " (%U-6 ) I*^ " (%
&+,-. /Information,
01,2. +
= \ KLK*" &-7#I) (> " *K) #U-] " ($^ " (%U-6 ) I*^ " (%
&+,-. / 01,2. +
(%U-6, ) I*^ " (%
+,:"-+:
Internet&+,: -+: , &+,:=-+:\ ,KLK*" &-7#I) (> " *K) #U-] "&($^
= Email,
Y Y Y U-O> " K&U-7#A*" #*-! %AA"=L
LK#LU
LY-+)
(<>
U-_&U
&) #A*"
LU-Y KSK
L
– WWW,
Y#LU
Y(<>
U-O>
LK#LU
L -+) (<> U-_ &) L
LU-Y
= Y Y Y U-O> " K&U-7#A*" #*-! %AA" L
LK
L -+)
U-_ "&)K
LU-7
L
-Y KSK #*-! %AA" L
&+,: -+: ,
– Forums,
= 6Blog,
) , K"Wiki
&-K
#$-(K
= AA<%
6 ) , K"A-"
&-KAA<%
A-" ASA
#$-(KASA = 6 ) , K
" &-KAA<%
A-" #$-(KASA
= Y Y Y U-O> " K&U-7#A*" #*-! %AA" L
LK#LU
L -+) (<> U-_ &) L
LU-Y KSK
– Social networking, filesharing
= 6 ) , K" &-KAA<%A-" #$-(KASA
: ')'"
) " 7721: '@
@DD6215,2. +<
+<'5+/
5+/ '$
$ 0A6215,2. +'9.
+ 9. . 6<
– Social issues C.
and8 risks
C. '$
8 0A6
: ')'"
) "215,2
7721:. +'9.
'@
@9.
DD6
+< 5+/ '$
$ 0A6215,2. +'9.
+ 9. . 6<
C. 8 : ')'"
) " 7721: '@
@DD6215,2. +<
+<'5+/
5+/
$
+
.215,2
6< . +<'5+/
= Y ) ($-5 () , %AAK#LU-6 J(%" $AH%%*AU-\ " *" ' " A%A
8 : ')'"
) " 7721: '@
@DD6215,2. +<'5+/
+< 5+/ '$
$ 0A6215,2. +'9.
+ 9. . 6<
=
Y
)
($-5
AAK
= Y C.
) ($-5
()
,
%
AAK
#LU
-6
J(%
"
$AH%
%
*AU
-\
"
*"()' ", %
A%
A#LU-6 J(%" $AH%%*AU-\ " *" ' " A%A
= ] X! ; U-5 ) ^ %(5 ) K#*U-; " X%`
= Y ) ($-5
, %AAK#LU-6 J(%"Tools
$AH%%*AU-\ " *" ' " A%A
Home / Office Applications
and() Publication
= ] X! ;=U-5
) ^; %
(5) ^) %
K#*U
"-;X%
` ` = ] X! ; U-5 ) ^ %(5 ) K#*U-; " X%`
] X!
U-5
(5 )-;K#*U
" X%
– Word Processing,
Spreadsheets,
Databases
$ -. 4-58
8 2+4
– HTML, PowerPoint,
= LaTeX
5 ?*H) #
$ -. 4-58 8 2+4
$ -. 4-58 8 2+4
$ -. 4-58 8 2+4
= 5 ?*H) #
= 5 ?*H) #
%D: #
1256'9. D21<
=
5
?*H)
Programming
= ] K*
KA*) (?U-a
a (*K
*KIK
IKK
, K" &
&7
-7#*%
* &&KL%#, %U-9
9 (" JHK
HK, AU-BK
BKS
ASAU-6
6 ) , K" &
&7
-7AA<%A
%
D:
12
56
'9.
D2
1<
– Python
%
D:
56
'9.
D2
1<
= ] K
K*
A*) (?U-a
a (*K
*KIK
IKK
, K" &
&7
-7#*%
* &&K
L%
#, 12
%U-9
9 ("
JHK
HK
, AU
-BK
BKS
ASAU-6
6 ) , K" &7
&-7AA<%A
%D: 12(1
56'9.
D2
. / 0/ 1<
10. /each)
/2
3 4 ! 5 6 3 7-88808889 -: ; %, *<(%-/ 8
N
Special Topics
lecture
= ] K
K*
A*) (?U-a
a (*K
*KIK
IKK
, K" &
&7
-7#*%
* &&KL%#, %U-9
9 (" JHK
HK, AU-BK
BKS
ASAU-6
6)
– History,
Intelligence,
= Computer
] K
K*
A*)
-a
*KIK
IKK
, K"Artificial
&
&7
-7#*%
* &&K
L%#,
%
9 ("
, AU
BKS
ASAU-6
6 ) , K" &
&7
-7AA<%AN
. / 0/ (?U
10. / / Graphics,
2 a (*K
34 ! 5
6U
3 -9
7-8880
8889JHK
-: ;HK
%, *<(%
-/ 8 -BK
COMPSCI 111 / 111G
. / 0/ 10. / / 2
. / 0/ 10. / / 2
3 4 ! 5 6 3 7-88808889 -: ; %, *<(%-/ 8
3 4 ! 56 3 7-88808889 -: ; %, *<(%-/ 85
N
5
Course Requirements
Required reading
– Course book (selected topics) and Lab manual are required
(available from University Book Shop)
– Online resources (slides, web links) on course website:
http://www.cs.auckland.ac.nz/courses/compsci111s2c
Assessment
– Labs
20%
– Test (29 August, 6:30pm) 20%
– Exam
60%
Practical
Theory
Theory
Must pass both practical and theory (≥50% each).
Lab attendance is compulsory.
COMPSCI 111 / 111G
6
6
Laboratories
Overview
– Designed to provide practical experience
– Prepare for labs by reading the lab manual, course notes and/or online sources
– Friendly atmosphere. Talk to other students.
Assessment
–
–
–
–
Compulsory three hour lab each week (start in week 2)
9 labs, worth 20% of final grade
10% of each lab for attendance (be there on time at the beginning)
Must hand in your lab assignment before the start of the following lab
Location
– First Floor Teaching Laboratory (FTL), Room 175, Building 303
Bring your student ID and a USB stick (flash drive) to labs. A cheap one is fine.
Remember: you need ≥50% of practical part to pass the course.
COMPSCI 111 / 111G
7
7
Study
• Time management
– 10 hours per course per week.
• 3 hours lectures
• 3 hour lab
• 4 hours reading, lab report
• Internet resources
– http://www.cs.auckland.ac.nz/courses/compsci111s2c
– http://en.wikipedia.org/
• Getting started
– Get course reference book and 2014 S2 lab manual from UBS
– Log into a computer, read your email
(when emailing staff, use your university email account)
COMPSCI 111 / 111G
8
8
Who wants to be class representative?
COMPSCI 111 / 111G
9
Hardware
COMPSCI 111 / 111G
10
Server Farm
COMPSCI 111 / 111G
11
Design of a Personal Computer
Input
Processing
Storage
Output
COMPSCI 111 / 111G
12
Introduction to Hardware
Computer Hardware
– “Those parts of the system that you can hit with a
hammer (not advised) are called hardware”
– Modular
System Unit
Monitor
Keyboard
Mouse
http://en.wikipedia.org/wiki/Computer_hardware
COMPSCI 111 / 111G
13
Inside the System Unit
Modular Components
Power Supply
CD Drives
Cooling Fans
CPU
Motherboard
Hard Drives
Expansion Cards
COMPSCI 111 / 111G
14
Power Supply
Converts AC to lower DC voltage
COMPSCI 111 / 111G
15
Inside a Laptop
Cooling fans
CPU
Motherboard
Flash drive
Expansion cards*
RAM
Power Supply (batteries)
*Not really cards but graphics and IO chips
http://www.ifixit.com/Teardown/MacBook+Pro+15-Inch+Retina+Display+Mid+2012+Teardown/9462/1
COMPSCI 111 / 111G
16
CIe SSD
Apple
Hitting
MacBook
with
hammer
By M at t hew Humphries Jun. 12, 2013 7:25 am
COMPSCI 111 / 111G
17
Motherboard
Main circuit board for the computer
– Everything else connects to the motherboard
COMPSCI 111 / 111G
18
Processor
• CPU (Central Processing Unit)
– "Brain"
– Follows instructions
• Speed
– Computation speed often measured in
operations per second (OPS)
– Clock speed (Hz) is the speed with which
electrical signals pass through the CPU
– The faster the better, except ...
• Cooling
–
–
–
–
... heat is one of the major limitations
The faster the CPU the hotter it gets
CPU must be kept cool
Cooling fan, Heat sink, Water cooled
COMPSCI 111 / 111G
19
Moore’s Law (1965)
The number of transistors on a single integrated
circuit doubles approximately every 18 months,
while the price remains the same. (Originally Moore
said “every 2 years”.)
In 3 Years
Gordon E. Moore
(co-founder of Intel)
– Potentially 4 times the work
in the same time
In 15 years
– 1,000 times as powerful
In 30 years
–
1,000,000 times as powerful
http://en.wikipedia.org/wiki/Moore%27s_law
COMPSCI 111 / 111G
20
Transistors on Chip under
electron microscope
COMPSCI 111 / 111G
21
Clock Speed of CPUs
Speed
1 MHz
4 MHz
16 MHz
66-100 MHz
75 - 166 MHz
166 - 233 MHz
200 - 450 MHz
400MHz - 1 GHz
1 – 3.4 GHz
1.6 - 3.4 GHz
3.7-4.4 GHz
CPU
6502 (Apple II 1977)
8088 (IBM XT 1981)
80286 (IBM AT)
80486 (1989)
Intel Pentium / AMD K5 (1993)
Intel Pentium MMX
Intel Pentium II / AMD K6
Intel Pentium III / AMD Athlon
Intel Pentium 4 / AMD Athlon XP(2000)
Intel Core i7 (2010)
IBM POWER7+
COMPSCI 111 / 111G
22
Other criteria for quality
Power efficiency and heat are just as
important as processor speed.
Processors have several cores now. Commonly
from 2 to 8.
Examples of other processors: ARM, a family of instruction
set architectures for computer processors based on reduced
instruction set computing (RISC). Used in mobile devices
COMPSCI 111 / 111G
23