當前位置:首頁 » 基礎信息 » 為什麼二進制加法是算術運算基礎
擴展閱讀
幼兒園講發電廠知識 2024-11-28 00:16:52

為什麼二進制加法是算術運算基礎

發布時間: 2024-05-08 05:53:49

1. 浜岃繘鍒剁殑榪愮畻瑙勫垯鐨勭浉鍏抽棶棰

浜岃繘鍒舵暟鐨勭畻鏈榪愮畻鍖呮嫭鍔犳硶銆佸噺娉曘佷箻娉曞拰闄ゆ硶銆傚熀鏈榪愮畻鏄鍔犳硶鍜屽噺娉曡繍綆椼

1. 浜岃繘鍒舵暟鐨勫姞娉曡繍綆

鍔犳硶榪愮畻鎸変笅鍒椾笁鏉℃硶鍒欒繘琛岋細

(1)0 + 0 = 0 (2)0 + 1 = 1 + 0 = 1 (3)1 + l = 10 (閫浜岃繘涓錛屽悜楂樹綅榪涗綅 )

渚 (1010)2 + (1011)2 鐨勭畻寮忓備笅錛

琚鍔犳暟 1010

鍔犳暟 1011

+) 榪涗綅 1010

鍜屾暟 10101

鐢變笂榪版墽琛屽姞娉曠殑榪囩▼鍙浠ョ湅鍑猴紝涓や釜浜岃繘鍒舵暟鐩稿姞鏃躲傛瘡涓浣嶆渶澶氭湁涓変釜鏁扮浉鍔狅紝鍗蟲湰浣嶈鍔犳暟銆佸姞鏁板拰浠庝綆浣嶆潵鐨勮繘浣 ( 榪涗綅鍙鑳芥槸 0 錛屼篃鍙鑳芥槸 1) 銆傛寜鍔犳硶榪愮畻娉曞垯鍙寰楀埌鏈浣嶅姞娉曠殑鍜屽強鍚戦珮浣嶇殑榪涗綅銆

2. 浜岃繘鍒舵暟鐨勫噺娉曡繍綆

鍑忔硶榪愮畻鎸変笅鍒椾笁鏉℃硶鍒欒繘琛岋紝

(1)0-0 = l-1 = 0 (2)1-0 = l (3)0-1 = 1( 姝ゆ椂瑕佸悜楂樹綅鍊熶綅錛屽 l 褰 2)

渚 (11100101) 2 - (10011010) 2 鐨勭畻寮忓備笅錛

琚鍑忔暟 11100101

鍑忔暟 10011010

-) 鍊熶綅 0011010

宸鏁 01001011

鐢變笂榪版墽琛屽噺娉曡繍綆楄繃紼嬪彲鐭ワ紝涓や釜浜岃繘鍒舵暟鐩稿噺鏃訛紝姣忎綅鏈澶氭湁涓変釜鏁幫細鏈浣嶈鍑忔暟銆佸噺鏁板拰鍚戦珮浣嶇殑鍊熶綅 , 鍊 1 褰 2 銆傛墍浠ュ仛鍑忔硶榪愮畻鏃訛紝闄や簡姣忎綅鐩稿噺澶栵紝榪樿佽冭檻鍊熶綅鎯呭喌銆

3. 浜岃繘鍒舵暟鐨勪箻娉曡繍綆

浜岃繘鍒舵暟鐨勪箻娉曡繍綆楁湁涓嬪垪涓夋潯娉曞垯錛

(1)0 脳 0 = 0 (2)0 脳 l = 1 脳 0 = 0 (3)1 脳 1 = 1

渚 (1011) 2 脳 (1101) 2 鐨勭畻寮忓備笅錛

琚涔樻暟 1011

脳 ) 涔樻暟 1101

1011

0000

閮ㄥ垎縐 1011

1011

涔樼Н 10001111

