Friday, July 10, 2015

BBA First Semester Bsuiness Mathematics Notes of Permutation and Combination



Permutation and combination
Permutation and combination

Basics Concepts and Formulas in Permutations and Combinations

Fundamental Principles of Counting : Multiplication TheoremIf an operation can be performed in m different ways and following which a second operation can be performed in n different ways, then the two operations in succession can be performed in m × n different ways.

Fundamental Principles of Counting : Addition TheoremIf an operation can be performed in m different ways and a second independent operation can be performed in n different ways, either of the two operations can be performed in (m+n) ways.


Factorial:
Let n be a positive integer. Then n factorial (n!) can be defined as

n! = n(n-1)(n-2)...1


Examples:5! = 5 x 4 x 3 x 2 x 1 = 120
3! = 3 x 2 x 1 = 6

Special Cases:
a)0! = 1
b)1! = 1

Permutations:
Permutations are the different arrangements of a given number of things by taking some or all at a time

Examples:
a)All permutations (or arrangements) formed with the letters a, b, c by taking three at a time are (abc, acb, bac, bca, cab, cba)

b)All permutations (or arrangements) formed with the letters a, b, c by taking two at a time are (ab, ac, ba, bc, ca, cb)

Combinations:
Each of the different groups or selections formed by taking some or all of a number of objects is called a combination

Examples:Suppose we want to select two out of three girls P, Q, R. Then, possible combinations are PQ, QR and RP. (Note that PQ and QP represent the same selection)

Suppose we want to select three out of three girls P, Q, R. Then, only possible combination is PQR


Difference between Permutations and Combinations and How to Address a Problem
Sometimes, it will be clearly stated in the problem itself whether permutation or combination is to be used. However if it is not mentioned in the problem, we have to find out whether the question is related to permutation or combination.

Consider a situation where we need to find out the total number of possible samples of two objects which can be taken from three objects P,Q , R. To understand if the question is related to permutation or combination, we need to find out if the order is important or not.

If order is important, PQ will be different from QP , PR will be different from RP and QR will be different from RQ

If order is not important, PQ will be same as QP, PR will be same as RP and QR will be same as RQ

Hence,
If the order is important, problem will be related to permutations.
If the order is not important, problem will be related to combinations.

For permutations, the problems can be like "What is the number of permutations the can be made", "What is the number of arrangements that can be made", "What are the different number of ways in which something can be arranged", etc

For combinations, the problems can be like "What is the number of combinations the can be made", "What is the number of selections the can be made", "What are the different number of ways in which something can be selected", etc.

Mostly problems related to word formation, number formation etc will be related to permutations. Similarly most problems related to selection of persons, formation of geometrical figures , distribution of items (there are exceptions for this) etc will be related to combinations.


Repetition:
The term repetition is very important in permutations and combinations.
Consider the same situation described above where we need to find out the total number of possible samples of two objects which can be taken from three objects P,Q , R.

If repetition is allowed, the same object can be taken more than once to make a sample.
i.e., if repetition is allowed, PP, QQ, RR can also be considered as possible samples.

If repetition is not allowed, then PP, QQ, RR cannot be considered as possible samples
Normally repetition is not allowed unless mentioned specifically.

pq and qp are two different permutations ,but they represent the same combination.


Number of permutations of n distinct things taking r at a time:Number of permutations of n distinct things taking r at a time can be given by

nPr = n!(n−r)!=n(n−1)(n−2)...(n−r+1)where 0≤r≤n

If r > n, nPr = 0

Special Case: nP0 = 1

nPr is also denoted by P(n,r). nPr has importance outside combinatorics as well where it is known as the falling factorial and denoted by (n)r or nr

Examples

8P2 = 8 x 7 = 56
5P4= 5 x 4 x 3 x 2 = 120


Number of permutations of n distinct things taking all at a time:

Number of permutations of n distinct things taking them all at a time = nPn = n!

Number of Combinations of n distinct things taking r at a time

Number of combinations of n distinct things taking r at a time ( nCr) can be given by
nCr = n!(r!)(n−r)!=n(n−1)(n−2)
(n−r+1)r!where 0≤r≤n

If r > n, nCr = 0

Special Case: nC0 = 1

nCr is also denoted by C(n,r). nCr occurs in many other mathematical contexts as well where it is known as binomial coefficient and denoted by (nr)

Examples:
1. Out of 7 consonants and 4 vowels, how many words of 3 consonants and 2 vowels can be formed?ans) Number of ways of selecting 3 consonants out of 7 = 7C3
Number of ways of selecting 2 vowels out of 4 = 4C2

Number of ways of selecting 3 consonants out of 7 and 2 vowels out of 4 = 7C3 x 4C2
It means that we can have 210 groups where each group contains total 5 letters(3 consonants
and 2 vowels).
Number of ways of arranging 5 letters among themselves = 5!
= 5 x 4 x 3 x 2 x 1 = 120
Hence, Required number of ways = 210 x 120 = 25200


