Introduction to the CourseLecturerCourse OverviewTeaching StylePolicies
Numbers in the ComputerMagnitude PrefixesRepresenting information in a machineBinary representation of integers
“Welcome to COMPSCI 105 ”
Santokh’s Contact Details:
Office: Room 303 488
4th floor new science bldg. (City)
Telephone: 82283
Email: [email protected]
http://www.cs.auckland.ac.nz/~ssin080
- Santokh
Office Hours
• See COMPSCI 105SS 2005 web pages for details and updates.
• Brief discussions before and after all lectures.
Introduction to the Course
Lecturer
Course Overview
Teaching Style
Policies
Numbers in the Computer
Magnitude Prefixes
Representing information in a machine
Binary representation of integers
Introduction to the Course
Lecturer
Course Overview
Teaching Style
Policies
Numbers in the Computer
Magnitude Prefixes
Representing information in a machine
Binary representation of integers
Summer School
• More intense
• Fewer Lecture Hours
• Better Staff/Student Ratio
• Better Weather (hopefully ;-)
The Textbook
Carrano and Prichard, “Data Abstraction and Problem Solving with JAVA: Walls and Mirrors”, Addison-Wesley, 2004.
(Can also use 2001 Edition, shown above)
Available from UBS
Class Reps
• Need one from each of the tutorials.
• Their names and contact details will be posted on the course web page.
Introduction to the Course
Lecturer
Course Overview
Teaching Style
Policies
Numbers in the Computer
Magnitude Prefixes
Representing information in a machine
Binary representation of integers
Peta- 1015 1,000,000,000,000,000
Tera- 1012 1,000,000,000,000
Giga- 109 1,000,000,000
Mega- 106 1,000,000
Kilo- 103 1,000
Milli- 10-3 .001
Micro- 10-6 .000001
Nano- 10-9 .000000001
Pico- 10-12 .000000000001
Femto- 10-15 .000000000000001
How long does light take to travel 30cm?
• About a millisecond (10-3)• About a microsecond (10-6)• About a nanosecond (10-9)• About a picosecond (10-12)• About a femtosecond (10-15)
Speed of light is approximately 3 x 108 m/s.
Introduction to the Course
Lecturer
Course Overview
Teaching Style
Policies
Numbers in the Computer
Magnitude Prefixes
Representing information in a machine
Binary representation of integers
n Bits
• 1 bit 2 things
• 2 bits 4 things
• 3 bits 8 things
• 4 bits 16 things
• 5 bits 32 things
• n bits
How many bits do I need to assign a unique bit pattern to everyone in the class?
20 121 222 423 824 1625 32
26 6427 12828 25629 512210 1024211 2048
Course Book
Notes for this section are in the Course Book:-
• Pages 62 - 64: Numbers in the Computer
• Pages 65 - 92: Data Representations