同济大学:《大学计算机基础》课程教学资源(教案讲义)Data Representation

Data Representation 大学计算机基础教学资源库
Data Representation

Basic concepts A bit is the most basic unit of information in a computer. ·It is a state of“on”or“off,in a digital circuit. Sometimes they represent high or low voltage A byte is a group of eight bits..It is the smallest possible addressable unit of computer storage. 大学计算机基础教学资源库
Basic concepts 2 A bit is the most basic unit of information in a computer. • It is a state of “on” or “off” in a digital circuit. • Sometimes they represent high or low voltage A byte is a group of eight bits.. It is the smallest possible addressable unit of computer storage

A word is a contiguous group of bytes. Words can be any number of bits or bytes. Word sizes of 16,32,or 64 bits are most common. 大学计算机基础教学资源库
3 ⚫ A word is a contiguous group of bytes. ⚫ Words can be any number of bits or bytes. ⚫ Word sizes of 16, 32, or 64 bits are most common

1KB(Kilobyte)=1024B 1MB(Megabyte)=1024KB, 1GB(Gigabyte)=1024MB, 1TB(Trillionbyte)=1024GB,1024=2^10 大学计算机基础教学资源库
• 1KB(Kilobyte)=1024B • 1MB (Megabyte)=1024KB, • 1GB (Gigabyte)=1024MB, • 1TB(Trillionbyte)=1024GB,1024=2^10

Number Systems Base or Radix r system uses distinct symbols for r digits Most common number system Decimal, Binary,Octal,Hexadecimal Positional-value(weight)System r2 r 1r.r1 r2r3 -Multiply each digit by an integer power of r and then form he sum of all weighted digits 大学计算机基础教学资源库
Number Systems • Base or Radix r system : uses distinct symbols for r digits • Most common number system :Decimal, Binary, Octal, Hexadecimal • Positional-value(weight) System : r 2 r 1 r 0 .r-1 r -2 r -3 – Multiply each digit by an integer power of r and then form he sum of all weighted digits 5

Positional Number Systems Different Representations of Natural Numbers XXVII Roman numerals(not positional) 27 Radix-10 or decimal number(positional) 110112 Radix-2 or binary number (also positional) Examples:(11011)2=1×24+1×23+0×22+1×2+1=27 (2103)4=2×43+1×42+0×4+3=147 大学计算机基础教学资源库
6 Different Representations of Natural Numbers XXVII Roman numerals (not positional) 27 Radix-10 or decimal number (positional) 110112 Radix-2 or binary number (also positional) Examples: (11011)2 = 1×2 4 + 1×2 3 + 0×2 2 + 1×2 + 1 = 27 (2103)4 = 2×4 3 + 1×4 2 + 0×4 + 3 = 147 Positional Number Systems

The binary system is also called the base-2 system. (101100.011) Our decimal system is the base-10 system.It uses powers of 10 for each position in a number.(975.3) Any integer quantity can be represented exactly using any base (or radix).(3077 octal or 2BAD hex) 大学计算机基础教学资源库
7 ⚫ The binary system is also called the base-2 system. (101100.011) ⚫ Our decimal system is the base-10 system. It uses powers of 10 for each position in a number. (975.3) ⚫ Any integer quantity can be represented exactly using any base (or radix). (3077 octal or 2BAD hex)

Decimal 678.34=6×10+⑦X①+8×100+3×044×102 Radix 7 4532.1=4×73+5×72+3×71+2×70+1×71 大学计算机基础教学资源库
Decimal 678.34=6×102+7×101+8×100+3×10-1+4×10-2 Radix 7 4532.1 =4×7 3+5×7 2+3×7 1+2×7 0+1×7 -1

Binary 27 26 25 24 23 22 21 20 21 22 1 1 1 11111 1 1 128 6432 1684 2 0.50.2 (110111.01)B=32+16+4+2+1+0.25=(55.25)D 大学计算机基础教学资源库
Binary 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0 2 - 1 2 - 2 1 1 1 1 1 1 1 1 . 1 1 128 6 4 3 2 1 6 8 4 2 1 0.5 0.2 (110111.01)B=32+16+4+2+1+0.25=(55.25)D