2. In a group of 6 boys and 4 girls, four children are to be selected. In how many different ways can they be selected such that at least one boy should be there?
ans) In a group of 6 boys and 4 girls, four children are to be selected such that
at least one boy should be there.
Hence we have 4 choices as given below

We can select 4 boys ------(Option 1).
Number of ways to this = 6C4

We can select 3 boys and 1 girl ------(Option 2)
Number of ways to this = 6C3 x 4C1

We can select 2 boys and 2 girls ------(Option 3)
Number of ways to this = 6C2 x 4C2

We can select 1 boy and 3 girls ------(Option 4)
Number of ways to this = 6C1 x 4C3

Total number of ways
= (6C4) + (6C3 x 4C1) + (6C2 x 4C2) + (6C1 x 4C3)
= (6C2) + (6C3 x 4C1) + (6C2 x 4C2) + (6C1 x 4C1) [Applied the formula nCr = nC(n - r) ]
= 15 + 80 + 90 + 24
= 209


3. From a group of 7 men and 6 women, five persons are to be selected to form a committee so that at least 3 men are there on the committee. In how many ways can it be done?
ans) From a group of 7 men and 6 women, five persons are to be selected with at least 3 men.
Hence we have the following 3 choices

We can select 5 men ------(Option 1)
Number of ways to do this = 7C5

We can select 4 men and 1 woman ------(Option 2)
Number of ways to do this = 7C4 x 6C1

We can select 3 men and 2 women ------(Option 3)
Number of ways to do this = 7C3 x 6C2

Total number of ways
= 7C5 + [7C4 x 6C1] + [7C3 x 6C2]
= 7C2 + [7C3 x 6C1] + [7C3 x 6C2] [Applied the formula nCr = nC(n - r) ]
= 21 + 210 + 525
 = 756


4. In how many different ways can the letters of the word 'OPTICAL' be arranged so that the vowels always come together?ans) The word 'OPTICAL' has 7 letters. It has the vowels 'O','I','A' in it and these 3 vowels
should always come together. Hence these three vowels can be grouped and considered as a
single letter. That is, PTCL(OIA).

Hence we can assume total letters as 5. and all these letters are different.
Number of ways to arrange these letters = 5! = [5 x 4 x 3 x 2 x 1] = 120

All The 3 vowels (OIA) are different
Number of ways to arrange these vowels among themselves = 3! = [3 x 2 x 1] = 6

Hence, required number of ways = 120 x 6 = 720


5. In how many different ways can the letters of the word 'CORPORATION' be arranged so that the vowels always come together?ans)The word 'CORPORATION' has 11 letters. It has the vowels 'O','O','A','I','O' in it and
these 5 vowels should always come together. Hence these 5 vowels can be grouped
and considered as a single letter. that is, CRPRTN(OOAIO).

Hence we can assume total letters as 7. But in these 7 letters, 'R' occurs 2 times and
rest of the letters are different.

Number of ways to arrange these letters = [Loading Maths... ]2520In the 5 vowels (OOAIO), 'O' occurs 3 and rest of the vowels are different.

Hence, required number of ways = 2520 x 20 = 50400


6. In how many ways can a group of 5 men and 2 women be made out of a total of 7 men and 3 women?ans)We need to select 5 men from 7 men and 2 women from 3 women

Number of ways to do this
= 7C5 x 3C2
= 7C2 x 3C1 [Applied the formula nCr = nC(n - r) ]
= 21 x 3
 = 63


7. In how many different ways can the letters of the word 'MATHEMATICS' be arranged such that the vowels must always come together?
ans) The word 'MATHEMATICS' has 11 letters. It has the vowels 'A','E','A','I' in it and
these 4 vowels must always come together. Hence these 4 vowels can be grouped and
considered as a single letter. That is, MTHMTCS(AEAI).

Hence we can assume total letters as 8. But in these 8 letters, 'M' occurs 2 times,
'T' occurs 2 times but rest of the letters are different.


Hence,number of ways to arrange these letters = [Loading Maths... ]In the 4 vowels (AEAI), 'A' occurs 2 times and rest of the vowels are different.
Hence, required number of ways = 10080 x 12 = 120960


8. There are 8 men and 10 women and you need to form a committee of 5 men and 6 women. In how many ways can the committee be formed?
ans)We need to select 5 men from 8 men and 6 women from 10 women

Number of ways to do this
= 8C5 x 10C6
= 8C3 x 10C4 [Applied the formula nCr = nC(n - r) ]
= 56 x 210
= 11760


9. How many 3-letter words with or without meaning, can be formed out of the letters of the word, 'LOGARITHMS', if repetition of letters is not allowed?ans)The word 'LOGARITHMS' has 10 different letters.

Hence, the number of 3-letter words(with or without meaning) formed by using these letters
= 10P3
= 10 x 9 x 8
= 720

10. In how many different ways can the letters of the word 'LEADING' be arranged such that the vowels should always come together?
ans) The word 'LEADING' has 7 letters. It has the vowels 'E','A','I' in it and
these 3 vowels should always come together. Hence these 3 vowels can be grouped
and considered as a single letter. that is, LDNG(EAI).

