#separator:tab
#html:true
#tags:analog-and-digital-quiz
#columns:Front Back
"
What does it mean for a quantity to be ""analog""?
- It changes continuously: between any two values there are always more.
- It comes from a device that works without a computer or program, such as an amplifier or a record player.
- It belongs to an older, mechanical technology, as with analog photography or the vinyl record.
- It can only be determined roughly: its value is never exact, only ever an estimate.
" - It changes continuously: between any two values there are always more.
Exactly: continuous means there is no smallest step. The brightness of light is such a quantity, and a light sensor looks at exactly such a world.
Analog means stepless, with another value between any two; age, mechanics and the absence of a computer have nothing to do with it.
What characterises a digital system?
- It works electronically: its states are represented by current or voltage.
- It knows only finitely many, clearly separated states.
- It is automatically more precise than an analog system.
- It stores information as characters and text, so that a person could in principle read it.
"- It knows only finitely many, clearly separated states.
That is the definition. Everything else about digital follows from the two words ""finite"" and ""separated"".
Digital means finitely many states with nothing valid in between, whatever carries them.
"
A signal carries the same noise three times; only the number of regions it is divided into grows from two to four to eight. Why do the readings still become less reliable the more regions there are?
- Because the noise grows with every additional boundary: each boundary adds its own disturbances to the signal.
- Because the distance between regions shrinks until the same disturbance reaches into the neighbouring region.
- Because the sensor measures less precisely at fine steps: it can no longer resolve small differences between neighbouring regions cleanly.
- Because more regions cost more computing time and readings get lost.
- Because the distance between regions shrinks until the same disturbance reaches into the neighbouring region.
Exactly: the noise does not grow, the safety margin shrinks. The distance between regions is the reserve against disturbance, and it is spread over ever more boundaries.
Not the noise grows but the margin shrinks, because the same range is cut into more and narrower regions.
Digitising splits a continuous range of values into finitely many regions. Which statements are true?
- All values within the same region count as one and the same state afterwards.
- With enough steps, the difference to the analog quantity disappears completely.
- Digitising cleans the signal of disturbances, because afterwards only the region counts and no longer the exact value.
- The original exact value cannot be recovered from the digital version.
- Digitising only works for signals such as light and sound that can be described as waves.
- All values within the same region count as one and the same state afterwards.
That is the core: differences within a region are deliberately given up so that the differences between regions count. - The original exact value cannot be recovered from the digital version.
Correct: which of the infinitely many values in the region it was can no longer be determined after the assignment. Digitising is a one-way street.
Inside a region every difference is given up for good, and that is exactly what makes the differences between regions reliable.
Digital technology throws information away when digitising and is still more reliable than analog. Why?
- Because the few states are far apart: a small disturbance does not change the state and vanishes without trace at the next reading.
- Because digital components do not produce noise: they only switch between on and off, and no disturbance arises in doing so.
- Because less information is transferred, so fewer errors can happen.
- Because computers automatically detect and remove errors as soon as a value does not fit its surroundings.
- Because the few states are far apart: a small disturbance does not change the state and vanishes without trace at the next reading.
Exactly: the discarded precision is the price, the purchased distance is the reserve. As long as the disturbance stays smaller than the distance, every reading erases it completely.
Digital is reliable because it throws precision away: disturbances smaller than the distance between states vanish at every reading.
"A program reads a brightness value from a sensor and then compares it with a threshold. In terms of digitising, what does the comparison value > 250 do?
value = sensor.read()
if value > 250:
symbol = ""bright""
else:
symbol = ""dark""
- It converts the analog light into a digital value, since only after the comparison is there a genuine digital state.
- It measures the brightness a second time, as a check, so that an outlier from the first measurement does not slip through.
- It draws the boundary that reduces many possible numbers to two meaningful states: this is where an alphabet is made.
- It increases the precision of the measured value, because a fluctuating number becomes an unambiguous result.
" - It draws the boundary that reduces many possible numbers to two meaningful states: this is where an alphabet is made.
Exactly: the sensor delivers hundreds of possible values, and only the boundary turns them into symbols. Where it lies and how many boundaries there are is a design decision.
The sensor digitises the light into numbers; the threshold is the decision that turns numbers into symbols.
A music cassette audibly loses quality with every dubbing; a copied file is identical even after the thousandth copy. Why?
- Because files are stored compressed, so less data can break during copying.
- Digital copying reads states and sets them afresh; small disturbances below the distance between states vanish completely each time.
- Because computers copy far faster than a cassette deck, there is hardly any time for disturbances to creep in.
- Because files are not rewritten when copied, only linked; no second version actually comes into being.
- Digital copying reads states and sets them afresh; small disturbances below the distance between states vanish completely each time.
Exactly: every digital copy is a rebirth from clean states. The cassette copies the continuous waveform with all its noise and adds its own on top, every generation.
Reading a state and setting it afresh erases every disturbance smaller than the distance between states, which is why digital copies do not age.
"What does it mean to ""digitise"" a signal?
- To represent it by a finite sequence of numbers.
- To put it into a form that can be transmitted over the internet.
- To shrink it so it needs less storage.
- To record it with an electronic device rather than a mechanical one.
" - To represent it by a finite sequence of numbers.
Exactly. That is all the word contains: measure, and assign the measurements to finitely many states. What the numbers mean is settled afterwards by coding.
Digitising means nothing more than representing a signal by a finite sequence of numbers.
A link sends data with light: a program sets the brightness of an LED with numbers from 0 to 255, and a colour sensor at the other end turns the light back into numbers. Where is the boundary between analog and digital?
- Already at the sender: because the LED is driven with numbers from 0 to 255, its light is digital too.
- Only in the program at the receiving end, when it compares the reading with a threshold.
- In the colour sensor: it turns the continuous light into numbers, and from there on everything computes with numbers.
- Nowhere: the whole link is digital because there are computers at both ends.
- In the colour sensor: it turns the continuous light into numbers, and from there on everything computes with numbers.
Exactly. The whole link runs digital, analog, digital: the sender turns numbers into light, the light travels continuously and disturbed through the room, and the sensor turns it back into numbers. The analog middle is the part no program controls, and that is where the reliability of the link is decided.
Digital, analog, digital: the boundaries sit at the LED and in the sensor, and the middle belongs to physics.
Which of these things work digitally in the sense of this concept, that is, with finitely many clearly separated states?
- A continuously variable light dimmer
- A light switch with on and off
- A dial thermometer
- A die
- An hourglass
- A light switch with on and off
Two states, and nothing in between counts: digital in its purest form, with no computer involved. Half-pressed is not a valid state; the switch snaps into one of the two. - A die
Six states, and nothing valid in between: a die on its edge tips into one position. Exactly this snapping into separated states is what digital means.
Whatever snaps into one of finitely many states is digital, with or without a chip.
You design an alphabet of colours for a link that sends data with light and decide how many colours it has. What is the core of this decision?
- A trade-off: more colours carry more per reading but push the regions closer together, and how many are safe is decided by measurements.
- More colours pay off, because each reading then carries more bits and the transmission gets correspondingly faster.
- Two colours are the safe choice, because the largest distance brings the fewest errors and an error costs more than a little speed.
- The number is a matter of taste as long as calibration is done properly: calibration puts the boundaries where they are safe.
- A trade-off: more colours carry more per reading but push the regions closer together, and how many are safe is decided by measurements.
Exactly: there is no generally correct number, only the correct number for a given setup, its light and its noise. That is why the best-measured alphabet wins, not the boldest.
The size of an alphabet is a trade-off between speed and margin, and the wobble of the readings decides it.
When digitising a photo, the continuous image becomes 64 × 64 points with 256 brightness levels each. Which of the two steps is the sampling?
- Rounding each brightness to one of the 256 agreed levels.
- Converting the finished level values into binary numbers.
- Slicing the continuous image area into the 64 × 64 measurement points.
- Storing the image points in a file with header data.
- Slicing the continuous image area into the 64 × 64 measurement points.
Exactly: sampling slices the axis, area or time, into finitely many measurement points, and how finely is the resolution. Quantising then slices the measured value into levels.
Sampling cuts the axis into points, quantising cuts the value into levels.
A greyscale picture is digitised with 100 × 100 points and 8 bits per point. How large is the resulting file?
- 80,000 bytes, because 100 · 100 · 8 makes 80,000.
- 10,000 bytes, because 100 · 100 · 8 = 80,000 bits, and 8 bits make one byte.
- 30,000 bytes, because every point needs three colour channels of one byte each.
- 1,250 bytes, because the 100 · 100 bits are further divided by 8.
- 10,000 bytes, because 100 · 100 · 8 = 80,000 bits, and 8 bits make one byte.
Exactly: points times bits per point gives the size in bits, and divided by 8 the size in bytes. This one calculation carries every estimate of a file size.
Points times bits per point gives bits, and eight bits make a byte.
A digitised photo shows clearly visible blocks, but the colours within the blocks look natural and finely graded. Which step of digitising was too coarse?
- The sampling: too few points for the area.
- The quantising: too few levels per colour channel.
- The transfer: noise accumulated while copying the file.
- Both steps equally: blocks always arise from the interplay.
- The sampling: too few points for the area.
Exactly: blocks are visible sampling points. The colour depth was evidently sufficient, otherwise you would see stripes in the gradients or hard jumps in colour.
Blocks mean too few points, hard patches in soft shading mean too few levels.
Why not simply digitise a picture at the highest resolution and with 24 bits of colour depth before sending it over a slow link that carries 30 bits per second?
- Because a colour sensor at the receiving end measures only three channels, so at most 3 bits per point can arrive.
- Because large files pick up more noise in transfer than small ones.
- Because more than 8 bits of colour depth cannot be displayed on the receiver's screen.
- Because every point and every level costs bits, and at 30 bits per second a large picture would take hours.
"- Because every point and every level costs bits, and at 30 bits per second a large picture would take hours.
Exactly: points times bits per point gives the file size, and the rate of the link turns it into time; 256 × 256 points in full colour would take more than 14 hours. Digitising therefore means weighing which detail is worth the time.
On a slow link every kept bit costs time, so the resolution and the colour depth are a trade-off, not a matter of ""as fine as possible"".
"