Sunday, January 31, 2016

BINARY

Binary - So Simple a Computer Can Do It


While every modern computer exchanges and processes information in the ones and zeros of binary, rather than the more cumbersome ten-digit decimal system, the idea isn't a new one.
Australia's aboriginal peoples counted by two, and many tribes of the African bush sent complex messages using drum signals at high and low pitches. Morse code, as well, uses two digits (dots and dashes) to represent the alphabet.
Gottfried Leibniz laid the modern foundation of the movement from decimal to binary as far back as 1666, while John Atanasoff, a physics professor at Iowa State College, had built a prototype binary computer by 1939.
In the meantime, Claude Shannon, Konrad Zuse and George Stibitz had been pondering away in their own corners of the world, musing on the benefits of combining binary numbers with boolean logic.
. . . . . . . . . . . . . . . . . . . .
Today, of course, and in almost every computer built since the 1950s, the binary system has replaced the decimal (which really only came about because it was handy to be able to count on your fingers) and advanced digital computer capabilities to an incredible degree.
Basically, binary simplifies information processing. Because there must always be at least two symbols for a processing system to be able to distinguish significance or purpose, binary is the smallest numbering system that can be used.
The computer's CPU need only recognise two states, on or off, but (with just a touch of Leibniz' mysticism) from this on-off, yes-no state all things flow - in the same way as a switch must always be open or closed, or an electrical flow on or off, a binary digit must always be one or zero.
If switches are then arranged along boolean guidelines, these two simple digits can create circuits capable of performing both logical and mathematical operations.
The reduction of decimal to binary does increase the length of the number, a lot, but this is more than made up for in the increase in speed, memory and utilisation.
Especially utilisation. Remember, computers aren't always dealing with pure numbers or logic. Pictures and sound must first be reduced to numerical equivalents that, in turn, have to be decoded again for the end result.
. . . . . . . . . . . . . . . . . . . .
So, how does it work?
It's not so very difficult, really. Binary numbers use the same rules as decimal - the value of any digit always depends on its position in the whole number.
It all gets down to bases. Decimal uses base ten, so that every time a number moves one position to the left in a figure, it increases by a power of ten (eg. 1, 10, 100 etc). Binary, on the other hand, uses base two, so each move to the left increases the value by a power of two (eg. 1, 2, 4 etc).
To convert from decimal to binary, or the other way around, you need only look at the figure's place in the whole number and add up it's value.
Simple.
. . . . . . . . . . . . . . . . . . . .
Binary vs decimal
Decimal
101

0

1

2

3

4

5

6

7

8

9
10
Binary
8421



0



1


10


11

100

101

110

111
1000
1001
1010
Because binary uses base two as opposed to the decimal base ten, the numbers get larger much more quickly, but they still obey the same principles.In this case, the number ten is represented by 10(no 1s, one x 10) in decimal, and 1010 (no 1s, one x 2, no 4s, one x 8) in binary.
. . . . . . . . . . . . . . . . . . . .
Conversion
To convert a decimal number to binary, you need only keep subtracting the largest power of two. Here the decimal 200 is represented by 11001000 (one x 128, one x 64, no 32s, no 16s, one x 8, no 4s, no 2s, no 1s)
From binary to decimal is even easier - just add up the columns.
Decimal
100101
200
2 x 100 + 0 + 0 = 200


Binary
1286432168421
11001000
1 x 128 + 1 x 64 + 0 + 0 + 1 x 8 + 0 + 0 + 0 =200
. . . . . . . . . . . . . . . . . . . .
Addition
Again, addition differs only from decimal in that it is using base two.




+
Decimal
100101
200

50
250




+
Binary
1286432168421
11001000
00110010
11111010
The only trick here is to remember that it is base 2 - whereas in decimal 1 + 1 = 2 with nothing to carry into the next column, in binary, 1 + 1 still = 2, but that 2 is carried forward (as a 1, naturally).




+
Decimal
101

1

1

2




+
Binary
21

1

1
10

Wednesday, December 2, 2015

Bandwidth

Bandwidth


In computing, bandwidth is the bit-rate of available or consumed information capacity expressed typically in metric multiples of bits per second. Variously, bandwidth may be characterized as network bandwidth, data bandwidth, or digital bandwidth.
This definition of bandwidth is in contrast to the field of signal processing, wireless communications, modem data transmission, digital communications, and electronics, in whichbandwidth is used to refer to analog signal bandwidth measured in hertz, meaning the frequency range between lowest and highest attainable frequency while meeting a well-defined impairment level in signal power.
Network bandwidth capacity
The term bandwidth sometimes defines the net bit rate (aka. peak bit rate, information rate, or physical layer useful bit rate), channel capacity, or the maximum throughput of a logical or physical communication path in a digital communication system. For example, bandwidth tests measure the maximum throughput of a computer network. The maximum rate that can be sustained on a link are limited by the Shannon-Hartley channel capacity for these communication systems, which is dependent on the bandwidth in hertz and the noise on the channel.
Network bandwidth consumption
Bandwidth in bit/s may also refer to consumed bandwidth, corresponding to achieved throughput or goodput, i.e., the average rate of successful data transfer through a communication path. This sense applies to concepts and technologies such as bandwidth shaping, bandwidth management, bandwidth throttling, bandwidth cap, bandwidth allocation (for example bandwidth allocation protocol and dynamic bandwidth allocation), etc. A bit stream's bandwidth is proportional to the average consumed signal bandwidth in Hertz (the average spectral bandwidth of the analog signal representing the bit stream) during a studied time interval.