Hence we can assume total letters as 5 and all these letters are different.
Number of ways to arrange these letters = 5! = 5 x 4 x 3 x 2 x 1 = 120

In the 3 vowels (EAI), all the vowels are different.
Number of ways to arrange these vowels among themselves = 3! = 3 x 2 x 1= 6

Hence, required number of ways = 120 x 6= 720











Domain and Range

Domain and Range of a Function

Domain:The domain of a function is the complete set of possible values of the independent variable.
ie;The domain is the set of all possible x-values which will make the function "work", and will output real y-values.

When finding the domain, remember:
The denominator (bottom) of a fraction cannot be zero.
The number under a square root sign must be positive in this work
eg:
Here is the graph of y=√​x+4​​​:

http://intmstat.com/functions-and-graphs/domain.gif

The domain of this function is x≥−4, since x cannot be less than −4. To see why, try out some numbers less than −4 (like −5 or −10) and some more than −4 (like −2 or 8) in your calculator. The only ones that "work" and give us an answer are the ones greater than or equal to −4. This will make the number under the square root positive.

Notes:
The enclosed (colored-in) circle on the point (−4,0). This indicates that the domain "starts" at this point.

How to find the domainIn general, we determine the domainof each function by looking for those values of the independent variable (usually x) which we are allowed to use. (Usually we have to avoid 0 on the bottom of a fraction, or negative values under the square root sign).

Range:The range of a function is the complete set of all possible resulting values of the dependent variable (y,usually), after we have substituted the domain.
ie;The range is the resulting y-values we get after substituting all the possible x-values.
How to find the range:
The range of a function is the spread of possible y-values (minimum y-value to maximum y-value)
Substitute different x-values into the expression for y to see what is happening. (Ask yourself: Is yalways positive? Always negative? Or maybe not equal to certain values?)
Make sure you look for minimum and maximum values of y.
Draw a sketch! In math, it's very true that a picture is worth a thousand words.
Some Questions:
a) f(x)=x^​2​​+2 Domain: The function f(x) = x^2 + 2 is defined for all real values of x (because there are no restrictions on the value of x).

Hence, the domain of f(x) is"all real values of x".

Range: Since x^^2 is never negative, x^2 + 2 is never less than 2
Hence, the range of f(x) is"all real numbers f(x)≥2".

We can see that x can take any value in the graph, but the resulting y = f(x) values are greater than or equal to 2.

http://intmstat.com/functions-and-graphs/x2plus2.png



(b) f(t)=​1/t+2​​
Domain: The function f(t)=1/​t+2​​ is not defined for t = -2, as this value would result in division by zero. (There would be a 0 on the bottom of the fraction.)

Hence the domain of f(t) is"all real numbers except -2"

Range: No matter how large or small t becomes, f(t) will never be equal to zero.
 If we try to solve the equation for 0, this is what happens:
0=​t+2​​1​​

Multiply both sides by (t + 2) and we get
0=1

This is impossible.So the range of f(t) is"all real numbers except zero".

We can see in the graph that the function is not defined for t=−2 and that the function (the y-values) takes all values except 0.

http://intmstat.com/functions-and-graphs/1ontplus2.png



C)
State the domain and range of the following relation. Is the relation a function?
{(2, –3), (4, 6), (3, –1), (6, 6), (2, 3)}


The above list of points, being a relationship between certain x's and certain y's, is a relation. The domain is all the x-values, and the range is all the y-values. To give the domain and the range, I just list the values without duplication:

domain: {2, 3, 4, 6}

range: {–3, –1, 3, 6}

(It is customary to list these values in numerical order, but it is not required. Sets are called "unordered lists", so you can list the numbers in any order you feel like. Just don't duplicate: technically, repetitions are okay in sets, but most instructors would count off for this.)

While the given set does represent a relation (because x's and y's are being related to each other), they gave me two points with the same x-value: (2, –3) and (2, 3). Since x = 2 gives me two possible destinations, then this relation is not a function.

Note that all I had to do to check whether the relation was a function was to look for duplicate x-values. If you find a duplicate x-value, then the different y-values mean that you do not have a function.

D)State the domain and range of the following relation. Is the relation a function?
{(–3, 5), (–2, 5), (–1, 5), (0, 5), (1, 5), (2, 5)}


I'll just list the x-values for the domain and the y-values for the range:

domain: {–3, –2, –1, 0, 1, 2}
range: {5}
This is another example of a "boring" function, just like the example on the previous page: every last x-value goes to the exact same y-value. But each x-value is different, so, while boring, this relation is indeed a function. In point of fact, these points lie on the horizontal line y = 5.

There is one other case for finding the domain and range of functions. They will give you a function and ask you to find the domain (and maybe the range, too). I have only ever seen (or can even think of) two things at this stage in your mathematical career that you'll have to check in order to determine the domain of the function they'll give you, and those two things are denominators and square roots.


E)Determine the domain and range of the given function:
http://www.purplemath.com/modules/fcns/domain04.gif

