Representing text, sound and images
導入済み
15:06
コンピュータが二進数を使う理由
プロセッサの中には数十億の微小なスイッチがあります。それぞれはオンかオフかのいずれかしかできません。これがコンピュータの物理的な全てです—三も七もありません…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| binary/ˈbaɪnəri/ | A number system using base two, with the digits zero and one. |
| data/ˈdeɪtə/ | Recorded facts, observations or values used for analysis or processing. |
| file/faɪl/ | A named collection of data stored and managed as a unit. |
| character/ˈkærɪktə/ | A text unit such as a letter, digit, punctuation mark or other symbol. |
| character set/ˈkærɪktə set/ | 文字集合 |
| ASCII/ˈæski/ | ASCIIコード |
| bits/bɪts/ | |
| Unicode/ˈjuːnɪkəʊd/ | ユニコード |
| storage/ˈstɔːrɪdʒ/ | |
| sound wave/saʊnd weɪv/ | A vibration that travels through a material as changes in pressure. |
| sampling/ˈsæmplɪŋ/ | サンプリング |
| Sample rate/ˈsæmpl reɪt/ | Samples per second (Hz ). |
| samples | |
| Hz | |
| sample resolution/ˈsæmpl ˌrezəˈluːʃn/ | サンプリング分解能 |
| resolution/ˌrezəˈluːʃn/ | 解像度 |
| amplitude/ˈæmplɪtjuːd/ | The maximum displacement from an equilibrium position. |
| bitmap image | A grid of dots — pixels. |
| pixels/ˈpɪkslz/ | ピクセル |
| Colour depth/ˈkʌlə depθ/ | The number of bits per pixel. |
| file size |
バイナリにおけるテキスト、音声、画像
- データには数字だけでなく、テキスト、音声、画像も含まれ、これらもすべてバイナリに変換されます。
- それぞれ独自の手法があります。
- どこでも共通するトレードオフ:高品質ならファイルサイズが大きくなります。
文字の表現
- 各文字には番号が割り当てられ、バイナリで格納されます。文字とその番号の組み合わせ全体を文字セットと呼びます。
- ASCII: ASCIIは7ビットを使用 → 128文字(英語の文字、数字、記号で十分)。
- ユニコード: より多くのビットを使用 → はるかに多くの文字(多言語、記号、絵文字)—but 同じテキストでもより多くのストレージが必要です。


音声の表現
y = a sin(bt + c)
Sound is a 波動として扱う; sampling records its height many times a second.
How many different characters can 7-bit ASCII represent?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
7 bits give 2^7 = 128 characters.
Compared with ASCII, Unicode:
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Unicode covers many languages and emoji, needing more bits — so the same text is larger than in ASCII.
Match each idea to what it means.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
More bits can represent more characters or colours, or give greater sample resolution; sample rate is the number of samples per second.
音声の表現
- 音波は滑らかな波形ですが、コンピュータで記録するには一定間隔で高さ(振幅)を測定する必要があります——サンプリング。
- サンプルレート=秒あたりのサンプル数(Hz);サンプル分解能=サンプルあたりのビット数。
- レートと分解能が高いほど正確な録音になりますが、ファイルが大きくなります。


The sample rate of a sound recording is:
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Sample rate = samples per second (Hz); sample resolution = bits per sample.
画像の表現
- ビットマップ画像はドットのグリッド——ピクセルです。
- 解像度=ピクセルの数(例:$1920 \times 1080$)。
- カラー深度=ピクセルあたりのビット数。
- 解像度とカラー深度が高いほど高品質ですが、ファイルが大きくなります。


The colour depth of an image is:
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Colour depth is bits per pixel — more bits means more possible colours.
Increasing an image's resolution and colour depth will:
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
More pixels and more bits per pixel mean better quality but a larger file.
例題:色深度を上げる
同じ解像度の写真を、最初は色深度8ビット、次に24ビットで保存します。それぞれ何色を表示でき、ファイルサイズはどうなりますか。
- 色数は$2^{\text{colour depth}}$です。8ビットでは$2^8 = 256$色、24ビットでは$2^{24}$色、つまり約16.7百万色を表せるため、色の階調が滑らかに見えます。
- 各画素に必要なビット数が8ビットから24ビットになるため、画素数が同じならファイルサイズは3倍になります。品質を高めるには、常に記憶容量が必要です。
How many different colours can an image with a colour depth of 4 bits show?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
$2^4 = 16$.
A recording's sample rate is doubled and nothing else changes. What happens?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Twice as many samples per second follow the wave more closely, and each sample needs storing.
理解できましたか
- 文字:文字セットが文字を番号にマッピング;ASCII=7ビット(128)、ユニコード=もっと多い(絵文字)、ファイルサイズ大
- 音声:サンプリングが波形を記録;サンプルレート(Hz)+サンプル分解能(ビット)
- 画像:ピクセル;解像度(ピクセル数)+カラー深度(ビット/ピクセル)
- すべてにおいて:高品質 → ファイルサイズ大
何が問題でしたか?この内容はサイトの運営チームだけが確認します。