Wednesday, 20 March 2013

JUNE 2012 - PAPER III

18. Consider a schema R(A, B, C, D) and functional dependencies A → B and C → D. Then the decomposition R1(A, B) and R2(C, D) is
(A) Dependency preserving but not lossless join
(B) Dependency preserving and lossless join
(C) Lossless Join but not dependency preserving
(D) Lossless Join

Ans:-A

Explanation:-
I have given the explanation in question no. 17 of December 2010 UGC paper. I am repeating it once again here for dependency preservation and lossless join. First of all let us consider the dependency preservation and how to understand it.
Definition of Dependency preservation decomposition:-

Each FD specified in F either appears directly in one of the relations in the decomposition, or be inferred from FDs that appear in some relation.


Let us consider the above example for Dependency preservation



Let R be a relation R(A B C D)

Let there be 2 functional dependencies.

FD1: A->B

FD2: C->D


Let the relation R be decomposed into two more relations.

R1(A B )  :  R2(C D)

Let us first consider the relation R1(A B ). Here between A and B the functional dependency FD1 is preserved.

Let us now consider the second relation R2(C D). Between C and D the FD, FD2 is preserved. So in the two relations R1 and R2, all the 2 functional dependencies are preserved.

Now for the lossless join.
A decomposition of R into R1 and R2 is lossless join if and only if at least one of the following dependencies is in F*: R1 ∩ R2 -> R1 R1 ∩ R2 -> R2 In the above example, R1 ∩ R2 = { null }. So, it is not a lossless join. So the answer is dependency preserving but not lossless join. So, the answer is option A.


19. The quantiser in an image-compression system is a
(A) lossy element which exploits the psychovisual redundancy
(B) lossless element which exploits the psychovisual redundancy
(C) lossy element which exploits the statistical redundancy
(D) lossless element which exploits the statistical redundancy

Ans:-A


20. Data Warehouse provides
(A) Transaction Responsiveness
(B) Storage, Functionality Responsiveness to queries
© Demand and supply Responsiveness
(D) None of the above

Ans:-B


Tuesday, 19 March 2013

JUNE 2012 - PAPER III

11. X.25 is ________ Network.
(A) Connection Oriented Network
(B) Connection Less Network
(C) Either Connection Oriented or Connection Less
(D) Neither Connection Oriented nor Connection Less

Ans:-A

Explanation:-
X.25 is a connection oriented protocol.


12. Which of the following can be used for clustering of data ?
(A) Single layer perception
(B) Multilayer perception
(C) Self organizing map
(D) Radial basis function

Ans:-C


13. Which of the following is scheme to deal with deadlock ?

(A) Time out
(B) Time in
(C) Both (A) & (B)
(D) None of the above

Ans:-A


14. If the pixels of an image are shuffled then the parameter that may change is
(A) Histogram
(B) Mean
(C) Entropy
(D) Covariance

Ans:-D


15. The common property of functional language and logical programming language :
(A) Both are declarative
(B) Both are based on λ-calculus
(C) Both are procedural
(D) Both are functional

Ans:-A


16. Given the following statements :
(i) The power of deterministic finite state machine and non- deterministic finite state machine are same.
(ii) The power of deterministic pushdown automaton and non- deterministic pushdown automaton are same.
Which of the above is the correct statement(s) ?
(A) Both (i) and (ii)
(B) Only (i)
(C) Only (ii)
(D) Neither (i) nor (ii)

Ans:-B

Explanation:-
The answer is B. But why is it so?. A very good explanation is given in the book "Theory of computation" by A.A.Puntambekar.
We all know that finite machine is of two types. One is deterministic finite state machine and the other one non deterministic finite state machine. Both these machine accept regular language only. So the power of DFA = NFA. So the first statement is true.
Next comes the question of pushdown automaton and the power of deterministic and non-deterministic being the same. PDA has more power than FA because PDA has a memory and so can accept large class of languages than FA. PDA accepts the language of context free grammar. The power of DPDA is less than NPDA because NPDA accepts a larger class of context free language.
Turing machines can accept a more large class of language. Therefore it is the most powerful computational model. The power of deterministic and non deterministic turing machine is the same.


17. LetQ(x,y)denote “x+y=0” and let there be two quantifications given as
(i) ∃y∀x Q(x, y)
(ii) ∀x∃y Q(x, y)
where x & y are real numbers. Then which of the following is valid ?
(A) (i) is true & (ii) is false.
(B) (i) is false & (ii) is true.
(C) (i) is false & (ii) is also false.
(D) both (i) & (ii) are true.

Ans:-B