The domain is all the values that x is allowed to take on. The only problem I have with this function is that I need to be careful not to divide by zero. So the only values that x can not take on are those which would cause division by zero. So I'll set the denominator equal to zero and solve; my domain will be everything else.

x^2 – x – 2 = 0
(x – 2)(x + 1) = 0
x = 2 or x = –1

Then the domain is "all x not equal to –1 or 2".

The range is a bit trickier, which is why they may not ask for it. In general, though, they'll want you to graph the function and find the range from the picture. 
In this case: 
http://www.purplemath.com/modules/fcns/domain01.gif


As I can see from my picture, the graph "covers" all y-values (that is, the graph will go as low as I like, and will also go as high as I like). Since the graph will eventually cover all possible values of y, then the range is "all real numbers".


F)Determine the domain and range of the given function:

http://www.purplemath.com/modules/fcns/domain05.gif

The domain is all values that x can take on. The only problem I have with this function is that I cannot have a negative inside the square root. So I'll set the insides greater-than-or-equal-to zero, and solve. The result will be my domain:

–2x + 3 > 0
–2x > –3
2x < 3
x < 3/2 = 1.5

Then the domain is "all x < 3/2".

The range requires a graph. I need to be careful when graphical radicals.
http://www.purplemath.com/modules/fcns/domain02.gif


The graph starts at y = 0 and goes down from there. While the graph goes down very slowly, I know that, eventually, I can go as low as I like (by picking an x that is sufficiently big). Also, from my experience with graphing, I know that the graph will never start coming back up. Thenthe range is "y < 0".


G)Determine the domain and range of the given function:
y = –x^4 + 4

This is just a garden-variety polynomial. There are no denominators (so no division-by-zero problems) and no radicals (so no square-root-of-a-negative problems). There are no problems with a polynomial. There are no values that I can't plug in for x. When I have a polynomial, the answer is always that the domain is "all x".

The range will vary from polynomial to polynomial, and they probably won't even ask, but when they do, I look at the picture:
http://www.purplemath.com/modules/fcns/domain03.gif

The graph goes only as high as y = 4, but it will go as low as I like. Then:

The range is "all y < 4".

BBA First Semester Computer Notes



COMPUTER NOTES

INTRODUCTION ,FUNCTIONS,CHARACTERISTICS AND GENERATION OF COMPUTERS
What is a (Digital) Computer?
A computer is an electronic device system that accepts raw data as inputs, processes and manipulates them in digital form to give outputs (results) and store them for future use.

Functionality of a computer:
·         Inputs from Input devices. 
·         Store or hold the input data. 
·         Process by CPU (Central Processing Unit). 
·         Output from Output devices. 
·         Store in memory.
Characteristics of Computer
·         Speed
·         Accuracy
·         Diligence
·         Versatility
·         Storage and memorizing
·         Automatic
·         Processing
·         Non-intelligent

Speed: 
·         A computer can do numbers of tasks with in a fraction of time for which a human takes a longer period of time even days or month.
·         Capable of processing a very large amount of data.
·         Speed in terms of microsecond, nanosecond and pico-second.

Accuracy:
·         The result produced by a computer can be of higher precision and accuracy.
·         Its accuracy can be increased higher as requirements.
·         Provide outputs based on inputs.

Diligence (Carefulness):
·         It is hard-working and keeps working until it is stopped.
·         It keeps on working according to the program and do not feel tiredness or being lazy.

Versatility:
·         Flexibility, changeability.
·         Same computer can be used for different jobs or work.
·         More usefulness.
·         Same computer for different task.

Storage and Memorizing:
·         A computer can store large amount of data.
·         Once stored, it can be used any time as needed and don’t forget the data.
·         Can store different types of data (Image, Text, audio etc).

Automatic:
·         Once programmed, it automatically keeps doing the task.

Processing:
·         Large amount of data and commands are processed in the computer.
·         As requirement data are processed and gives an output.
·         Every task need to be processed.

Non-intelligent:
·         Absence of intellectualism.
·         It can not decide what to do.
·         It keeps working how it has been programmed to do.
·         No logical thinking if not programmed.

Applications of Computer

·         Education, Library and Design
·         Industries and Manufacturing
·         Research, Survey and Simulation
·         Hospital and Health
·         Data Processing
·         Science and Engineering
·         Offices and Hotel Management
·         Advertisement and Marketing.
·         Entertainment and Communication.
·         Weather Forecasting
·         Airlines and Navigation
Advantages of Computer
·         Computers are much more accurate and reliable than any other devices and human beings.
·         They are very much useful for repeated jobs which are difficult and tedious for humans to do.
·         Computers are much faster than humans.
·         With the help of computer, complicated things are easy to simulate and show.
·         It is versatile and can perform various types of works.
·         It can be used in multiple fields so it is called general purpose machine.
·         Because of the availability of storage, data can be store for future use and programs can be modified to add features for different purpose.
·         No repeated jobs so save time, labor and physical wastage (Draft) material. 
·         Communications technologies have advanced a lot with the use of computers.