鐢變笂榪頒箻娉曡繍綆楄繃紼嬪彲鐭ワ紝姣忎釜閮ㄥ垎縐閮藉彇鍐充簬涔樻暟鐩稿簲浣嶆槸0榪樻槸1銆傝嫢涔樻暟鐨勭浉搴斾綅涓0錛屽垯姝ゆ¢儴鍒嗙Н涓0錛涜嫢涔樻暟鐨勭浉搴斾綅涓1錛屽垯姝ゆ¢儴鍒嗙Н灝辨槸琚涔樻暟銆傞儴鍒嗙Н鐨勬暟鐩涓庝箻鏁扮殑浣嶆暟鐩稿悓錛屾瘡嬈$殑閮ㄥ垎縐渚濇″乏縐諱竴浣嶃傚皢鍚勯儴鍒嗙Н緔鍔犺搗鏉ワ紝灝卞緱鍒版渶緇堢殑涔樼Н銆傝$畻鏈轟腑瀹炵幇浜岃繘鍒舵暟鐨勪箻娉曡繍綆楋紝閫氬父閲囩敤鐨勬槸縐諱綅鐩稿姞鐨勬柟娉曘

4. 浜岃繘鍒舵暟鐨勯櫎娉曡繍綆

浜岃繘鍒舵暟鐨勯櫎娉曡繍綆楁寜涓嬪垪涓夋潯娉曞垯榪涜岋細

(1) 0 梅 0 = 0銆 (2) 0 梅 1 = 0 (1 梅 0 鏄鏃犳剰涔夌殑 ) (3) 1 梅 1 = 1

渚 (111011) 2 梅 (1011) 2 鐨勭畻寮忓備笅錛

101 鍟嗘暟

闄ゆ暟 1011)111011 琚闄ゆ暟

1011

1111

1011

100 浣欐暟

鍗 (111011)2 梅 (1011)2錛屽叾鍟嗕負 (101)2錛屼綑鏁頒負(100)2 銆

鍦ㄨ$畻鏈轟腑瀹炵幇浜岃繘鍒舵暟鐨勯櫎娉曡繍綆楋紝閫氬父閲囩敤縐諱綅鐩稿噺鐨勬柟娉曘

浜岃繘鍒跺皬鏁扮殑鍔犳硶錛
(5.5)10 = (101.1)2 錛堝嶮榪涘埗灝忔暟杞鎹涓轟簩榪涘埗鐨勬柟娉曪級
(5.5 + 5.5)10 = (101.1 + 101.1)2 = (1011.0)2 = (11)10
浜岃繘鍒跺皬鏁扮殑鍑忔硶錛
(5.5)10 = (101.1)2
(5.5 - 5)10 = (101.1 - 101)2 = (0.1)2 = (0.5)10
浜岃繘鍒跺皬鏁扮殑涔樻硶錛
(5.5)10 = (101.1)2
(5.5 * 2)10 = (101.1 * 10)2 = (1011.0)2 錛堟寜鍗佽繘鍒剁殑涔樻硶榪愮畻鍗沖彲錛= (11)10
浜岃繘鍒跺皬鏁扮殑闄ゆ硶錛
(5.5)10 = (101.1)2
(11)10 = (1011)2
(11 / 2)10 = (1011 / 10)2 = (101.1)2 錛堟寜鍗佽繘鍒剁殑闄ゆ硶榪愮畻鍗沖彲錛= (5.5)10

2. 鐢佃剳涓轟粈涔堥噰鐢ㄤ簩榪涘埗榪愮畻

鍘熷洜濡備笅錛

1.鎶鏈涓婂規槗瀹炵幇

鐢ㄥ弻紼蟲佺數璺琛ㄧず浜岃繘鍒舵暟瀛0鍜1鏄寰堝規槗鐨勪簨鎯呫

2.鍙闈犳ч珮

浜岃繘鍒朵腑鍙浣跨敤0鍜1涓や釜鏁板瓧錛屼紶杈撳拰澶勭悊鏃朵笉鏄撳嚭閿欙紝鍥犺屽彲浠ヤ繚闅滆$畻鏈哄叿鏈夊緢楂樼殑鍙闈犳с

3.榪愮畻瑙勫垯綆鍗

涓庡嶮榪涘埗鏁扮浉姣旓紝浜岃繘鍒舵暟鐨勮繍綆楄勫垯瑕佺畝鍗曞緱澶氾紝榪欎笉浠呭彲浠ヤ嬌榪愮畻鍣ㄧ殑緇撴瀯寰楀埌綆鍖栵紝鑰屼笖鏈夊埄浜庢彁楂樿繍綆楅熷害銆

4.涓庨昏緫閲忕浉鍚誨悎