Explanation:-
The symbol ∀ is called the universal quantifier. The universal qualification of P(x) is the statement "P(x) for all values x in the universe" which is written as ∀xP(x).
The symbol ∃ is called the existential quantifier and represents the phrase "there exists" or "for some". The existential quantification of P(x) is the statement "P(x) for some values x in the universe which is written as ∃xP(x).
A nested quantifier is one where two quantifiers are nested if one is within the scope of the other.
The order of nested universal quantifiers in a statement without other quantifiers can be changed without changing the meaning of the quantified statement.
The order of nested existential quantifiers in a statement without other quantifiers can be changed without changing the meaning of the quantified statement.
But the order of nested universal and existential quantifier is important. The order cannot be changed without affecting the meaning.
Let us consider the quantification ∀x∃y Q(x, y). The domain is real numbers. Q(x,y) is x+y=0. The quantification can be explained this way. Since the universal quantification comes first, it has to be understood as, for all real numbers x there is a real number y such that x+y=0, which is actually true. We are saying that y is the additive inverse of x.
Now let us consider the quantification ∃y∀x Q(x, y). Since the existential quantification comes first, it has to be understood as there is a real number y such that for all real numbers x, x+y=0 , which is false.
So, the quantification (i) is false and (ii) is true.


Saturday, 16 March 2013

MUSINGS ON LIFE

I would be continuing with updating my blog with detailed solution of previous UGC NET PAPERS. Apart from that, I am also going to be penning down my thoughts which i have always wanted to share it with the world. Experiences which i have undergone and lessons i have learnt and generally some musings on life. Hope you all enjoy it and learn and grow from it just like me. I hope and pray that the updates are more regular now.

CHANGE IS THE KEY



CHANGE IS THE KEY


Everyone wants their country to be the best. Being an Indian i also want the same. I want the best things to happen in our country. I want everyone of us to be proud of who we are, for what we stand for. But the recent news of rapes and violence against women has tarnished the image of India worldwide. The capital of our country not safe to women at all does not sound good for the image of the country.

I retrospect a lot about the recent developments happening in our country and how everyone of are restless and looking forward to a corrupt free nation. The entire apathy of the nation is blamed on the politicians. They are made wholly responsible for what is happening in our country wrong. But is it the right approach?.

Roughly India has a population of 1 billion. There are around 500 odd representatives in the parliament for this entire population. Although their influence on the overall running of the governance cannot be completely undermined, you can also not blame them only for all the negative things happening around you. The time has come for each and every citizen to take up responsibility for what is happening around them and not blame only the politicians. John F. Kennedy in his world famous speech asked the americans, "Do not ask what the country has done for you, ask what you have done for the country". The timing is no better right to implement it in our country. I think every one of us need to ask what we have done for the country and the apathy surrounding us.

We need to think on what are the positive changes which one can bring in our society. If every individual changes for the better, the entire country changes. If every person thinks positively and hopes for a better tomorrow it is achievable. Actually India bashing is very fashionable among indians. "There is no future for our country", "Politicians have swindled money and left us with nothing..", "It is better to migrate to a developed nation instead of living in our country"…these are some of the statements which you will hear when we hear talk about the state of our country. No doubt things are a bit gloomy. But we need to look at how we, each one can make things better for others and ourselves too in the same order.

It could be as small a step as following traffic rules and not littering in public. But every single act of improvement on our part is going to get reflected in the society. Teach our kids to be honest and instill good values in them. Let each and everyone of us become the citizen of a modern India, a India which everyone want to live in. What is the behavior you would expect from the people of such a country, try to bring it in yourself.

Be proud of your heritage, history, and our unity in diversity. Learn to respect others. Do not judge others. IMG 5215

Society is just a reflection of the collective thoughts of the individuals. A nation reflects the hopes,beliefs and thoughts of the society. Be the change you want to see in others, in the society and the nation. If every single individual changes for the better, society changes for the better and the nation also would reflect it. So stop blaming politicians and start becoming the champion of change. Make an India where no one would want to migrate from.JAI HIND.

JUNE 2012 - PAPER III

10. In an image compression system 16384 bits are used to represent 256 × 256 image with 256 gray levels. What is the compression ratio for this system ?
(A) 1
(B) 2
(C) 4
(D) 8
Ans:- 
Explanation:-
Number of bits required to store a 256 X 256 image with 256 gray levels is.
256 gray levels = 28
=8 bits
Therefore 256 * 256 * 8 = 524,288 bits
The ratio of the original(uncompressed) image to the compressed image is referred to as the Compression Ratio CR.
CR = Uncompressed image size/Compressed image size
Uncompressed image size for the given data above= 524,288 bits
Compressed image size as given in the question = 16384 bits
Therefore, compression ratio = 524,288/16384 = 32
I am not converting the values into bytes.
There is no option called 32 in the answer at all. The solution website for June 2012 says option B which is 2. The same question is found in another place and the solution there is 8 but no explanation provided. If anyone can provide an explanation as to how 8 is the answer it will be great. I have got the value 32. So i am not choosing any option as the answer.