Disadvantages Of Computer:
·         It is expensive and is beyond the reach of poor people. This limitation is being overcome because its cost is drastically decreasing day by day. 
·         It is an electronic machine, so there is much danger of electric shock and other physical damage. 
·         Since people are getting more relied upon computer, sometimes the failure in devices and programs can produce unreliable information and cause loss of data in a great extent. 
·         It increases dependency on machine. Even for every simple calculation people need them. 
·         Although it helps in faster and cheaper communication, there is much danger for security leakage. 
·         It increases piracy of intellectual properties (movies, publications etc) in big volume. 
·         Since computers are used in sensitive areas like national defense, civil aviation, banking, even a simple fault can cause loss of life and property. 
Generations of Computers
·         First Generation (Vacuum tube based).
·         Second Generation (Transistor based.)
·         Third Generation (Integrated Circuit based.)
·         Fourth Generation (VLSI microprocessor based.)
·         Fifth Generation(Bio-Chips & Artificial Intelligence)
First Generation:
·         The period of first generation was 1942-1954.
·         Vacuum tubes (Valves) as basic components for memory and circuitry for CPU.
·         Very large in size occupying entire room.
·         Consume large amount of power (electricity) and produce large amount of heat.
·         Punch cards and Paper tapes were used as Input and Outputs were limited on printouts.
·         Use of machine level language.
·         Storage capacity was limited to 1KB-4KB.
·         Slow operating speeds and slowest than all of the other generations’ computers..

fig:First generation computer
·         Example: UNIVAC and ENIAC.
Second Generation:
·         The period of second generation was 1952-1964. 
·         Transistors were used instead of vacuum tubes. 
·         Smaller in size as compared to First generation computers. 
·         Consumed less power and generate less heat compare to First generation computers. 
·         Faster and reliable than First generation computers. 
·         Assembly language and high level programming like FORTAN, COBOL were used. 
·         Use of magnetic core technology in place of magnetic drum. 
·         Magnetic core memories for internal storage, and magnetic disk and tapes for auxiliary memory. 

fig:Second generation computer
·         Example: ATLAS , Mark III, IBM 7000

Note: A transistor is a small electronic device made up of semiconductor material like germanium and silicon. It is much smaller in size as compared to vacuum tubes and consumes less power. In 1947, Bell Laboratory introduces the first transistor and was used in computer in 1958.

Third Generation:

·         The period of third generation was 1964-1972.
·         Integrated Circuits (ICs) were used in place of transistors.
·         Smaller in size than second generation as many transistors can be integrated in an IC.
·         Low power consumption than previous generation.
·         High level language like FORTAN-II, ALGOL-68 were used.
·         More reliable and efficient than previous generation computers.
·         Keyboard and monitor as input and output device.
·         Real-time and multi-programming Operating system were used.
·          

fig:Third generation computer
·         Example: IBM-360 series, IBM-370/168
Fourth Generation:

·         The period of Fourth Generation was 1972-present.
·         Use of Very Large Scale Integration (VLSI) technology and microprocessor.
·         Since thousands of transistors and other circuits were integrated in a single chip, size of computer drastically decreased.
·         Cheaper in price and lower power consumption.
·         Major achievement in computer technology took place in this era including hardware and software.
·         Still using the computer from this generation.
·         Highly accurate, reliable & operation speed.
·         Massive use of magnetic and optical storage device.
·         Multiprocessing, Multiprogramming, multimedia and distributed computing possible.
·         Concept of internet was introduced.
·         Introduction of PC’s for general people.

fig:Fourth generation computer
·         Example : IBM PC, Pentium PC
Fifth Generation:

·         The period of Fifth generation is present –future. 
·         Based on artificial intelligence and still in development. 
·         Some applications such as voice recognition are introduced. 
·         The use of parallel processing and superconductors. 
·         More user friendly interface with multimedia features. 
·         Quantum computation, molecular and nanotechnology uses that will change the face of computer. 
·         Development of devices to respond to natural language input. 


·         Self learning and organization capability.
COMPUTER SOFTWARE ,OPERATING SYSTEM
Computer Software:
  • Also known as set of programs. 
  • Collections of instruction for a computer. 
  • Solve user problem and control different operation. 
  • Computers requires program to function, typically executing the program’s instruction in CPU. 
A software is a set of programs designed to perform certain task or operation. Software is any set of machine readable instructions that directs a computer's processor to perform specific operations. The term is used to contrast with computer hardware, the physical objects (processor and related devices) that carry out the instructions. computer hardware and software require each other and neither can be realistically used without the other.
Software may be categorized along functional lines: -
  1. System software 
  2. Application software. 
Application Software:
  • It is a computer software designed to perform a specific function directly for the user or in some case for another application program. 
  • Also called software applications, applications or apps. 
  • Examples: Productive software, Presentation software, graphics software, CAD, specialized scientific application, industry specific software. 
Application software is a program needed to perform various applications on the computer by the user. It helps a computer user to solve specific problem like prepare letters and documents, to create pictures and advertisements, to perform large calculations etc. The application software runs on the top of the operating system software.