浜岃繘鍒舵暟0鍜1姝eソ涓庨昏緫閲忊滅湡鈥濆拰鈥滃亣鈥濈浉瀵瑰簲錛屽洜姝ょ敤浜岃繘鍒舵暟琛ㄧず浜屽奸昏緫鏄懼緱鍗佸垎鑷鐒躲

5.浜岃繘鍒舵暟涓庡嶮榪涘埗鏁頒箣闂寸殑杞鎹㈢浉褰撳規槗

浜轟滑浣跨敤璁$畻鏈烘椂鍙浠ヤ粛鐒朵嬌鐢ㄨ嚜宸辨墍涔犳儻鐨勫嶮榪涘埗鏁幫紝鑰岃$畻鏈哄皢鍏惰嚜鍔ㄨ漿鎹㈡垚浜岃繘鍒舵暟瀛樺偍鍜屽勭悊錛岃緭鍑哄勭悊緇撴灉鏃跺張灝嗕簩榪涘埗鏁拌嚜鍔ㄨ漿鎹㈡垚鍗佽繘鍒舵暟錛岃繖緇欏伐浣滃甫鏉ユ瀬澶х殑鏂逛究銆

鎵╁睍璧勬枡

浜岃繘鍒惰繍綆楃殑浼樼偣

1.鎶鏈瀹炵幇綆鍗曪紝璁$畻鏈烘槸鐢遍昏緫鐢佃礬緇勬垚錛岄昏緫鐢佃礬閫氬父鍙鏈変袱涓鐘舵侊紝寮鍏崇殑鎺ラ氫笌鏂寮錛岃繖涓ょ嶇姸鎬佹eソ鍙浠ョ敤鈥1鈥濆拰鈥0鈥濊〃紺恆

2.綆鍖栬繍綆楄勫垯錛氫袱涓浜岃繘鍒舵暟鍜屻佺Н榪愮畻緇勫悎鍚勬湁涓夌嶏紝榪愮畻瑙勫垯綆鍗曪紝鏈夊埄浜庣畝鍖栬$畻鏈哄唴閮ㄧ粨鏋勶紝鎻愰珮榪愮畻閫熷害銆

3.閫傚悎閫昏緫榪愮畻錛氶昏緫浠f暟鏄閫昏緫榪愮畻鐨勭悊璁轟緷鎹錛屼簩榪涘埗鍙鏈変袱涓鏁扮爜錛屾eソ涓庨昏緫浠f暟涓鐨勨滅湡鈥濆拰鈥滃亣鈥濈浉鍚誨悎銆

4.鏄撲簬榪涜岃漿鎹錛屼簩榪涘埗涓庡嶮榪涘埗鏁版槗浜庝簰鐩歌漿鎹銆

5.鐢ㄤ簩榪涘埗琛ㄧず鏁版嵁鍏鋒湁鎶楀共鎵拌兘鍔涘己錛屽彲闈犳ч珮絳変紭鐐廣傚洜涓烘瘡浣嶆暟鎹鍙鏈夐珮浣庝袱涓鐘舵侊紝褰撳彈鍒頒竴瀹氱▼搴︾殑騫叉壈鏃訛紝浠嶈兘鍙闈犲湴鍒嗚鯨鍑哄畠鏄楂樿繕鏄浣庛

鍙傝冭祫鏂欙細鐧懼害鐧劇戱細浜岃繘鍒

3. 涓轟粈涔堣2鏄浜岃繘鍒剁畻鏈鍩虹錛

浜岃繘鍒剁畻鏈錛屽叾瀹炲拰鍗佽繘鍒舵槸綾諱技鐨勩
浜岃繘鍒舵暟瀛楀彧鏈0鍜1銆
涓浣嶆暟鍔犳硶鏄錛0+0=0錛1+0=1錛0+1=1錛
浣嗘槸 1+1=10錛屽氨鏄璇存湁鏈浣嶄負0錛屽苟鏈夎繘浣嶃
濡傛灉閬囦笂榪涗綅錛屾渶澶氫細鍑虹幇榪欐牱鐨勬儏鍐碉細1+1+1=11錛屽氨鏄璇存湁鏈浣嶄負,1錛屽苟鏈夎繘浣嶃
姣忎竴浣嶉兘鍋氳繖鏍風殑榪愮畻錛屽姞娉曞氨鍙浠ラ愪綅瀹屾垚銆
浜岃繘鍒舵暟綆楁湳鍔犺繍綆10101010+00101010鍏剁粨鏋滄槸錛
10101010
+00101010
鈥斺斺斺斺斺斺斺
11010100
閫堿銆

