COMP 1001 Lecture Notes - Lecture 4: Binary Number, Vote Counting, Elementary Arithmetic
Document Summary
Comp 1001: binary numbers (lecture 4) 2016-09-17 9:26 pm: refresher, analog data represents information that can assume any value, digital data represents information using only a specifi. Counting numbers are abstract: counting numbers are abstract concepts used to quantify how much of something there is, we"re used to using the decimal number system, like 5 bananas. Counting using the tally system: a tally system is a number system where each marking indicates a unit a common one would represent 5. Decimal: positional system with ten digits, digit positions matter, unlike in tally systems, e. g. Binary: based on two digits- 0 and 1, binary numbers are often prefixed by 0b to indicate their base, e. g. Counting in binary: 0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 10000, 10001, 10010. Binary arithmetic: basic arithmetic (+,-, etc. ) works exact same in binary, when adding 1+1, carry the 1 because it"s same as 10 in decimal.