Channel bandwidth may be confused with useful data throughput (or goodput). For example, a channel with x bps may not necessarily transmit data at x rate, since protocols, encryption, and other factors can add appreciable overhead. For instance, a lot of internet traffic uses the transmission control protocol (TCP), which requires a three-way handshake for each transaction. Although in many modern implementations the protocol is efficient, it does add significant overhead compared to simpler protocols. Also, data packets may be lost, which further reduces the useful data throughput. In general, for any effective digital communication, a framing protocol is needed; overhead and effective throughput depends on implementation. Useful throughput is less than or equal to the actual channel capacity plus implementation overhead.

Asymptotic bandwidth
The asymptotic bandwidth (formally asymptotic throughput) for a network is the measure of maximum throughput for a greedy source, for example when the message size (the number of packets per second from a source) approaches infinity.

Asymptotic bandwidths are usually estimated by sending a number of very large messages through the network, measuring the end-to-end throughput. As other bandwidths, the asymptotic bandwidth is measured in multiples of bits per seconds

Multimedia bandwidth
Digital bandwidth may also refer to: multimedia bit rate or average bitrate after multimedia data compression (source coding), defined as the total amount of data divided by the playback time.

Bandwidth in web hosting
In Web hosting service, the term bandwidth is often[6] incorrectly used to describe the amount of data transferred to or from the website or server within a prescribed period of time, for example bandwidth consumption accumulated over a month measured in gigabytes per month.[citation needed] The more accurate phrase used for this meaning of a maximum amount of data transfer each month or given period is monthly data transfer.

A similar situation can occur for end user ISPs as well, especially where network capacity is limited (for example in areas with under developed internet connectivity and on wireless networks).

ASCII

ASCII

From Wikipedia, the free encyclopedia
Not to be confused with MS Windows-1252 or other types of Extended ASCII.
This article is about the character encoding. For other uses, see ASCII (disambiguation).
ASCII chart from a 1972 printer manual (b1 is the least significant bit)
ASCII (Listeni/ˈæski/ ass-kee), abbreviated from American Standard Code for Information Interchange,[1] is acharacter-encoding scheme (the IANA prefers the name US-ASCII[2]). ASCII codes represent text in computers,communications equipment, and other devices that use text. Most modern character-encoding schemes are based on ASCII, though they support many additional characters. ASCII was the most common character encoding on the World Wide Web until December 2007, when it was surpassed by UTF-8, which includes ASCII as a subset.[3][4][5]
ASCII developed from telegraphic codes. Its first commercial use was as a seven-bit teleprinter code promoted by Bell data services. Work on the ASCII standard began on October 6, 1960, with the first meeting of the American Standards Association's (ASA) X3.2 subcommittee. The first edition of the standard was published during 1963,[6][7]underwent a major revision during 1967,[8][9] and experienced its most recent update during 1986.[10] Compared to earlier telegraph codes, the proposed Bell code and ASCII were both ordered for more convenient sorting (i.e., alphabetization) of lists, and added features for devices other than teleprinters.
Originally based on the English alphabet, ASCII encodes 128 specified characters into seven-bit binary integers as shown by the ASCII chart on the right.[11] The characters encoded are numbers 0 to 9, lowercase letters a to z, uppercase letters A to Z, basic punctuation symbols, control codes that originated with Teletype machines, and aspace. For example, lowercase j would become binary 1101010 and decimal 106. ASCII includes definitions for 128 characters: 33 are non-printing control characters (many now obsolete)[12] that affect how text and space are processed[13] and 95 printable characters, including the space(which is considered an invisible graphic.

Archieve

archive


noun
1.
Usually, archives. documents or records relating to the activities,business dealings, etc., of a person, family, corporation, association,community, or nation.
2.
archives, a place where public records or other historical documentsare kept.
3.
any extensive record or collection of data:
The encyclopedia is an archive of world history. The experience wassealed in the archive of her memory.
4.
Digital Technology.
  1. a long-term storage device, as a disk or magnetic tape, or acomputer directory or folder that contains copies of files for backupor future reference.
  2. a collection of digital data stored in this way.
  3. a computer file containing one or more compressed files.
  4. a collection of information permanently stored on the Internet:
    The magazine has its entire archive online, from 1923 to thepresent.
verb (used with object), archived, archiving.
5.
to place or store in an archive:
to vote on archiving the city's historic documents.
6.
Digital Technology. to compress (computer files) and store them in asingle file.
Origin of archive
1595-1605
1595-1605; orig., as plural < French archives < Latin archī (v) a < Greekarcheîa, orig. plural of archeîon public office, equivalent to arch (ḗ)magistracy, office + -eion suffix of place