FundamentalsofDatarepresentation
- omputersusebinarytorepresentalldataandinstructions
C
- Hexadecimalisusefulasitislesscharacters/lessdigits.Easierforhumanstounderstandthanbinary.
- Data
● 1kilobyte=1000bytes
● 1megabyte=1000kilobytes
● 1Gigabyte=1000megabytes
● 1Terabyte=1gigabyte
- Charactercodesaregroupedandruninsequence
- ASCIIusually7bitascii.Unicodeuses16bitswhichmakesitmoreusefultorepresentotherlanguagesand
additionalcharacterslikeemojis.
- Apixelisapictureelementsandisasinglepointinanimage
- Soundisanalogueandmustbeconvertedtoadigitalformforstorageandprocessing.
- Analoguesignalsaresampledtocreatethedigitalversionofasound.Thisisdonebymeasuringthe
amplitudeatapointintime.
- Samplingrateisthenumberofsamplespersecond.Sampleresolutionisthenumberofbitspersample.
- Filesize=samplingrate*resolution*seconds
- Addingbinary
● 0+0=0
● 0+1=1
● 1+1=0carry1
- Datacompressionisusefulasitreducesfilesizewhichmakesiteasiertotransmit.
● Lossycompressionisusefulassomedataisremoved.Animagecanbecompressedbyreducingits
colourdepthbyreducingtherangeofcolours.Forsoundthiscanbeachievedbyremovingsounds
outofthehumanrangeofhearingthatwerepickedupduringrecording.
● Losslesscompressioniswhenfilesizeisreducedwithoutthelossofdata.Onemethodisrunlength
encodingwhererunsarestoredasoneitemofdatainsteadofmany.Forexampleiftherewere6
whitesthenitislosslesscompressionwhentheyareallstoredasoneinsteadofseparately.
- InHuffmancodingthelettersthatappearthemosthavetheshortestbitpatterns.Huffmancodingisaform
oflosslesscompressionwhichmakesfilessmallerusingthefrequencyofthecharactersinamessage.
ComputerSystems
- Hardwareisthephysicalcomponentsofthecomputers
- Softwareistheprogramsthatrunonacomputer
- .torepresenttheANDgate
- +torepresenttheORgate
⊕
- torepresenttheXORgate
- OverbartorepresenttheNOTgate
- InANDgateifthere'sa0its0andinORifthere'sa1itsa1.AndinXORifthere'sa1itsa1unlessits1and1in
whichcaseit'llbe0
- Systemsoftwaremanagesthecomputersystemresourcesandactsasaplatformtorunapplicationsoftware.
- Applicationsoftwareisasoftwarethatperformsendusertasks
- Anoperatingsystemisacollectionofprogramsthatmanagesandcontrolsthecomputer.E..gmicrosoft
windows.Androidetc.Ithandlesthemanagementofthe…
● Processors-allowsprogramstorunsidebyside
● Memory-allowsmorethanoneprogramtooccuratonceandmorethanonedocumentopenatthe
sametime.OSdetermineshowmuchmemoryaprogramrequiresandallocatedenough
pages(memoryblocks).
● input/outputdevices-hardwaredevicesconnectedtoacomputer.OSusesadevicedriverwhich
containsinstructionsonhowtocontroladevice.
● Applications-applicationprogramscancommunicatethroughaninterfacefromtheOS.
applicationsmanagerallocatesmemoryspaceanddeterminesthetimeneededforanapplicationto
run.
● Security-OSallowsindividualuserstobecreated/deleted,managesaccesslevelsgiventoeachuser,
keepsalogoffilesauserdealswith
- Utilityprogramshelpmaintainthesystem.
● Encryptionsoftware-usesacomplexalgorithmtoscramplscontentandonlyauthoriseduserscan
unscrambleitandunderstandit.
● Defragmentationsoftware-Afileisusuallystoredassegmentsthataresplitusoveradisk.Theyare
storedwherethereisspace-calledfragmentation.Thiscausesacomputertorunslowerasittakes
longertoreadfrom/writeto.Defragmentationarrangesthesegmentssotheyruncontinuously.
● Datacompressionsoftware-Reducesthefileofasoftwareassmallerfilesareeasiertotransmit.
● Backupsoftware-Topreventdataloss,regularcopiesofthedataaremade.Backupsareusually
madetoahighcapacitysecondarystoragedevice.Afullbackupmakesacopyofeveryfilewhichis
- omputersusebinarytorepresentalldataandinstructions
C
- Hexadecimalisusefulasitislesscharacters/lessdigits.Easierforhumanstounderstandthanbinary.
- Data
● 1kilobyte=1000bytes
● 1megabyte=1000kilobytes
● 1Gigabyte=1000megabytes
● 1Terabyte=1gigabyte
- Charactercodesaregroupedandruninsequence
- ASCIIusually7bitascii.Unicodeuses16bitswhichmakesitmoreusefultorepresentotherlanguagesand
additionalcharacterslikeemojis.
- Apixelisapictureelementsandisasinglepointinanimage
- Soundisanalogueandmustbeconvertedtoadigitalformforstorageandprocessing.
- Analoguesignalsaresampledtocreatethedigitalversionofasound.Thisisdonebymeasuringthe
amplitudeatapointintime.
- Samplingrateisthenumberofsamplespersecond.Sampleresolutionisthenumberofbitspersample.
- Filesize=samplingrate*resolution*seconds
- Addingbinary
● 0+0=0
● 0+1=1
● 1+1=0carry1
- Datacompressionisusefulasitreducesfilesizewhichmakesiteasiertotransmit.
● Lossycompressionisusefulassomedataisremoved.Animagecanbecompressedbyreducingits
colourdepthbyreducingtherangeofcolours.Forsoundthiscanbeachievedbyremovingsounds
outofthehumanrangeofhearingthatwerepickedupduringrecording.
● Losslesscompressioniswhenfilesizeisreducedwithoutthelossofdata.Onemethodisrunlength
encodingwhererunsarestoredasoneitemofdatainsteadofmany.Forexampleiftherewere6
whitesthenitislosslesscompressionwhentheyareallstoredasoneinsteadofseparately.
- InHuffmancodingthelettersthatappearthemosthavetheshortestbitpatterns.Huffmancodingisaform
oflosslesscompressionwhichmakesfilessmallerusingthefrequencyofthecharactersinamessage.
ComputerSystems
- Hardwareisthephysicalcomponentsofthecomputers
- Softwareistheprogramsthatrunonacomputer
- .torepresenttheANDgate
- +torepresenttheORgate
⊕
- torepresenttheXORgate
- OverbartorepresenttheNOTgate
- InANDgateifthere'sa0its0andinORifthere'sa1itsa1.AndinXORifthere'sa1itsa1unlessits1and1in
whichcaseit'llbe0
- Systemsoftwaremanagesthecomputersystemresourcesandactsasaplatformtorunapplicationsoftware.
- Applicationsoftwareisasoftwarethatperformsendusertasks
- Anoperatingsystemisacollectionofprogramsthatmanagesandcontrolsthecomputer.E..gmicrosoft
windows.Androidetc.Ithandlesthemanagementofthe…
● Processors-allowsprogramstorunsidebyside
● Memory-allowsmorethanoneprogramtooccuratonceandmorethanonedocumentopenatthe
sametime.OSdetermineshowmuchmemoryaprogramrequiresandallocatedenough
pages(memoryblocks).
● input/outputdevices-hardwaredevicesconnectedtoacomputer.OSusesadevicedriverwhich
containsinstructionsonhowtocontroladevice.
● Applications-applicationprogramscancommunicatethroughaninterfacefromtheOS.
applicationsmanagerallocatesmemoryspaceanddeterminesthetimeneededforanapplicationto
run.
● Security-OSallowsindividualuserstobecreated/deleted,managesaccesslevelsgiventoeachuser,
keepsalogoffilesauserdealswith
- Utilityprogramshelpmaintainthesystem.
● Encryptionsoftware-usesacomplexalgorithmtoscramplscontentandonlyauthoriseduserscan
unscrambleitandunderstandit.
● Defragmentationsoftware-Afileisusuallystoredassegmentsthataresplitusoveradisk.Theyare
storedwherethereisspace-calledfragmentation.Thiscausesacomputertorunslowerasittakes
longertoreadfrom/writeto.Defragmentationarrangesthesegmentssotheyruncontinuously.
● Datacompressionsoftware-Reducesthefileofasoftwareassmallerfilesareeasiertotransmit.
● Backupsoftware-Topreventdataloss,regularcopiesofthedataaremade.Backupsareusually
madetoahighcapacitysecondarystoragedevice.Afullbackupmakesacopyofeveryfilewhichis