Radix r system (0,1,2,...,r-1) N=an-1Xrm-1+an-2Xrm-2+...+aoXro+a-1Xr-1+...+amxrm 大学计算机基础教学资源库
= =− − a r i i m n i 1 N=an-1×r n-1+an-2×r n-2+…+a0×r 0+a-1×r -1+…+a-m×r -m Radix r system (0,1,2,…,r-1)
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 同济大学:《大学计算机基础》课程教学资源(试卷习题)试卷样本及答案.doc
- The Not So Short Introduction to LaTeX2ε(Or LATEX 2ε in 139 minutes).pdf
- 上饶师范学院:《数据库系统原理》课程教学资源(PPT课件)数据库系统概论 An Introducation to Database System(完整版).ppt
- 上饶师范学院:《数据库系统原理》课程教学资源(电子教案)数据库系统原理电子教案(共九章).doc
- 上饶师范学院:《数据库系统原理》课程教学资源(资料讲义)数据库系统原理实验讲义(上机实验讲义).doc
- 上饶师范学院:《数据库系统原理》课程教学资源(试卷习题)数据库系统原理习题集及答案.doc
- 上饶师范学院:《数据库系统原理》课程教学资源(资料讲义)数据库系统原理总复习(负责人:颜清).doc
- 上饶师范学院:《数据库系统原理》课程教学资源(试卷习题)数据库系统原理模拟试卷(考试模拟试题,共十套,含参考答案).doc
- 西安电子科技大学:《计算机网络 Computer Networks》课程教学资源(PPT课件讲稿)第四章 网络层.pptx
- 西安电子科技大学:《计算机网络 Computer Networks》课程教学资源(PPT课件讲稿)第三章 数据链路层.pptx
- 西安电子科技大学:《计算机网络 Computer Networks》课程教学资源(PPT课件讲稿)第二章 物理层.pptx
- 广东海洋大学:《VHDL程序设计语言》课程教学资源(PPT课件)第10章 EDA设计的仿真与测试.ppt
- 广东海洋大学:《VHDL程序设计语言》课程教学资源(PPT课件)第8章 有限状态机的VHDL设计.ppt
- 广东海洋大学:《VHDL程序设计语言》课程教学资源(PPT课件)第7章 基本逻辑电路设计.ppt
- 广东海洋大学:《VHDL程序设计语言》课程教学资源(PPT课件)第6章 VHDL设计共享.ppt
- 广东海洋大学:《VHDL程序设计语言》课程教学资源(PPT课件)第5章 VHDL主要描述语句.ppt
- 广东海洋大学:《VHDL程序设计语言》课程教学资源(PPT课件)第4章 VHDL编程基础.ppt
- 广东海洋大学:《VHDL程序设计语言》课程教学资源(PPT课件)第3章 集成开发平台QuartusII操作基础.ppt
- 广东海洋大学:《VHDL程序设计语言》课程教学资源(PPT课件)第2章 可编程逻辑器件.ppt
- 广东海洋大学:《VHDL程序设计语言》课程教学资源(PPT课件)第1章 概述.ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Basics of Computer System.ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Database.ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Microsoft Excel.ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Fundamentals of Computers Introduction(负责人:臧笛).ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Basics of Multimedia 1.ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Mail Merge.ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Basics of Multimedia 2.ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Fundamentals of Network 1.ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Fundamentals of Network 2.ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Operating system 1.ppt
- 同济大学:《大学计算机基础》课程教学资源(教案讲义)Operating system 2.ppt
- 南京大学:《计算理论之美》课程教学资源(课件讲稿)Cluster expansion lemma.pdf
- 南京大学:《计算理论之美》课程教学资源(课件讲稿)Color Coding.pdf
- 南京大学:《计算理论之美》课程教学资源(课件讲稿)Distributed Consensus Reaching Agreement in Faulty Environment.pdf
- 南京大学:《计算理论之美》课程教学资源(课件讲稿)Principles of Quantum Computation.pptx
- 南京大学:《计算理论之美》课程教学资源(课件讲稿)Some efficient algorithms for the k-vertex cover problem.pdf
- 南京大学:《计算理论之美》课程教学资源(课件讲稿)Lovász Local Lemma(LLL).pdf
- 南京大学:《计算理论之美》课程教学资源(课件讲稿)Perfect Sampling for(Atomic)Lovász Local Lemma.pptx
- 南京大学:《计算理论之美》课程教学资源(课件讲稿)An introduction to quantum error-correction.pdf
- 南京大学:《计算理论之美》课程教学资源(课件讲稿)Lovász local lemma(Shearer).pdf