




已阅读5页,还剩38页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
ComputerEnglish,Chapter3NumberSystemsandBooleanAlgebra,计算机专业英语,3-2,Keypoints:usefultermsanddefinitionsofNumbersystemandBooleanAlgbraDifficultpoints:ConversionoftheNumberSystemsandBooleanAlgbra,计算机专业英语,3-3,Requirements:,1.ConceptsofNumberSystemandtheirconversion,2.BooleanAlgebra,3.MooresLaw,4.科技英语中数学公式的读法,计算机专业英语,3-4,NewWordsn.八进制alphabetn.字母表fractionaladj.分数的,小数的wholenumbern.整数remaindern.余数significantfiguren.有效数字quotientn.商algorithmn.算法complementn.补码,余角carryn.进位,3.1NumberSystems,Abbreviations:Binary-codedhexadecimal(BCH)二进制编码的十六进制,计算机专业英语,3-5,Theuseofthemicroprocessorrequiresaworkingknowledgeofbinary,decimal,andhexadecimalnumberingsystems.Thissectionprovidesabackgroundforthosewhoareunfamiliarwithnumbersystems.Conversionsbetweendecimalandbinary,decimalandhexadecimal,andbinaryandhexadecimalaredescribed.,3.1NumberSystems,使用微处理器需要掌握二进制、十进制和十六进制数制系统的基本知识,本节为那些不熟悉数制系统的读者提供这方面的背景知识。说明了十进制与二进制之间、十进制与十六进制之间,及二进制与十六进制之间的转换。,计算机专业英语,3-6,Beforenumbersareconvertedfromonenumberbasetoanother,thedigitsofanumbersystemmustbeunderstood.Earlyinoureducation,welearnedthatadecimal,orbase10,numberwasconstructedwith10digits:0through9.Thefirstdigitinanynumberingsystemisalwaysazero.Forexample,abase8(octal)numbercontains8digits:0through7;abase2(binary)numbercontains2digits:0and1.,3.1.1Digits,将数从种数制向另一种数制转换之前,必须了解数的计数系统。在早期教育中,我们已学习了十进制数,或以10为基的数,它由10个数字组成:0到9。任何计数制的第一个数字总是零,这种规则适用于任何其他数制。例如,以8为基的数(八进制)包含8个数字:0到7,而以2为基的数(二进制)包含2个数字:0和l。,计算机专业英语,3-7,Ifthebaseofanumberexceeds10,theadditionaldigitsusethelettersofthealphabet,beginningwithanA,Forexample,abase12numbercontains12digits:0through9,followedbyAfor10andBfor11,Notethatabase10numberdoesnotcontaina10digit,justasabase8numberdoesnetcontainan8digit.Themostcommonnumberingsystemsusedwithcomputersaredecimal,binary,andhexadecimal(base16).(Manyyearsagooctalnumberswerepopular.)Eachsystemisdescribedandusedinthissectionofthechapter.,3.1.1Digits,如果基数大于10,其余数字用从A开始的字母表示,例如,以12为基的数包含12个数字,0到9,之后用A代表10,B代表11。注意,以10为基的数不包含数字10,如同以8为基的数不包括数字8一样。计算机中最通用的计数制是十进制、二进制、八进制和十六进制(基为16)。每种计数制都将在本节中进行说明和应用。,计算机专业英语,3-8,Oncethedigitsofanumbersystemareunderstood,largernumbersareconstructedbyusingpositionalnotation.Ingradeschool,welearnedthatthepositiontotheleftoftheunitspositionwasthetensposition,thepositiontotheleftofthetenspositionwasthehundredsposition,andsoforth.(Anexampleisthedecimalnumber132:Thisnumberhas1hundred,3tens,and2units.)Whatprobablywasnotlearnedwastheexponentialvalueofeachposition:Theunitspositionhasaweightof100or1;thetenspositionhasweightof101,or10;andthehundredspositionhasaweightof102,or100.,3.1.2PositionalNotation,一旦我们理解了计数制的数字后,就可用位计数法构造更大的数值。在小学时我们都学过个位的左边一位是十位,十位左边一位是百位,以此类推(例如十进制数132,这个数字有个百,三个十和两个一)。或许我们没有学过每个位的指数值:个位的权为l00,即1;十位的权为101或10;而百位的权为102或l00。,计算机专业英语,3-9,Theexponentialpowersofthepositionsarecriticalforunderstandingnumbersinothernumberingsystems.Thepositiontotheleftoftheradix(numberbase)point,calledadecimalpointonlyinthedecimalsystem,isalwaystheunitspositioninanynumbersystem.Forexample,thepositiontotheleftofthebinarypointisalways20or1;thepositiontotheleftoftheoctalpointis80or1.Inanycase,anynumberraisedtoitszeropowerisalways1,ortheunitsposition.,3.1.2PositionalNotation,位的指数幂在理解其他计数制中的数时是个关键。基数小数点,在十进制中称为十进制小数点,其左边的位在任何数制中都是个位。例如,二进制小数点左边的位是20或1。而八进制小数点左边的位是80或1。在任何情况下,任何数的零次幂总是1,或1个单位。,计算机专业英语,3-10,Thepositiontotheleftoftheunitspositionisalwaysthenumberbaseraisedtothefirstpower;inadecimalsystem,thisisl01,orl0.Inabinarysystem,itis21,or2;andinanoctalsystemitis81,or8.Therefore,an11decimalhasadifferentvaluefroman11binary.The1ldecimaliscomposedof1tenplus1unitandhasavalueof11units;whilethebinarynumber11iscomposedof1twoplus1unit,foravalueof3decimalunits.The11octalhasavalueof9units.,3.1.2PositionalNotation,个位左边的位总是基数的1次幂,在十进制系统中是101,或10;在二进制中是21,或2;而在八进制中是81,或8。因此,十进制的11与二进制的11具有不同的数值。十进制11表示个10加上一个1,其值为11;二进制11表示个2加上个1,其值为3;八进制11的值为9。,计算机专业英语,3-11,Inthedecimalsystem,positionstotherightofthedecimalpointhavenegativepowers.Thefirstdigittotherightofthedecimalpointhasavalueof10-1,or0.1.Inthebinarysystem,thefirstdigittotherightofthebinarypointhasavalueof2-1,or0.5.Ingeneral,theprinciplesthatapplytodecimalnumbersalsoapplytonumbersinanyothernumbersystem.,3.1.2PositionalNotation,在十进制系统中,对于十进制小数点右边的位,它的幂为负数。十进制小数点右边第一位数的值为10-1,或0.1。在二进制中,二进制小数点右边第位数的值为2-1或0.5。一般来说,十进制使用的计数法可以用于任何其他数制。,计算机专业英语,3-12,Example3-1showsa110.101inbinary(oftenwrittenas110.1012).Italsoshowsthepowerandweightorvalueofeachdigitposition.Toconvertabinarynumbertodecimal,addtheweightsofeachdigittoformitsdecimalequivalent.The110.1012isequivalenttoa6.625indecimal(4+2+0.5+0.125).Noticethatthisisthesumof22(or4)plus21(or2),but20(or1)isnotaddedbecausetherearenodigitsunderthisposition.Thefractionpartiscomposedof2-1(0.5)plus2-3(or.125),butthereisnodigitunderthe2-2(or.25).,3.1.2PositionalNotation,例3-1给出了一个二进制数110.101(通常写成110.1012),也给出了这个数每个位的幂、权和值。为了把二进制数转换为十进制,将每位数字的权相加,就得到了它的等效十进制值。二进制110.101等于十进制的6.625(4+2+0.5+0.125)。注意,这个和的整数部分是由22(4)加21(2)构成,之所以没有用20(1)是因为这个位的数为零。小数部分由2-1(0.5),加2-3(0.125)构成,但是没有用2-2(0.25)。,计算机专业英语,3-13,Thepriorexampleshaveshownthattoconvertfromanynumberbasetodecimal,determinetheweightsorvaluesofeachpositionofthenumber,andthensumtheweightstoformthedecimalequivalent.Supposethata125.78octalisconvertedtodecimal.Toaccomplishthisconversion,firstwritedowntheweightsofeachpositionofthenumber.ThisappearsinExample3-2.Thevalueof125.78is85.875decimal,or164plus28plus51plus7.125.,3.1.3ConversiontoDecimal,前面的例子说明了将任何其他基数的数转换为十进制数时,十进制数的值取决于该数每个位上的权或值,它们的和就是等效的十进制数值。假定要将125.78(八进制)转换为十进制。为了完成这个转换,首先写出该数每一位数的权,如例3-2所示,125.78的值是十进制的85.875,即164+28+51+70.125。,计算机专业英语,3-14,Noticethattheweightofthepositiontotheleftoftheunitspositionis8.Thisis8times1.Thennoticethattheweightofthenextpositionis64,or8times8.Ifanotherpositionexisted,itwouldbe64times8,or512.Tofindtheweightofthenexthigher-orderposition,multiplytheweightofthecurrentpositionbythenumberbase(or8,inthisexample).Tocalculatetheweightsofpositiontotherightoftheradixpoint,dividebythenumberbase.Intheoctalsystem,thepositionimmediatelytothefightoftheoctalpointis1/8,or.125.Thenextpositionis.125/8,or.015625,whichcanalsobewrittenas1/64.,3.1.3ConversiontoDecimal,注意,该数个位左边那位的权是8(18)。再前一位的权是64(88)。如果存在更前一位,则其权将是512(648)。将当前位的权乘上基数,就可得到更高一位的权(本例中是乘8)。而计算小数点右边那些位的权,需要用基数去除。在八进制中,紧跟八进制小数点右边的那位的权是1/8,即0.125。下一位是0.125/8,即0.015625,也可以写成1/64。,计算机专业英语,3-15,Hexadecimalnumbersareoftenusedwithcomputers.A6A.CH(Hforhexadecimal)isillustratedwithitsweightsinExample3-3.Thesumofitsdigitsis106.75,or106.Thewholenumberpartisrepresentedwith616plus10(A)1.Thefractionpartis12(C)asanumeratorand16(16-1)asthedenominator,or12/16,whichisreducedto3/4.,3.1.3ConversiontoDecimal,计算机经常使用十六进制。例3-2给出了一个十六进制数6A.CH(H表示十六进制),以及它的权。它的各位数值之和是106.75,即106。整数部分用616加10(A)1表示;分数部分用12(C)作为分子,16作为分母(16-1),或表示为12/16,化简得3/4。,计算机专业英语,3-16,Conversionsfromdecimaltoothernumbersystemsaremoredifficulttoaccomplishthanconversiontodecimal.Toconvertthewholenumberportionofanumbertodecimal,dividebytheradix.Toconvertthefractionalportion,multiplybytheradix.,3.1.4ConversionFromDecimal,由十进制转换成其他进制比由其他进制转换成十进制困难。转换十进制整数部分时,要用基数去除,转换分数部分时,要用基数去乘它们。,计算机专业英语,3-17,WholeNumberConversionfromDecimal.Toconvertadecimalwholenumbertoanothernumbersystem,dividebytheradixandsavetheremaindersassignificantdigitsoftheresult.Analgorithmforthisconversionasisfollows:1.Dividethedecimalnumberbytheradix(numberbase).2.Savetheremainder(firstremainderistheleastsignificantdigit),3.Repeatsteps1and2untilthequotientiszero.,3.1.4ConversionFromDecimal,转换十进制整数部分将十进制整数转换成其他数制时,要用基数去除,并且保存余数,作为结果的有效数字。这种转换的算法如下:1.用基数除十进制数。2.保存余数(最先得到的余数是最低有效位数字)。3.重复步骤l和2,直到商为零。,计算机专业英语,3-18,ConvertingfromaDecimalFraction.Conversionfromdecimalfractiontoanothernumberbaseisaccomplishedwithmultiplicationbytheradix.Forexample,toconvertadecimalfractionintobinary,multiplyby2.Afterthemultiplication,thewholenumberportionoftheresultissavedasasignificantdigitoftheresult,andthefractionalremainderisagainmultipliedbytheradix.Whenthefractionremainderiszero,multiplicationends.Notethatsomenumbersarenever-ending.Thatis,azeroisneveraremainder.Analgorithmforconversionfromadecimalfractionisasfollows,3.1.4ConversionFromDecimal,转换十进制小数部分转换10进制小数部分是用基数乘来完成的。例如,要将十进制小数转换成二进制,要用2乘。乘法之后,乘积的整数部分保存起来作为结果的一个有效位,剩余的小数再用基数2去乘。当剩余的小数部分为0时,乘法结束。有些数可能永远不会结束,即余数总不为0。转换十进制小数部分的算法如下:,计算机专业英语,3-19,1.Multiplythedecimalfractionbytheradix(numberbase).2.Savethewholenumberportionoftheresult(evenifzero)asadigit.Notethatthefirstresultiswrittenimmediatelytothefightoftheradixpoint.3.Repeatsteps1and2,usingthefractionalpartofstep2untilthefractionalpartofstep2iszero.,3.1.4ConversionFromDecimal,1.用基数乘十进制小数。2.保存结果的整数部分(即使是零)作为一位数。注意,第一个得到的结果写在紧挨着小数点的右边。3.用步骤2的小数部分重复步骤l和2,直到步骤2的小数部分是零。,计算机专业英语,3-20,Binary-codedhexadecimal(BCH)isusedtorepresenthexadecimaldatainbinarycode.Abinary-codedhexadecimalnumberisahexadecimalnumberwrittensothateachdigitisrepresentedbya4-bitbinarynumber.ThevaluesfortheBCHdigitsappearinTable3-1.HexadecimalnumbersarerepresentedinBCHcodebyconvertingeachdigittoBCHcode,withaspacebetweeneachcodeddigit.,3.1.5Binary-CodedHexadecimal,二进制编码的十六进制(BCH)是用二进制编码表示的十六进制数据,二进制编码的十六进制数是将十六进制数的每一位都用4位二进制数表示。表3-1给出了BCH数的值。用BCH表示十六进制数时,将每个十六进制数字都转换成BCH码,并且每个数位之间用空格分开。,计算机专业英语,3-21,ThepurposeofBCHcodeistoallowabinaryversionofahexadecimalnumbertobewritteninaformthatcaneasilybeconvertedbetweenBCHandhexadecimal.Example3-8showsaBCHcodednumberconvertedbacktohexadecimalcode.,3.1.5Binary-CodedHexadecimal,BCH码的目的在于能将十六进制数以二进制的形式写出,使BCH与十六进制之间转换很容易。例3-8表示如何将BCH代码数据转换为十六进制码。,计算机专业英语,3-22,Attimes,dataarestoredincomplementformtorepresentnegativenumbers.Therearetwosystemsthatareusedtorepresentnegativedata:radixandradix-1complements.Theearliestsystemwastheradix-1complement,inwhicheachdigitofthenumberissubtractedfromtheradix-1togeneratetheradix-1complementtorepresentanegativenumber.,3.1.6Complements,有时,数据以补码的形式存储,以便表示负数。有两种表示负数的方式:补码和反码(基数减l的补),最早的方式是反码。为了得到负数的反码表示,用基数-1减去该数的每一个数位上的数字。,计算机专业英语,3-23,Example3-9showshowthe8-bitbinarynumber01001100isones(radix-1)complementedtorepresentitasanegativevalue.Noticethateachdigitofthenumberissubtractedfromonetogeneratetheradix-1(ones)complement.Inthisexample,thenegativeof01001100is10110011.Thesametechniquecanbeappliedtoanynumbersystem,asillustratedinExample3-10,inwhichthefifteens(radix-l)complementofa5CDhexadecimaliscomputedbysubtractingeachdigitfromafifteen.,3.1.6Complements,例3-9表示了如何将8位二进制数01001100对l取补(基数减1的补),以便表示成个负数。注意,用1减去该数的每一位数字,以便生成反码。在此例中,01001100的负数是10110011。同样的技术可适用于任何数制。如例3-10所示,十六进制数5CD的反码是从15(基-1)中减去它的每一位数字得到的。,计算机专业英语,3-24,Today,theradix-1complementisnotusedbyitself;itisusedasastepforfindingtheradixcomplement.Theradixcomplementisusedtorepresentnegativenumbersinmoderncomputersystems.(Theradix-1complementwasusedintheearlydaysofcomputertechnology.)Themainproblemwiththeradix-1complementisthatanegativeorapositivezeroexists;intheradixcomplementsystem,onlyapositivezerocanexist.,3.1.6Complements,如今,反码已不单独使用,而作为求补码的一个步骤使用,补码是当代计算机系统表示负数的方法(反码用于早期的计算技术中)。反码的主要问题是它存在负零或者正零,而补码系统中只能存在正零。,计算机专业英语,3-25,Toformtheradixcomplement,firstfindtheradix-1complement,andthenaddaonetotheresult.Example3-11showshowthenumber01001000isconvertedtoanegativevaluebytwos(radix)complementingit.,3.1.6Complements,为得到补码,先求反码,然后将1加到结果上。例3-11表示了如何通过对2(基为2)取补的方式,将数01001000转换成负数。,计算机专业英语,3-26,Toprovethata01001000istheinverse(negative)ofa10110111,addthetwotogethertoforman8-digitresult.Theninthdigitisdroppedandtheresultiszerobecausea0l00100isapositive72,whilea10110111isanegative72.Thesametechniqueappliedtoanynumbersystem.Example3-12showshowtheinverseofa345hexadecimalisfoundbyfirstfifteenscomplementingthenumber,andthenbyaddingonetotheresulttoformthesixteenscomplement.Asbefore,iftheoriginal3-digitnumber345isaddedtotheinverseofCBB,theresultisa3-digit000.Asbefore,thefourthbit(carry)isdropped.Thisprovesthat345istheinverseofCBB.,3.1.6Complements,为验证01001000是10111000的反(负数),将两者相加得到一个8位结果。去掉第9位数字,结果是零。因为01001000是正数72,而10110111是负数72。同样的枝术可用于任何数制。例3-12表示如何求十六进制数345的负数,首先求该数15的补,然后将1加到结果上,得到16的补,同前面类似,如把原来的3位数345加上其负数CBB,则结果是3位000,第4位(进位)被丢掉。这证明了345是CBB的反。,计算机专业英语,3-27,TheconceptofaBooleanalgebrawasfirstproposedbytheEnglishmathematicianGeorgeBoolein1847.Sincethattime,Boolesoriginalconceptionhasbeenextensivelydevelopedandrefinedbyalgebraistsandlogicians.TherelationshipsamongBooleanalgebra,setalgebra,logic,andbinaryarithmetichavegivenBooleanalgebrasacentralroleinthedevelopmentofelectronicdigitalcomputers.,3.2BooleanAlgebra,布尔代数的概念最初是由英国数学家GeorgeBoole于1847年提出来的,从那时起,代数学家和逻辑学家们更广泛地发展了Boole最初的概念,并使之更加精练。由于布尔代数、集合代数、逻辑学和二进制算术之间的内在联系,使得布尔代数的理论在电子计算机的发展中起到举足轻重的作用。,计算机专业英语,3-28,ThemostintuitivedevelopmentofBooleanalgebrasarisesfromtheconceptofasetalgebra.LetS=a,b,candT=a,b,c,d,ebetwosetsconsistingofthreeandfiveelements,respectively.WesaythatSisasubsetofT,sinceeveryelementofS(namely,a,b,andc)belongstoT.SinceThasfiveelements,thereare25subsetsofT,forwemaychooseanyindividualelementtobeincludedoromittedfromasubset.Notethatthese32subsetsincludeTitselfandtheemptyset,whichcontainsnoelementsatall.IfTcontainsallelementsofconcern,itiscalledtheuniversalset.GivenasubsetofT,suchasS,wemaydefinethecomplementofSwithrespecttoauniversalsetTtoconsistofpreciselythoseelementsofTwhicharenotincludedinthegivensubset.,3.2BooleanAlgebra,布尔代数最直觉的发展产生于集合代数的概念。设S=a,b,c和T=a,b,c,d,e分别为两个含有三个和五个元素的集合。由于S中的每一个元素(a,b,c)都属于T,所以我们说S是T的一个子集。由于T有五个元素,因而T共有25个子集,这是因为我们可以选择任何一个元素使其包含于某个子集中或从该子集中删除。应该注意到这32个子集中包含T本身和空集(空集即不含任何元素的集合)。如果T包含了所讨论的所有元素,则称之为全集。给定T的一个子集,例如子集S,我们可以定义一个关于全集T的S的补集。其中正好包含那些不在子集S中而在T中的元素。,计算机专业英语,3-29,Thus,Sasabovedefinedhasitscomplement(withrespecttoT).Theunionofanytwosets(subsetsofagivenset)consistsofthoseelementsthatareinoneortheotherorinbothgivensets;theintersectionoftwosetsconsistsofthoseelementsthatareinbothgivensets.Weusethesymboltodenotetheunion,andtodenotetheintersectionoftwosets.Forexample,ifB=b,d,e,thenBS=a,b,c,d,e,andBS=b.,3.2BooleanAlgebra,于是,如上定义的集合S就有一个它的补集(相对于集合T)。任何两个集合(已给定集合的若干子集)的并集包含了出现于这两个子集中某一个集合或同时出现于这两个集合中的所有元素;两个集合的交集包含了同时出现于这两个集合中的元素。我们用符号“”来表示两个集合的“并(运算)”,用“”来表示两个集合的“交(运算)”。例如,如果B=b,d,e,那么,BS=a,b,c,d,e,BS=b。,计算机专业英语,3-30,Whileothersetoperationsmaybedefined,theoperationsofcomplementationunionandintersectionareofprimaryinteresttous.ABooleanalgebraisafiniteorinfinitesetofelementstogetherwiththreeoperationsnegation,addition,andmultiplicationthatcorrespondtothesetoperationsofcomplementation,union,andintersection,respectively.AmongtheelementsofaBooleanalgebraaretwodistinguishedelements:0,correspondingtotheemptyset;and1,correspondingtotheuniversalset.,3.2BooleanAlgebra,虽然我们可以定义其他一些集合运算,但求补、并和交运算是我们最感兴趣的三个集合运算。一个布尔代数就是一个有限集或无限集,以及建立在该有限集或无限集上的三种运算否定、加或乘,这三个运算分别对应于集合的求补、并和交运算。在布尔代数的元素中有两个特殊的元素:0,对应于空集;1,对应于全集。,计算机专业英语,3-31,ForanygivenelementofaBooleanalgebra,thereisauniquecomplementawiththepropertythata+a=1andaa=0.Booleanadditionandmultiplicationareassociativeandcommutative,asareordinaryadditionandmultiplication,butotherwisehavesomewhatdifferentproperties.TheprincipalpropertiesaregiveninTable3-2,wherea,b,andcareanyelementsofaBooleanalgebra.,3.2BooleanAlgebra,对于一个布尔代数中任意给定元素a,都有一个唯一的补a,它满足a+a=1和aa=0。布尔加和布尔乘与普通的加和乘一样,满足结合律和交换律,但除此之外含有一些不太相同的特性。其主要特性由表3-2给出,其中a,b和c是一个布尔代数中的任意元素。,计算机专业英语,3-32,3.2BooleanAlgebra,Table3-2,计算机专业英语,3-33,Sinceafinitesetofnelementshasexactly2nsubsets,anditcanbeshownthatthefiniteBooleanalgebrasarepreciselythefinitesetalgebras,eachfiniteBooleanalgebraconsistsofexactly2nelementsforsomeintegern.Forexample,thesetalgebraforthesetTdefinedabovecorrespondstoaBooleanalgebraof32elements.,3.2BooleanAlgebra,由于n个元素的有限集有且只有2n个子集,而且很显然有限布尔代数一定是有限集合代数,所以对某个整数n而言,每个有限布尔代数也有且只有2n个元素。例如,上文定义的集合T的集合代数就对应一个有32个元素的布尔代数。,计算机专业英语,3-34,WhileitispossibletouseadifferentsymboltodenoteeachelementofaBooleanalgebra,itisoftenmoreusefultorepresentthe2nelementsofafiniteBooleanalgebrabybinaryvectorshavingncomponents.WithsucharepresentationtheoperationsoftheBooleanalgebraareaccomplishedcomponentwisebyconsideringeachcomponentasanindependenttwo-elementBooleanalgebra.Thiscorrespondstorepresentingsubsetsofafinitesetbybinaryvectors.,3.2BooleanAlgebra,虽然我们可以用不同的符号来表示布尔代数中的每一个元素,但最常用的方法是用一个有n个分量的二进制向量来表示一个有限布尔代数的2n个元素。用这样一种表示方法,布尔代数的所有运算都以分量的形式完成,而每一个分量被认为是一个独立的二值布尔代数。这种做法对应于用二进制向量来表示一个有限集的子集。,计算机专业英语,3-35,Forexample,sincethesetThasfiveelements,wemayrepresentitssubsetsbyfive-componentbinaryvectors,eachcomponentdenotinganelementofthesetT.Anumerallinthei-thcomponentofthevectordenotestheinclusionofthei-thelementofthatparticularsubset;a0denotesitsexclusion.Thus,thesubsetS=a,b,chasthebinaryvectorrepresentation1,1,1,0,0.ThesetoperationsbecomeBooleanoperationsonthecomponentsofthevectors.Thisrepresentationofsets,andthecorrespondencetoBooleanorlogicaloperations,isveryusefulininformationretrieval.Becauseofit,setsofdocumentandquerycharacteristicsmaybeeasilyandrapidlymatched.,3.2BooleanAlgebra,例如,由于集合T有5个元素,所以我们可以用5个分量的二进制向量表示它的子集,其中每一个分量表示集合T的一个元素。向量中的第i个分量为数字1表示集合T的第i个元素在某一特定子集中,用数字0表示不在某一特定子集中。于是,子集S=a,b,c可用二进制向量表示为1,1,1,0,0。集合运算变成了向量分量上的布尔运算。集合的这种表示方法以及相应的布尔或逻辑运算,对于信息检索是非常有用的。由于这一原因,文件的集合和查询特性可以很容易而迅速地得到匹配。,计算机专业英语,3-36,数学公式的读法(Pronunciationofmathematicalexpressions),1逻辑(Logic)thereexistsforallpqpimpliesq/ifp,thenqpqpifandonlyifqpisequivalenttoqpandqareequivalent,计算机专业英语,3-37,2集合(Sets)xAxbelongstoA/xisanelement(oramember)ofAxAxdoesnotbelongtoA/xisnotanelement(oramember)ofAABAiscontainedinB/AisasubsetofBABAcontainsB
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 平房个人租房合同范本
- 婚礼和酒店合同范本
- 乐高课程合同范本
- 菜店个人转让合同范本
- 2025年芜湖市临港绿色产业投资有限公司公开招聘副总经理及工作人员5名备考练习题库及答案解析
- 2025河南许昌禹州市禹泰资本运营有限公司招聘法务人员3人考试参考试题及答案解析
- 2025年8月吉林吉林市蛟河市公益性岗位人员招聘1人备考练习题库及答案解析
- 2025年放射肿瘤学放疗剂量计算与给药准备考核模拟考试卷答案及解析
- 2025上海松江区下半年泖港镇下属单位(部门) 招聘公共服务人员23人考试参考试题及答案解析
- 2025浙江金华市数字红人文化传媒有限公司劳务派遣人员招聘9人考试参考试题及答案解析
- (2025秋新版)教科版三年级上册科学全册教案
- 2025年新西师大版数学三年级上册全册课件
- 食品安全总监、食品安全员考核考试测试题及答案
- 2025年彩票市场监察笔试备考手册
- 培训学校租房合同协议书
- 第8课 西溪湿地教学设计-2025-2026学年小学地方、校本课程浙教版(2021)人·自然·社会
- 江淮十校2026届高三第一次联考物理试卷(含答案解析)
- 网络货运行业知识培训课件
- 《从“浪浪山”启程做更好的“小妖怪”!》开学第一课班会教案
- 1.8《天气的影响》教学设计-教科版三上科学(新教材)
- 防地震教学课件
评论
0/150
提交评论