How exactly does binary code work? - José Américo N L F de Freitas

1,375,955 views ・ 2018-07-12

TED-Ed


ဗီဒီယိုကိုဖွင့်ရန် အောက်ပါ အင်္ဂလိပ်စာတန်းများကို နှစ်ချက်နှိပ်ပါ။

Translator: Sanda Aung Reviewer: Myo Aung
00:06
Imagine trying to use words to describe every scene in a film,
0
6777
4638
ရုပ်ရှင်ထဲက ပြကွက်တိုင်းကို၊ ခင်ဗျားတို့ စိတ်ကြိုက် သီချင်းထဲက သံစဉ်တိုင်းကို
ဒါမှမဟုတ် သင့်မြို့ထဲက လမ်းတိုင်းကို စကားလုံးများသုံးပြီး
00:11
every note in your favorite song,
1
11415
1903
00:13
or every street in your town.
2
13318
2717
ဖေါ်ပြပေးရမှာကို စိတ်ကူးကြည့်ပါ။
00:16
Now imagine trying to do it using only the numbers 1 and 0.
3
16035
4824
အခုဆက်ပြီး အဲဒါကိုပဲ နံပါတ်တွေ ၁ နှင့် ၀ ဖြင့် ဖေါ်ပြရန် စိတ်ကူးကြည့်ပါ။
ကျုပ်တို့က အင်တာနက်ကို အသုံးပြုပြီး ရုပ်ရှင်ကြည့်ရန်၊
00:20
Every time you use the Internet to watch a movie,
4
20859
2895
သီချင်းကို နားထောင်ရန်၊
00:23
listen to music,
5
23754
1109
ဒါမှမဟုတ် ကိုယ်သွားရမယ့် လမ်းကြောင်းကို ရှာရန်
00:24
or check directions,
6
24863
1486
00:26
that’s exactly what your device is doing,
7
26349
2510
ကြိုးပမ်းတိုင်းမှာ ကျုပ်တို့ ကိရိယာက အဲဒီလို လုပ်ပေးနေရတာပါ။
00:28
using the language of binary code.
8
28859
2953
ဘိုင်နရီကုဒ် ဆိုတဲ့ ဘာသာစကားကို သုံးရပါတယ်။
00:31
Computers use binary because it's a reliable way of storing data.
9
31812
4690
ကွန်ပျူတာတွေက ဘိုင်နရီကို သုံးကြတာက အဲဒါက ဒေတာ သိုလှောင်ဖို့ စိတ်ချရလို့ပါ။
00:36
For example, a computer's main memory is made of transistors
10
36502
4075
ဥပမာ၊ ကွန်ပျူတာရဲ့ အဓိက မယ်မိုရီကို ထရန်စစ္စတာတွေနဲ့ လုပ်ထားပြီး
00:40
that switch between either high or low voltage levels,
11
40577
3577
၎င်းတို့ဟာ မြင့် ဒါမှမဟုတ် နိမ့်တဲ့ ဗိုလ်အား ရှစ်ဆင့်အထိ ပြောင်းပေးနိုင်တယ်။
00:44
such as 5 volts and 0 volts.
12
44154
3490
ဥပမာ၊ ၅ ဗို့နဲ့ ၀ ဖို့ဆိုပါစို့။
00:47
Voltages sometimes oscillate, but since there are only two options,
13
47644
4106
ဗို့အားဟာ ရံဖန်ရံခါမှာ ကစားတတ်ပါတယ်၊ ဒါပေမဲ့ ရွေးစရာက နှစ်ခုတည်း ဆိုတော့
00:51
a value of 1 volt would still be read as "low."
14
51750
4001
၁ ဗို့အားကို "နိမ့်"တဲ့ တန်ဖိုးလို့ ဖတ်နိုင်ပါတယ်။
00:55
That reading is done by the computer’s processor,
15
55751
2529
အဲဒီလို ဖတ်ရှုမှုကို ကွန်ပျူတာရဲ့ ပရိုဆက်ဆာက လုပ်ပေးပြီး၊
00:58
which uses the transistors’ states to control other computer devices
16
58280
4315
ဆော့ဝဲရဲ့ ညွှန်ကြားချက်များနှင့်အညီ ကွန်ပျူတာထဲက အခြား ကိရိယာတွေကို
01:02
according to software instructions.
17
62595
2196
ထိန်းချုပ်ရန် ထရန်စစ္စတာရဲ့ အခြေအနေကို သုံးပါတယ်။
01:04
The genius of this system is that a given binary sequence
18
64791
3341
ဒီစနစ်ရဲ့ အံ့ဖွယ်အချက်က ဘိုင်နရီ အစဉ်တစ်ခုဆီမှာ
01:08
doesn't have a pre-determined meaning on its own.
19
68132
3388
ကြိုတင်ဆုံးဖြတ်ပြီးသား ကိုယ်ပိုင် အဓိပ္ပါယ် မရှိခြင်းပါ။
01:11
Instead, each type of data is encoded in binary
20
71520
3685
အဲဒီအစား ဒေတာအမျိုးအစား တစ်ခုစီကို သီးခြား စည်းကမ်းချက်များနှင့်အညီ
01:15
according to a separate set of rules.
21
75205
2910
ဘိုင်နရီ ကုဒ်နှင့် ရေးပေးရတာပါ။
01:18
Let’s take numbers.
22
78115
1382
ဂဏန်းတွေကို ယူကြည့်ကြပါစို့။
01:19
In normal decimal notation,
23
79497
1682
ပုံမှန် ဆယ်လီစနစ်ထဲတွင်
01:21
each digit is multiplied by 10 raised to the value of its position,
24
81179
4853
ညာဘက်ရှိ သုညမှ စတင်လျက် နံပါတ်တိုင်းကို ၎င်းရဲ့ နေရာတန်ဖိုးကို
01:26
starting from zero on the right.
25
86032
2451
တစ်ဆယ်နဲ့ မြှောက်ယူရတယ်။
01:28
So 84 in decimal form is 4x10⁰ + 8x10¹.
26
88483
6557
ဒီတော့ ဆယ်လီပုံစံထဲတွင် ၈၄ ဟာ ၄x၁၀⁰ + ၈x၁၀¹ ဖြစ်ပါတယ်။
01:35
Binary number notation works similarly,
27
95040
2715
ဘိုင်နရီ နံပါတ်ကို ရေးမှတ်ပုံဟာ ဆင်တူပါပဲ။
01:37
but with each position based on 2 raised to some power.
28
97755
3806
ဒါပေမဲ့ နံပါတ်ရဲ့ နေရာကို ၂ ရဲ့ ထပ်ကိန်းသို့ မြှောက်ယူရတယ်။
01:41
So 84 would be written as follows:
29
101561
4012
အဲဒါကြောင့် ခုနက ၈၄ ကို အောက်ပါအတိုင်း ရေးရပါမယ်-
01:45
Meanwhile, letters are interpreted based on standard rules like UTF-8,
30
105573
4803
ပြီးတော့စာလုံးတွေကို UTF-8 နဲ့တူတဲ့ပုံမှန် စည်းကမ်းကို အခြေခံပြီး အနက်ကို ကောက်ရတယ်၊
01:50
which assigns each character to a specific group of 8-digit binary strings.
31
110376
5107
သင်္ကေတ တစ်ခုစီကို ဂဏန်း ၈ လုံး အုပ်စု တွေရဲ့ ဘိုင်နရီ လိုင်းဖြင့် ရေးပါတယ်။
01:55
In this case, 01010100 corresponds to the letter T.
32
115483
6906
ကျုပ်တို့ရဲ့ ကိစ္စထဲတွင်၊ ၀၁၀၁၀၁၀၀ ဟာ စာလုံး T ကို ဆိုလိုပါတယ်။
02:02
So, how can you know whether a given instance of this sequence
33
122389
3758
ဒီတော့ ကျုပ်တို့ မြင်ရတဲ့ ဂဏန်းအစဉ် တစ်ခုက
02:06
is supposed to mean T or 84?
34
126147
2685
T ဒါမှမဟုတ် ၈၄ ကို ဆိုလိုတာကို ဘယ်လိုလုပ် သိနိုင်မလဲ။
02:08
Well, you can’t from seeing the string alone
35
128832
3038
တကယ်တော့ လိုင်း တစ်ခုတည်းကို မြင်ရုံနဲ့ ပြောမရနိုင်ပါ၊
02:11
– just as you can’t tell what the sound "da" means from hearing it in isolation.
36
131870
4572
- "da" ဆိုတဲ့ အသံကို သီးခြားကြားရရင် ဘာဆိုလိုမှန်း ပြောမရနိုင်သလိုပါပဲ။
02:16
You need context to tell whether you're hearing Russian, Spanish, or English.
37
136442
4837
ကိုယ် ကြားနေရတာက ရုရှား၊ စပိန် ဒါမှမဟုတ် အင်္ဂလိပ်လား သိဖို့ စကားစပ် လိုအပ်တယ်။
02:21
And you need similar context
38
141279
1391
အလားတူပဲ ကိုယ်မြင်နေရတဲ့ဟာက
02:22
to tell whether you’re looking at binary numbers or binary text.
39
142670
4115
ဘိုင်နရီ နံပါတ်လား ဘိုင်နရီ စာသားလား သိဖို့အတွက်ပါ စကားစပ် လိုပါတယ်။
02:26
Binary code is also used for far more complex types of data.
40
146785
4361
ဘိုင်နရီ ကုဒ်ကို များစွာမှ ရှုပ်ထွေးတဲ့ ဒေတာကို ဖေါ်ပြရန် အတွက်လည်း သုံးပါတယ်။
02:31
Each frame of this video, for instance,
41
151146
2346
ဥပမာ၊ ဒီဗီဒီယိုရဲ့ ပုံရိပ် တစ်ခုစီကို
02:33
is made of hundreds of thousands of pixels.
42
153492
2468
pixel တွေ ထောင်ချီနဲ့ ဖွဲ့စည်းယူရတာပါ။
02:35
In color images,
43
155960
1681
ရောင်စုံ ပုံရိပ်တွေ ကျတော့၊
02:37
every pixel is represented by three binary sequences
44
157641
3454
pixel တိုင်းကို အခြေခံ အရောင်များနဲ့ ကိုက်ညီကြတဲ့
02:41
that correspond to the primary colors.
45
161095
2606
ဘိုင်နရီ နံပါတ်စဉ် သုံးခုဖြင့် ဖေါ်ပြရတယ်။
02:43
Each sequence encodes a number
46
163701
1786
အမှတ်အစဉ် တစ်ခုစီဟာ နံပါတ် တစ်ခုရဲ့ ကုဒ်ဖြစ်ပြီး
02:45
that determines the intensity of that particular color.
47
165487
3184
သက်ဆိုင်ရာ အရောင်ရဲ့ ပြင်းထန်မှုအားကို သတ်မှတ်ပေးတယ်။
02:48
Then, a video driver program transmits this information
48
168671
3929
အဲဒီနောက်မှာ၊ ဗွီဒီယို ဒရိုင်ဘာက အဲဒီ အချက်အလက်တွေကို
ကျုပ်တို့ စခရင်ထဲက သန်းချီရှိကြတဲ့ ပုံဆောင်ခဲပွင့်များထံသို့ ထုတ်လွင့်ပေးတယ်။
02:52
to the millions of liquid crystals in your screen
49
172600
2710
02:55
to make all the different hues you see now.
50
175310
2778
ဒီလိုနည်းဖြင့် ကျုပ်တို့ဟာ ပုံရိပ် မျိုးစုံကို မြင်နိုင်လာရတာပါ။
02:58
The sound in this video is also stored in binary,
51
178088
3314
ဒီဗီဒီယိုထဲက အသံကိုလည်း ဘိုင်နရီဖြင့် သိုလှောင်ထားပြီး၊
03:01
with the help of a technique called pulse code modulation.
52
181402
3404
pulse code modulation ဆိုတဲ့ နည်းပညာနဲ့ လုပ်ပေးပါတယ်။
03:04
Continuous sound waves are digitized
53
184806
2384
မီလီစက္ကန့်တိုင်းမှာ အသံအနိမ့်အမြင့် ပုံရိပ်တွေကို ဖမ်းယူပြီး
03:07
by taking "snapshots" of their amplitudes every few milliseconds.
54
187190
4392
ဒီဂျီတယ် ပုံစံသွင်းပေးခြင်းဖြင့် အသံကို ပြန်ဖေါ်ပေးနိုင်တယ်။
03:11
These are recorded as numbers in the form of binary strings,
55
191582
3665
အဲဒါတွေကို နံပါတ်များပါတဲ့ ဘိုင်နရီ လိုင်းအဖြစ် ဖမ်းယူပေးတယ်။
03:15
with as many as 44,000 for every second of sound.
56
195247
3913
အသံရဲ့ စက္ကန့်တိုင်း အတွက် လိုင်းပေါင်း ၄၄,၀၀၀ ကို သုံးပါတယ်။
အဲဒါတွေကို ကျုပ်တို့ ကွန်ပျူတာရဲ့ အသံ ဆော့ဝဲက ဖတ်ကြည့်ပြီး
03:19
When they’re read by your computer’s audio software,
57
199160
2610
03:21
the numbers determine how quickly the coils in your speakers should vibrate
58
201770
4354
ကျုပ်တို့ စပီကာတွေရဲ့ ကွိုင်တွေ ဘယ်လို ကြိမ်နှုန်းနဲ့ လှုပ်ခါရမှာကို ဆုံးဖြတ်တယ်။
03:26
to create sounds of different frequencies.
59
206124
2841
ကြိမ်နှုန်း မျိုးစုံရှိကြတဲ့ အသံတွေကို ဖန်တီးပေးဖို့ အတွက်ပါ။
03:28
All of this requires billions and billions of bits.
60
208965
3695
ဒါတွေ အားလုံးက ဘီလီယံချီ ရှိကြတဲ့ bit တွေ လိုအပ်ပါတယ်။
03:32
But that amount can be reduced through clever compression formats.
61
212660
4003
အဲဒီလို များပြားတဲ့ ပမာဏကို ချုံ့ပစ်ရေး ဖေါ်မက်များနဲ့ လျှော့ချနိုင်တယ်။
03:36
For example, if a picture has 30 adjacent pixels of green space,
62
216663
4508
ဥပမာအားဖြင့်၊ ပုံတစ်ပုံထဲတွင် pixel ၃၀ ထိစပ်နေကြတဲ့ အစိမ်းရောင် နေရာရှိရင်။
03:41
they can be recorded as "30 green" instead of coding each pixel separately -
63
221171
4848
pixel တစ်ခုစီကို ကုဒ်သွင်းမယ့်အစား "အစိမ်းရောင် ၃၀"ဆိုပြီး မှတ်ထားနိုင်တယ် -
03:46
a process known as run-length encoding.
64
226019
3175
အဲဒီလုပ်နည်းကို run-length ကုဒ်သွင်းခြင်း ခေါ်ပါတယ်။
03:49
These compressed formats are themselves written in binary code.
65
229194
4900
အဲဒီလို ချုံ့ထားတဲ့ ဖေါ်မက်တွေ ကိုယ်၌ကို ဘိုင်နရီ ကုဒ်နဲ့ပဲ ရေးရပါတယ်။
03:54
So is binary the end-all-be-all of computing?
66
234094
3070
ဒီလိုဆို ဘိုင်နရီဟာ တွက်ချက်မှုအားလုံးရဲ့ အစအဆုံးပါလား။
03:57
Not necessarily.
67
237164
1385
အဲဒီလိုတော့လည်း မဟုတ်သေးပါ။
03:58
There’s been research into ternary computers,
68
238549
2418
သုတေသနတွေကို အခြေအနေ သုံးခုထဲ လည်ပတ် လုပ်နိုင်တဲ့
04:00
with circuits in three possible states,
69
240967
2465
ternary ကွန်ပျူတာများနှင့် လည်းကောင်း၊
တချိန်တည်းမှာ အခြေအနေ များစွာမှာ ရှိနိုင်တဲ့ ပတ်လမ်းများကို အသုံးပြုတဲ့
04:03
and even quantum computers,
70
243432
1820
04:05
whose circuits can be in multiple states simultaneously.
71
245252
3664
ကွမ်တမ် ကွန်ပျူတာကို လည်းကောင်း စမ်းသပ်ကြည့်ခဲ့ပါတယ်။
04:08
But so far, none of these has provided
72
248916
2423
ဒါပေမဲ့ ၎င်းတို့ထဲက ဘယ်ဟာကမှ ဒေတာ သိုလ​ှောင်မှုနဲ့
04:11
as much physical stability for data storage and transmission.
73
251339
3296
ထုတ်လွင့်မှု အတွက် ရုပ်ပိုင်းအရ အခုလို တည်ငြိမ်မှုကို မပေးနိုင်ကြသေးပါဘူး။
04:14
So for now, everything you see,
74
254635
2444
ဒါကြောင့်မို့လို့၊ ဒီနေ့တွင် ခင်ဗျားတို့ မြင်ရသမျှ၊
04:17
hear,
75
257079
769
04:17
and read through your screen
76
257848
1616
ကြားရသမျှ၊
ပြီးတော့ စခရင်မှ ဖတ်ရသမျှဟာ
04:19
comes to you as the result of a simple "true" or "false" choice,
77
259464
3633
ခင်ဗျားတို့ဆီကို "မှန်တယ်"၊ "မှားတယ်" ဆိုတဲ့ သာမန် ရွေးချယ်မှုကို
04:23
made billions of times over.
78
263097
2274
အကြိမ်ပေါင်း ဘီလီယံချီ လုပ်ပေးခြင်းဖြင့် ရရှိလာတဲ့ ရလဒ်ပါပဲ။
ဤဝဘ်ဆိုဒ်အကြောင်း

ဤဆိုက်သည် သင့်အား အင်္ဂလိပ်စာလေ့လာရန်အတွက် အသုံးဝင်သော YouTube ဗီဒီယိုများနှင့် မိတ်ဆက်ပေးပါမည်။ ကမ္ဘာတစ်ဝှမ်းမှ ထိပ်တန်းဆရာများ သင်ကြားပေးသော အင်္ဂလိပ်စာသင်ခန်းစာများကို သင်တွေ့မြင်ရပါမည်။ ဗီဒီယိုစာမျက်နှာတစ်ခုစီတွင် ပြသထားသည့် အင်္ဂလိပ်စာတန်းထိုးများကို နှစ်ချက်နှိပ်ပါ။ စာတန်းထိုးများသည် ဗီဒီယိုပြန်ဖွင့်ခြင်းနှင့်အတူ ထပ်တူပြု၍ လှိမ့်သွားနိုင်သည်။ သင့်တွင် မှတ်ချက်များ သို့မဟုတ် တောင်းဆိုမှုများရှိပါက ဤဆက်သွယ်ရန်ပုံစံကို အသုံးပြု၍ ကျွန်ုပ်တို့ထံ ဆက်သွယ်ပါ။

https://forms.gle/WvT1wiN1qDtmnspy7