4. 浜岃繘鍒剁殑鍔犲噺娉

1銆佷簩榪涘埗鐨勫姞娉曪細浜岃繘鍒跺姞娉曡繍綆楁硶鍒欙細鍔犳硶綆楀紡鍜屽嶮榪涘埗鍔犳硶涓鏍鳳紝鎶婂彸杈圭涓浣嶅歸綈錛屼緷嬈$浉搴旀暟浣嶅歸綈錛屽悇鏁頒綅婊′簩鍚戜笂涓浣嶈繘涓銆備富瑕佹槸鍥犱負浜岃繘鍒跺悇浣嶄笂鐨勬暟蹇呴』灝忎簬2浠ュ強澶т簬絳変簬2灝辮佽繘浣嶇殑鐗圭偣銆

2銆佸噺娉曪細鍚屾牱鐨勶紝鍥犱負浜岃繘鍒跺悇鏁頒綅涓婂叿鏈夊繀欏誨皬浜2銆佸ぇ浜庣瓑浜2灝辮佽繘浣嶄互鍙婁笉澶熷噺闇瑕佸熲1鈥濈殑鐗圭偣錛屼簬鏄灝卞彲浠ュ緱鍒頒簩榪涘埗鐨勫噺娉曡繍綆楁硶鍒欙紱浜岃繘鍒跺姞鍑忔硶榪愮畻娉曞垯錛氬皢鍙寵竟絎涓浣嶅歸綈錛屼緷嬈$浉搴旀暟浣嶅歸綈錛屼緷嬈″仛鍑忔硶錛屽悓涓鏁頒綅涓嶅熷噺鏃跺悜楂樹綅鈥滃熶竴鈥濓紝鈥滃熶竴褰撲簩鈥濄

鎵╁睍璧勬枡錛

浜岃繘浣嶈℃暟鍒朵粎鐢ㄤ袱涓鏁扮爜銆0鍜1錛屾墍浠ワ紝浠諱綍鍏鋒湁浜屼釜涓嶅悓紼沖畾鐘舵佺殑鍏冧歡閮藉彲鐢ㄦ潵琛ㄧず鏁扮殑鏌愪竴浣嶃傝屽湪瀹為檯涓婂叿鏈変袱縐嶆槑鏄劇ǔ瀹氱姸鎬佺殑鍏冧歡寰堝氥備緥濡傦紝姘栫伅鐨"浜"鍜"鐔"錛涘紑鍏崇殑鈥濆紑鈥滃拰鈥濆叧鈥; 鐢靛帇鐨勨濋珮鈥滃拰鈥濅綆鈥溿佲濇b滃拰鈥濊礋鈥滐紱綰稿甫涓婄殑鈥濇湁瀛斺滃拰鈥滄棤瀛斺濓紝鐢佃礬涓鐨勨濇湁淇″彿鈥滃拰鈥濇棤淇″彿鈥, 紓佹ф潗鏂欑殑鍗楁瀬鍜屽寳鏋佺瓑絳夛紝涓嶈儨鏋氫婦銆

鍒╃敤榪欎簺鎴鐒朵笉鍚岀殑鐘舵佹潵浠h〃鏁板瓧錛屾槸寰堝規槗瀹炵幇鐨勩備笉浠呭傛わ紝鏇撮噸瑕佺殑鏄涓ょ嶆埅鐒朵笉鍚岀殑鐘舵佷笉鍗曟湁閲忎笂鐨勫樊鍒錛岃屼笖鏄鏈夎川涓婄殑涓嶅悓銆傝繖鏍峰氨鑳藉ぇ澶ф彁楂樻満鍣ㄧ殑鎶楀共鎵拌兘鍔涳紝鎻愰珮鍙闈犳с傝岃佹壘鍑轟竴涓鑳借〃紺哄氫簬浜岀嶇姸鎬佽屼笖綆鍗曞彲闈犵殑鍣ㄤ歡錛屽氨鍥伴毦寰楀氫簡銆

鍙傝冭祫鏂欐潵婧愶細

鐧懼害鐧劇-浜岃繘鍒