System Software:
  • Operating system and utility programs. 
  • Manage computer resources at a low level. 
  • Allows the parts of a computer to work together. 
  • It insulate the applications programmer/user as much as possible from detail of the particular computer complex being used. 
A collection of programs designed to manage, control and operate the processing capabilities of the computer. System software is a set of programs to implement certain functions in a computer system. It controls the overall operations and components of a computer system. It is the base on which application programs are executed. It is an interface between user and computer.
Divided basically:
  1. Operating System 
  2. Utility Software 
  3. Language Processor (Compiler, Interpreter, Assembler).
  4. Device Drivers
Operating system (OS):
  • Interface between hardware and user. 
  • Responsible for the management and coordination of activities. 
  • Sharing of the resources of the computer that acts as a host for computing application run on the machine. 
  • Application program makes the use of OS by making request for services. 
  • Examples: Linux, Windows, OS/400 ETC. 
Operating system is software to control overall operations and components of a computer system.

Utility software:
  • Also known as service routine, tools or utility routine. 
  • Designed to help manage and tune the computer hardware, OS or application software by performing a single task or small range of tasks. 
  • Some utilities are integrated into major operating system. 
  • Defragmenter, anti-virus, data compression, disk scanner, file viewer etc. 
  • Utility programs is used to solve a particular problem of software or hardware.


Device Drivers:
Device Drivers is software that permits a computer system to communicate with a device. We install device and its driver before using a device. Eg. Modem driver, printer driver etc.


Language Processors:
Language processors is software that converts a source program into object program. For example C-compiler converts a program written in C language into object program (machine code).


Operating System:
  • It is an interface between hardware and user.
  • It is responsible for the management and coordination of activities.
  • Sharing of resources of computer.
  • It creates links between user and computer as well as controls the execution of application programs. 
  • It minimizes the amount of human intervention required during processing.
  • Makes a computer more convenient to use.
  • —The end users are not particularly concerned with the computer’s architecture, and they view the computer system in terms of application.
  • —Provides some basic utilities to assist user in creating programs, the management of files, and the control of I/O devices.
  • Eg: Linux, Windows, VMS, OS1400, UNIX


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrdge-3DVotfBw2TMytnbfqgULY_ge1VJlMaqsxI9EZcy3FLnYg07l3y-2TBL4YUuLdY3ae8dIv-UnD8eDgvFoCcimGxfss5He1uWAYbrYn6dzOsQqC_jEoToebaT0FKWk5PGfrfpxyvs/s1600/interface.JPG
A- User/Application
B- Virtual Machine Interface
C- Operating System
D- Physical Machine Interface
E- Hardware (Physical Machine)
— An O/S is a virtual machine (emulated hardware) that aims to provide a simpler programming environment than the raw machine. An operating system is a set of programs that interface between hardware, software and user creating a simpler user friendly environment. Management and operation of hardware and software are all done by operating system.
An operating system is a collection of programs that together controls the operations of computer system. It activates and recognizes the hardware devices and provides operating environment for other application software. It is an interpreter which is responsible for bridging the gap between hardware and application needs.

Functions of Operating System
  • Job Management: Functions of monitoring and tracking the time and resources used by various operations, task or users.
  • Processor Management: Assigning the processor to a process and deallocate processor when not required.
  • Coordination between software and users: Coordination and assignment of compilers, interpreters, assemblers and other software to the various user of the computer systems.
  • Protection and Security: Prevention from unauthorized access to programs and data. Use of password, user login etc.
  • Device and file Management: Allocates and deallocates the resources and decides what will get the resources. It controls which process gets the device or file for what duration.
  • Memory Management: Decision of providing the duration and part of memory for a process or program.
  • Error-detection and recovery: Error detection, alert, messages, debugging or recovery from error.
  • Virtual Storage Management: Virtual memory is a feature of an operating system (OS) that allows a computer to compensate for shortages of physical memory by temporarily transferring pages of data from random access memory (RAM) to disk storage (hard disk). The OS will also retrieve the data that was moved to temporarily to disk storage to RAM. This process is known as swapping or paging which helps to solve the problem of shortage of RAM location.
  • User Interface:— Makes a computer more convenient to use.—The end users are not particularly concerned with the computer’s architecture, and they view the computer system in terms of application.

Utility software:
It is also known as service program, service routine, tools or utility routine. It is computer software designed to help manage and tune computer hardware, operating system or application software by performing a single task or small range of tasks. Integrated in major OS.
Examples:
Disk storage Utilities (Disk Defragmenters, Disk Checkers, Disk Cleaner, Disk Space Analyzer, Disk Partition, file managers).
System Profiler.
Anti-virus software. etc.

Disk Cleanup: It can find files that are unnecessary to computer operation or take up considerable amount of space. Disk cleanup helps the user to decide what to delete when their hard disk is full. Disk clean up targets:
  • Compression of old files.
  • Temporary internet files.
  • Downloaded program files.
  • Recycle Bin
  • Setup log files. etc.
