资源描述:
《空珠速算法(empty bead algorithm)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、空珠速算法(Emptybeadalgorithm)TheadditionoffastcalculationI.roundingupandaddingRoundingisroundingandadditionsubtractionmethod,togetherwiththefirstintegerdifference,cancountquickly.8+7=15calculationofthefirst8up108plus2equals107minus2equals5105=15Iftheprog
2、ramis17+3=209-3=620+6=26179=26calculationTwo.ComplementadditionTheadditionrateisfast,mainlybecauseofthetroubleofbitbybit.Thecomplementisthesumoftwonumbersto101001000,andsoon.8+2=1078+22=1008isthecomplementof2,2isalsothecomplementof8,78isthecomplement
3、of22,and22isthecomplementof78.Themethodofaddingnumbersbyaddingnumbersistenbitsplus1bits.Forexample,when6+8=14calculates,in6often,plus1,turn16,andthensubtract8from16,14is2Suchas6+7=13,first6+10=16,then16-3=13Suchas27+8=35,27+10=37,37-2=35Suchas25+85=1
4、10,25+100=125,125-15=110Suchas867+898=1765,867+1000=1867,1867-102=1765Three.AddthechangeofpositionTwotendigitswappositions,havefastmethodis:tenbitsplusabit,andadoubleandis,andisthetworowsumcentral.Forexample6116=77,thecalculationprocedureis6+1=77isad
5、igit,andisdouble,twois7,61+16=77=121and8338calculationprogramis83=1111istwodigits,twodigitsum1+1=2rowofcentral,the2rowinthemiddleof11,youget121.SecondsubtractioncalculationOne,twobit,minusone,complement,subtractionThetwodigitdecreaseinthenumberofdigi
6、tsinthesubtractionis:Tenbitminus1,plusabit.If15-8=7,15,minus10equals5,5addsabit,and8is7.2isequaltotwo.Two.Numbercomplement,subtractionComplementnumbersubtractionisminus1pluscompensation,threebitlesstwomethods:onehundredminus1,tenbitplusfill,suchas268
7、-89=179,thecalculationprocedureis268minus100equals168168,plus89complementnumber11,isequalto179.Three.SubtractionofchangepositionTwotendigitarithmetic:swapposition,havetendigitsminusadigit,andthenmultipliedby9,thedifferenceis.If8668=18,2,2=86calculati
8、onprogramismultipliedby9isequalto18.Four.MultidigitcontinuedsubtractionEvennumberreduced,byusingthemethodofcomplementadditionandsubtractiontoachievequick.Firstfindthecomplementofthesubtrahendandthenallthemeiosis,aseventheaddend,lookatwhatisthediffere