Tuesday 3 October 2017

UGC Net Computer Science December 13 Paper 3 Page 4 Solved

UGC Net Computer Science December 13 Paper 3 Page 4 Solved

31. Consider the formula in image
processing



CR is called as compression ratio n1 and n2 denotes the number of information carrying units in two
datasets that represent the same information. In this situation RD is called as relative _________ of the
first data set.
(A) Data Compression
(B) Data Redundancy
(C) Data Relation
(D) Data Representation

Monday 2 October 2017

Linear Search VS Binary Search

A linear search works by looking at each element in a list of data until it either finds the target or reaches the end. This results in O(n) performance on a given list. A binary search comes with the prerequisite that the data must be sorted. We can leverage this information to decrease the number of items we need to look at to find our target. We know that if we look at a random item in the data (let's say the middle item) and that item is greater than our target, then all items to the right of that item will also be greater than our target. This means that we only need to look at the left part of the data. Basically, each time we search for the target and miss, we can eliminate half of the remaining items. This gives us a nice O(log n) time complexity.


Just remember that sorting data, even with the most efficient algorithm, will always be slower than a linear search (the fastest sorting algorithms are O(n * log n)). So you should never sort data just to perform a single binary search later on. But if you will be performing many searches (say at least O(log n) searches), it may be worthwhile to sort the data so that you can perform binary searches. You might also consider other data structures such as a hash table in such situations.

Image Source : https://en.wikipedia.org/wiki/Binary_search_algorithm

Example : Array is best example of linear search and tree

CSS 360 Rotation


CSS 360 Rotation

Girfa : Student help

Hover the Mouse on div

CSS

div {
    width: 100px;
    height: 100px;
    background: red;
    -webkit-transition-property: all; /* Safari */
    -webkit-transition-duration: 2s; /* Safari */
    transition-property: all;
    transition-duration: 1s;
}

Saturday 30 September 2017

C language Paper Solution

NIELIT O Level
C Language Exam paper answer
January-2013

1. Multiple Choice

1.1 :  A
1.2 : C
1.3 : A
1.4 : B
1.5 : B
1.6 : C
Explanation :  When x will be less than 5 then continue transfer control at top of the loop and increase variable value,check condition. As soon as x get greater than 5 then if return false and control transfer to else . Else has break and when break will execute loop will be stop forcefully.