Disk defragmenter: It is a computer program inbuilt in MS - Window, designed to increase access speed by rearranging files stored in disk to occupy contiguous storage location, a technique commonly known as defragmenting. The purpose is to optimize the time it takes to read and write files to/from the disk by minimizing head travel time and maximizing transfer rate.

Antivirus software: A virus is a unwanted program that bring unwanted modification or operation in a computer. Antivirus is a computer software designed and used to prevent, detect and remove virus software. Examples of Antivirus are Avira, Avast, Norton etc.

Disk compression: It is the utility software which increase the amount of data that can be stored on a hard disk of given size. Whenever the operating system attempts to save a file on disk, the utility intercepts it and compress. Similarly, when operating system attempts to open a file, the disk compression utility intercepts the file, decompress it and then passes it to the operating system. To be specific, it differs with file compression software. In file compression, only specific files are compressed and requires the user designate files to be compressed. Example of Disk compression are NTFS compression, WIMBoot compression, Diskdoubler. Example of file compressor are winzip, winrar, stuffit etc.

Disk partition software: Disk partition is the act of dividing a hard disk into multiple logical storage units and each unit treat as one physical disk drive. So the utility software which is used for disk partition is known as disk partition software. Examples Bootpart, Diskpart, Partition Wizard etc.

Number System

Number system (Decimal, Binary, Octal, Hexadecimal)

Number System:
A number system is a system in which different notations are used for representing numbers of given set. Depending upon the number of distinct notations used, there are are Decimal (base 10), Binary (base 2), Octal (base 8) and Hexadecimal (base 16) number system.

Decimal (base 10): let start with the familiar number system "Decimal". It is a base 10 number system in which we use 10 distinct notations starting with 0. The notations used in Decimal are 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. If more notations required then we increase the number of digits with carryover. For 1 more than 9 is represented by 10 which means 2 digits are used; 1 is carry and 0 is starting of the count.
1+1=2, 8+1=9, 9+1=10, 10+1=11, 19+1= 20.
Counting Sequence:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21................

Binary (base 2): Two distinct notions (0, 1) are used. So, if these two notation are used and need to represent more, we make a carry. For 1 more than 1 is represent by 10 which means 2 digits are used; 1 is carry and 0 is starting of the count on first digit.
0+1=1, 1+1=10, 10+1=11, 11+1=100, 100+1=101
Counting Sequence:
0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 111............
Only two notations (0, 1) need to be used to represent number.

Octal (base 8) : Octal is a base 8 number system in which we use 8 distinct notations. The notations used in Octal are 0, 1, 2, 3, 4, 5, 6 and 7. If 1 is added to 7 then the representation of number is 10 where first number 1 is carry and 0 is initial start of count on first digit.
1+1= 2, 5+1=6, 6+1=7, 7+1=10, 11+1=12, 16+1=17, 17+1=20
All the above numbers are base 8 number.
Counting Sequence:
0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 20.....
Only 8 notations (0, 1, 2, 3, 4, 5, 6, 7) need to be used to represent number.

Hexadecimal: Hexadecimal is a base 16 number system in which we use 16 distinct notations. The notations in Hexadecimal are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F. In the notation A= decimal 10, B = decimal 11 C=12, D=13, E=14 and F= decimal 15. After F, the next number is 10 because all the unique notations have been used so make carry and 0 is initial start of count on first digit.
1+1=2 6+1=7, 9+1=A, C+1=D.
Counting Sequence:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A. B. C. D. E. F. 10. 11. 12. ......18, 19, 1A, 1B, 1C, 1D, 1E, 1F, 20, 21.....
Decimal                Binary                   Octal                      Hexadecimal
0                              0                              0                              0
1                              1                              1                              1
2                              10                           2                              2
3                              11                           3                              3
4                              100                         4                              4
5                              101                         5                              5
6                              110                         6                              6
7                              111                         7                              7
8                              1000                       10                           8
9                              1001                       11                           9
10                           1010                       12                           A
11                           1011                       13                           B
12                           1100                       14                           C
13                           1101                       15                           D
14                           1110                       16                           E
15                           1111                       17                           F

16                           10000                    20                           10

Base Conversion:
Number from one number system can be converted to other number base system.

Binary to Decimal:
For example:

(1101101)2 to (?)10

=1x26+1x25+0x24+1x23+1x22+0x21+1x20
=1x64+1x32+0x16+1x8+1x4+0x2+1x1
=64+32+8+4+1=109 decimal Answer

Octal to Decimal
(2507143)8 to (?)10

=2x86+5x85+0x84+7x83+1x82+4x81+3x80
=2x262144+5x32768+0x4096+7x512+1x64+4x8+3x1
=691811 decimal Answer
Hexadecimal to Decimal
(AE4B)16 to (?)10

=A x 163+E x 162+4 x 161+B x 160
=10 x 4096+14 x 256+x 16+11 x 1
= 44619 decimal Answer

Programming Language
Programming Language:
A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs to control the behavior of a machine or to express algorithms.




Types of Programming Languages
There are two types of programming languages, which can be categorized into the following ways:

1) Low level language
a) Machine language (1GL)
b) Assembly language (2GL)

