Wednesday, 10 April 2013

How Google Search Works





HOW GOOGLE SEARCH WORKS




         Its is Simple Pictorial Diagram of how Google Works: 






Here There is a Video that Show U how google actually works..





 The PageRank algorithm was described by Lawrence Page and Sergey Brin is given by:
 
  PR(A) = (1-d) + d (PR(T1)/C(T1) + ... + PR(Tn)/C(Tn))
 
  where
  PR(A):  is the PageRank of page A,
  PR(Ti): is the PageRank of pages Ti which link to page A,
  C(Ti)   :  is the number of outbound links on page Ti and
  “d “ is a damping factor which can be set between 0 and 1





     The PageRank of page A is recursively defined by the PageRanks of those pages which link to   page A.

    The PageRank of pages Ti which link to page A does not influence the PageRank of page A uniformly. Within the PageRank algorithm, the PageRank of a page T is always weighted by the number of outbound links C(T) on page T. This means that the more outbound links a page T has, the less will page A benefit from a link to it on page T.




     The Characteristics of PageRank
     We regard a small web consisting of three pages A, B and C , whereby page A links to the pages B and C, page B links to page C and page C links to page A. According to Page and Brin, the damping factor d is usually set to 0.85, but to keep the calculation simple we set it to 0.5. The exact value of the damping factor d admittedly has effects on PageRank, but it does not influence the fundamental principles of PageRank. So, we get the following equations for the PageRank calculation:

PR(A) = 0.5 + 0.5 PR(C)
PR(B) = 0.5 + 0.5 (PR(A) / 2)
PR(C) = 0.5 + 0.5 (PR(A) / 2 + PR(B))                      

After solving  above equation we get:
PR(A) = 14/13 = 1.07692308
PR(B) = 10/13 = 0.76923077
PR(C) = 15/13 = 1.15384615

It is obvious that the sum of all pages' PageRanks is 3 and thus equals the total number of web pages

The Effect of Outbound Links

      We regard a web consisting of 2 websites, each having two web pages. One site consists of pages A and B, the other consists of pages C and D. Initially, both pages of each site solely link to each other. It is obvious that each page then has a PageRank of one. Now we add a link which points from page A to page C. At a damping factor of 0.75, we therefore get the following equations for the single pages' PageRank values:


PR(A) = 0.25 + 0.75 PR(B)                                   
PR(B) = 0.25 + 0.375 PR(A)
PR(C) = 0.25 + 0.75 PR(D) + 0.375 PR(A)
PR(D) = 0.25 + 0.75 PR(C)

  Solving the equations gives us the following PageRank values for the first site:

PR(A) = 14/23
PR(B) = 11/23

      We therefore get an accumulated PageRank of 25/23 for the first site. The PageRank values of the second site are given by
PR(C) = 35/23
PR(D) = 32/23

      So, the accumulated PageRank of the second site is 67/23. The total PageRank for both sites is 92/23 = 4. Hence, adding a link has no effect on the total PageRank of the web. Additionally, the PageRank benefit for one site equals the PageRank loss of the other.


Parts Of Result














Tuesday, 9 April 2013

Java Garbage Collection


         GARBAGE COLLECTION IN JAVA

Garbage collection is the process of automatically freeing objects that are no longer referenced by the program.
The Object created in JAVA is stored in the Heap Area of the memory.


•    The name "garbage collection" implies that objects no longer needed by the program are "garbage" and can be thrown away.
•       A more accurate and up-to-date metaphor might be "memory recycling." When an object is no longer referenced by the program, the heap space it occupies can be recycled so that the space is made available for subsequent new objects.