DBA 2 Study Guide
DBA 2 Study Guide
Function
The function of a computing innovation is the steps it takes to work.
Developers define the function of computing innovations with as many
details as possible to help make sure they don't miss anything when they
begin creating it.
Pseudocode
Before developers create the functionality of an app or computing
innovation, they map out its logic using pseudocode. Pseudocode is an
algorithm's logic expressed by natural language, flowcharts, or
programming-like blocks or text.
Data Compression
A file compression program can reduce a file's size by 40 to 80 percent.
Smaller files mean you can store more data. Computers, smart phones and
tablets use data compression to make files smaller. Data sent over the
internet also uses compression. cellular provider, internet provider, and the
social media app all use data compression to help the image upload as fast
as possible. Social media apps also apply additional compression to shrink
the image size so they can store the millions of photos uploaded daily.
Computing devices and programs use data compression to decrease the
number of bits in text, numbers, images, video, and audio data. Smaller data
files use less storage space and transmit faster. Data compression reduces
the amount of data that is stored or transmitted through two different kinds
of algorithms: lossless and lossy. Both algorithms work by removing bits
from the original data to make smaller files.
2 Types of Data Compression:
1 23 8
1 22 4
0 21 0
0 20 0
3 Result
1100 (base 2) = 12 (base 10)
Let's Try Another
Convert 11101001 to a decimal number.
1 Multiply Each Digit
Multiply each digit by its place value. Binary numbers only have two digits, 0
or 1, and are expressed in powers of 2. To calculate, multiply each digit in the
binary number by its place.
1 27 128
1 26 64
1 25 32
0 24 0
1 23 8
0 22 0
0 21 0
1 20 1
3 Result
11101001 (base 2) = 233 (base 10)
Decimal to Binary
The method to convert decimal numbers to binary numbers uses
a recursive process of repeatedly dividing by 2 while keeping track of the
remainders. Once the quotient equals 0, write the remainders from last to
first.
Let's look at an example by converting the decimal number 25 to binary.
1 Divide by 2
Divide the given number by 2 and continue until the quotient equal 0.
2 0
3 0
Ste Remaind Direction to Write
p er Binary Digit
4 1