2. High level language
a) Procedural-Oriented language (3GL)
b) Problem-Oriented language (4GL)
c) Natural language (5GL)

1. Low level language:
This language is the most understandable language used by computer to perform its operations. It can be further categorized into:

a) Machine Language (1GL):
Machine language consists of strings of binary numbers (i.e. 0s and 1s) and it is the only one language, the processor directly understands. Machine language has an Merits of very fast execution speed and efficient use of primary memory.

Merits:
  • It is directly understood by the processor so has faster execution time since the programs written in this language need not to be tanslated.
  • It doesn’t need larger memory.
Demerits:
  •  It is very difficult to program using 1GL since all the instructions are to be represented by 0s and 1s.
  •  Use of this language makes programming time consuming.
  •  It is difficult to find error and to debug.
  • ¨It can be used by experts only.


b) Assembly Language:
Assembly language is also known as low-level language because to design a program programmer requires detailed knowledge of hardware specification. This language uses mnemonics code (symbolic operation code like ‘ADD’ for addition) in place of 0s and 1s. The program is converted into machine code by assembler. The resulting program is reffered to as an object code.

Merits:
  • It is makes programming easier than 1GL since it uses mnemonics code for programming. Eg: ADD for addition, SUB for subtraction, DIV for division, etc.
  •  It makes programming process faster.
  •  Error can be identified much easily compared to 1GL.
  • ¨It is easier to debug than machine language.

Demerits:
  • Programs written in this language is not directly understandable by computer so translaters should be used.
  •  It is hardware dependent language so programmers are forced to think in terms of computer’s architecture rather than to the problem being solved.
  • Being machine dependent language, programs written in this language are very less or not protable.
  •  Programmers must know its mnemonics codes to perform any task.


2. High level language:
Instructions of this language closely resembles to human language or English like words. It uses mathematical notations to perform the task. The high level language is easier to learn. It requires less time to write and is easier to maintain the errors. The high level language is converted into machine language by one of the two different languages translator programs;interpreter or compiler.


High level language can be further categorized as:

a) Procedural-Oriented language (3GL):
Procedural Programming is a methodology for modeling the problem being solved, by determining the steps and the order of those steps that must be followed in order to reach a desired outcome or specific program state. These languages are designed to express the logic and the procedure of a problem to be solved. It includes languages such as Pascal, COBOL, C, FORTAN, etc.


Merits:
  • Because of their flexibility, procedural languages are able to solve a variety of problems.
  •  Programmer does not need to think in term of computer architecture which makes them focused on the problem.
  •  Programs written in this language are portable.

Demerits:
  •  It is easier but needs higher processor and larger memory.
  •  It needs to be translated therefore its execution time is more.

b) Problem-Oriented language (4GL):
It allows the users to specify what the output should be, without describing all the details of how the data should be manupulated to produce the result. This is one step ahead from 3GL. These are result oriented and include database query language.
Eg: Visual Basic, C#, PHP, etc.
The objectives of 4GL are to:
  • Increase the speed of developing programs.
  •  Minimize user’s effort to botain information from computer.
  •  Reduce errors while writing programs.

Merits:
  •  Programmer need not to think about the procedure of the program. So, programming is much easier.
Demerits:
  • It is easier but needs higher processor and larger memory.
  •  It needs to be translated therefore its execution time is more.

c) Natural language (5GL)
Natural language are stil in developing stage where we could write statrments that would look like normal sentences.

Merits:
  •  Easy to program.
  • Since, the program uses normal sentences, they are easy to understand.
  • The programs designed using 5GL will have artificial intelligence (AI).
  • The programs would be much more interactive and interesting.

Demerits:
  • It is slower than previous generation language as it should be completely translated into binary code which is a tedious task.
  • Highly advanced and expensive electronic devices are required to run programs developed in 5GL. Therefore, it is an expensive approach.

                           These are the different types of programming languages with their merits and demerits.


Flowchart examples
SOME EXAMPLES OF FLOWCHART
1)Input any three numbers then find the greater no among them.
ANS)

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvtL9jMgYR_nEwokh41fIf0rg21WNxfXkCeNM6IfHl2wU8fdyMqhnyuWvaM-HM5SSGezfJSzMW1wsY38VOw_gLXXI0hCoGv2QpnRj8uwaKTw_IVVz1LhWFeMwQp1C0_C9qHku31GCukkeh/s320/flow+chart+of+largest+of+three+numbers+in+Java.JPG


2)Find the factorial of the given number.
ANS)
http://agridr.in/tnauEAgri/eagri50/STAM102/lec14_clip_image024.jpg

3)Input any number and find whether the no. is even or odd.
ANS)
http://www.ustudy.in/imagebrowser/view/image/11688/_original


4)Draw a flowchart to find a quadratic equation.
ANS)
http://sweb.cityu.edu.hk/sm1204/2004_backup/lab1/toc05/ex04.gif

BBA II Semester English Notes

CHAPTER TWENTY HOW SANE ARE WE? LITERAL COMPREHENSION The concept of wise and good rulers is merely imaginary. In fact, our colle...