data rep+fundamentals of algorithm Flashcards

1
Q

number base

A

-number of digits used to represent numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

decimal number base

A

-base of 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

binary number base

A

-base=2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

hexadecimal number base

A

-base value 16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

purpose of hexadecimal

A

-large numbers can be shown with fewer digits
-used to show memory addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

using hexadecimal to write numbers

A

if number >16, divide by 16 and use the amt it divided by, and the remainder, use each number as a hex
i.e:
8 to hexadecimal:
8

22 to hex:
22/16 = 1 remainder 6
1=Hex 1
6 = hex 6
ans=16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

bit

A

smallest unit of data, rep by 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

byte

A

8 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Kilobyte

A

1000 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

megabyte

A

1000 kilobytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

gigabyte

A

1000 megabytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

petabyte

A

1000 gigabyte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

character set

A

-defined post of recognised characters that can be stored in a computer system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

ASCII

A

—uses 7 bits, up to 128

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

unicode

A

-uses 2 bytes, uo to 65k+ characters, universal character set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

pixel

A

-single point in an image, 1 pixel=1 binary code

17
Q

what factors affect file size?

A

size:
le image=larger file
colour depth:
-more colour depth = larger image file

18
Q

analogue

A

data that varies in value

19
Q

sound sampling

A

process where analogie wave is converted to digital signal

20
Q

sampling rate

A

-measured in Hz
-number of samples/second taken from analogue signal to convert it to digital

21
Q

sample resolution

A

-number of bits used to represent each sample

22
Q

calculating file size

A

sample resolution x rate x length

23
Q

data compression

A

-reducing data size but keeping most/all info
—faster transmission, saves space

24
Q

huffman trees

A

-lossless compression
-follow path, most used at top, least popular at bottom
-find total, x by frequency, compare with how much would’ve taken in ascii

25
Q

RLE run length coding

A

-lossless compression
-freq table, where how many times show up in a row
e.g:
book = b(1) o (2) k (1)
-good for large texts, images w same colour

26
Q

algorithm

A

set of instructions for carrying out a task

27
Q

flowchart symbols

A

-rectangle=process/instruction
-parallelogram=input/output
-diamond=decision
-oval=start/stop
-weird rectangle w lines=subroutine

28
Q

decomposition

A

-breaking problem into smaller, more manageable chunks

29
Q

abstraction

A

-removing unnecessary detail from problem

30
Q

efficiency

A

-shorter=more efficient