Podcast
Questions and Answers
In a positional notation system, what determines the weight of each digit?
In a positional notation system, what determines the weight of each digit?
- The digit's position. (correct)
- The digit's shape.
- The digit's inherent value.
- The digit's color.
What is the base of the decimal system?
What is the base of the decimal system?
- 2
- 10 (correct)
- 8
- 16
Which of the following is NOT a common association for the two symbols used in the binary system?
Which of the following is NOT a common association for the two symbols used in the binary system?
- Red - Blue (correct)
- Yes - No
- On - Off
- True - False
In the context of number systems, if 'n' represents the number of symbols, what is the maximum decimal value representable?
In the context of number systems, if 'n' represents the number of symbols, what is the maximum decimal value representable?
To convert a whole number from another base to decimal, which method is used?
To convert a whole number from another base to decimal, which method is used?
When converting fractions from another base to decimal, what operation is performed on each digit after the radix point?
When converting fractions from another base to decimal, what operation is performed on each digit after the radix point?
What are the methods to convert from decimal to other bases?
What are the methods to convert from decimal to other bases?
What is the criterion to stop successive multiplications when converting a decimal fraction to another base?
What is the criterion to stop successive multiplications when converting a decimal fraction to another base?
How many bits correspond to one octal digit?
How many bits correspond to one octal digit?
How many bits correspond to one hexadecimal digit?
How many bits correspond to one hexadecimal digit?
In binary addition, what is the result of 1 + 1?
In binary addition, what is the result of 1 + 1?
In binary subtraction, what happens when you subtract 1 from 0?
In binary subtraction, what happens when you subtract 1 from 0?
What is the result of 3 + 5 in octal?
What is the result of 3 + 5 in octal?
What is the result of 9 + 2 in hexadecimal?
What is the result of 9 + 2 in hexadecimal?
In the context of number complements, what mathematical operation do digital computers primarily rely on?
In the context of number complements, what mathematical operation do digital computers primarily rely on?
In the equation $X + X' = 10^n$ for number complements, what does 'n' represent?
In the equation $X + X' = 10^n$ for number complements, what does 'n' represent?
What is the term for 'Complement to the base - 1'?
What is the term for 'Complement to the base - 1'?
What benefit does using complements offer in computing?
What benefit does using complements offer in computing?
Besides performing subtractions via addition, what is another application of number complements?
Besides performing subtractions via addition, what is another application of number complements?
Flashcards
Positional Notation
Positional Notation
Each digit has a different weight according to its position.
Decimal System
Decimal System
Consists of ten symbols with a base of 10.
Binary System
Binary System
Composed of two symbols (0 and 1), with a base of 2.
Bit
Bit
Signup and view all the flashcards
Octal System
Octal System
Signup and view all the flashcards
Hexadecimal System
Hexadecimal System
Signup and view all the flashcards
Base Conversion to Decimal
Base Conversion to Decimal
Signup and view all the flashcards
Fraction Conversion
Fraction Conversion
Signup and view all the flashcards
Decimal to Other Bases
Decimal to Other Bases
Signup and view all the flashcards
Terminating Fraction Conversion
Terminating Fraction Conversion
Signup and view all the flashcards
Bases Octal/Hexadecimal
Bases Octal/Hexadecimal
Signup and view all the flashcards
Binary Addition: 1 + 1
Binary Addition: 1 + 1
Signup and view all the flashcards
Number Complement
Number Complement
Signup and view all the flashcards
Digital Arithmetic Basis
Digital Arithmetic Basis
Signup and view all the flashcards
Methods for Complements
Methods for Complements
Signup and view all the flashcards
Complement Uses
Complement Uses
Signup and view all the flashcards
Study Notes
Computer Architecture - Numeric Systems
- This is chapter 2 of the computer architecture series
- The information covers numerical systems
Agenda
- The agenda includes positional notation systems
- Methods for converting integers and fractional numbers
- Fundamental operations in binary, octal, and hexadecimal systems
- The concept of a number's complement is also covered
Positional Notation Systems
- In positional notation, each digit or symbol has a distinct weight based on its position
- N = dn * B^n + dn-1 * B^(n-1) + ... + d1 * B^1 + d0 * B^0, shows how to calculate a number's value
Decimal System
- The decimal system has ten symbols, making its base equal to 10
- Numbers can be converted by summing symbols multiplied by their weight, according to a formula
Binary System
- Composed of two symbols; its base is 2
- Traditionally referred to as bits
- Binary symbols can associate with "states" like OFF/ON, False/True, or No/Yes
Octal and Hexadecimal Systems
- The octal system uses eight symbols and has a base of 8
- The hexadecimal system uses sixteen symbols and has a base of 16
Equivalencies Between Number Systems
- A table shows the equivalents between decimal, binary, octal, and hexadecimal
- Decimal 0-15, Binary 0-1111, Octal 0-17, Hexadecimal 0-F
Max Representable Quantity in Decimal
- If n symbols are available, decimals between 0 and B^n - 1 can be represented
- Binary: 2^n
- Octal: 8^n
- Hexadecimal: 16^n
Conversion of other Bases to Decimal
- To convert integers, the formula mentioned previously is use: N = dn * B^n + dn-1 * B^(n-1) + ... + d1 * B^1 + d0 * B^0
Conversion of Fractions
- Each symbol is multiplied by the base raised to the negative power of its position after the decimal point
- The previous formula can be expanded and generalized
Conversion of Decimal to other Bases
- Conversion from decimal to other bases can be done using successive divisions or an algorithm of successive subtractions
Conversion of Decimal Fractions to other Bases
- Multiply the fraction by the base
- Separate the result into integer and fractional parts
- Use the resulting fraction in a new multiplication
- The successive multiplications end when the fractional part equals zero or a periodicity is detected
Direct Conversion Between Bases 2 & 8 - 2 & 16
- Octal and hexadecimal systems emerged as shorthand for the binary system
- 3 bits (binary symbols) correspond to one octal symbol
- 4 bits correspond to one hexadecimal symbol
Binary/Octal/Hexadecimal Chart
- Binary 000-111, Octal 0 - 7, Binary 0000 - 1111, Hexadecimal 0 - F
Fundamental Operations in Binary
- For addition:
- 0 + 0 = 0
- 0 + 1 = 1
- 1 + 0 = 1
- 1 + 1 = 0 (with a carry of 1)
- For subtraction:
- 0 - 0 = 0
- 1 - 0 = 1
- 0 - 1 = 1 (borrows from the next position)
- 1 - 1 = 0
Fundamental Operations in Octal and Hexadecimal
- Octal Addition Examples:
- 1 + 5 = 6
- 2 + 3 = 5
- 3 + 5 = ???
- Hexadecimal Addition Examples:
- 1 + 5 = 6
- 2 + 3 = 5
- 3 + 5 = 8
- 9 + 2 = ????
- A method exists for adding large numbers in these systems
Complement of a Number
- Digital computers base their arithmetic operations mainly on addition
- The complement of a number must satisfy the equation: X + X' = 10^n, where n is the number of digits being complemented
- Two methods exist for obtaining the complement of a number
Number Complements Method
- Complement to the base, or the radix complement: X + X' = B^n => X' = B^n - X
- Base-1 complement, or diminished radix complement: X + X' = B^n - 1 => X' = (B^n - 1) - X
- Complements facilitate subtraction through addition and representing signed numbers
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.