Computational Thinking Flashcards
(58 cards)
Computational Thinking Techniques
-Pattern matching. -Abstraction. -Decomposition. -Algorithms
Pattern Matching
identifying when one problem is similar to a different problem and solving this problem using the same method
Abstraction
removing irrelevant details and reducing a problem down to essential elements
Decomposition
breaking a complex task down into smaller and simpler tasks
Algorithms
sequence of steps used to solve a problem
Continuous data
analog data. Has an infinite number of potential values. E.g. height 1.8 1.82 1.8254
Discrete data
distinct seperate values for data. E.g. Number of students in a room
Bit
1 binary digit. 0 or 1
Byte
8 bits. 0 to 255
Kilobyte
1024 bytes(because 2 to the power of ten is 1024)
Megabyte
1024 kilobytes (2 to the power of 20 bytes)
Converting binary to decimal
write table
Benefits of binary numbers in computers
-simple and quick to carry out operations for computers.
-binary signals are less affected by noise than others.
-easy to make exact copies of digital info
Hexadecimal
base 16. So positions are powers of 16
How to convert from decimal to hexadecimal
divide by 16 and write down number then divide the remainder by 16 and repeat from left to right
Why is hexadecimal useful
provides a way of representing numbers using fewer digits. Only uses 2 digits can represent numbers up to 255 which would require 8 digits in binary
Do computers use hexadecimal
not but programmers use them as shorthand for binary as they are easier to understand and remember
Character set
collection of characters that are used for a purpose. English uses the roman character set.
ASCII
character set allowed for 128 characters using 7 bit binary
Extended ASCII
allowed 256 characters using 8 bit binary
Limitations of ASCII
only set number of characters(128 / 256) that did not include non-roman character sets for languages like Chinese or Russian. Or symbols like emojis
Unicode
universal standard character set that is being extended regularly. Includes characters for all major languages and symbols like emojis
UTF-8
Unicode Transformation Format. Uses 8 bit blocks to represent a character. Method for encoding to save space taken up by unicode. Backwards compatible with ASCII
How UTF-8 works
uses 1 to 4 bytes for each character. Only uses necessary number of bytes for each character saving space