2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 14:28:05 +02:00

corrected minor mistakes; addes subsection to get correct slide preview at bottom

This commit is contained in:
Martin Thoma 2013-02-06 09:14:35 +01:00
parent a06b2363c3
commit 414cf2bbf1
4 changed files with 10 additions and 7 deletions

View file

@ -26,8 +26,10 @@
\item A lot of webpages get visited \item A lot of webpages get visited
\item[$\Rightarrow$] modellize clicks on links as random behaviour \item[$\Rightarrow$] modellize clicks on links as random behaviour
\item Links are important \item Links are important
\begin{itemize}
\item Links of page A get less important, if A has many links \item Links of page A get less important, if A has many links
\item Links of page A get more important, if many link to A \item Links of page A get more important, if many link to A
\end{itemize}
\item[$\Rightarrow$] if B has a link from A, the rank of B increases by $\frac{Rank(A)}{Links(A)}$ \item[$\Rightarrow$] if B has a link from A, the rank of B increases by $\frac{Rank(A)}{Links(A)}$
\end{itemize} \end{itemize}
@ -64,18 +66,18 @@
\item $N$ is the total number of websites \item $N$ is the total number of websites
\end{itemize} \end{itemize}
\[\displaystyle PR(x) := \alpha \left ( \frac{1}{N} \right ) + (1-\alpha) \sum_{y\in L(x)} \frac{PR(y)}{C_{y}}\] \[\displaystyle PR(x) := \alpha \left ( \frac{1}{N} \right ) + (1-\alpha) \sum_{y\in L(x)} \frac{PR(y)}{C(y)}\]
\end{frame} \end{frame}
\begin{frame}{Pseudocode} \begin{frame}{Pseudocode}
\begin{algorithmic} \begin{algorithmic}
\alertline<1> \Function{PageRank}{Graph $web$, double $q=0.15$, int $iterations$} %q is a damping factor \alertline<1> \Function{PageRank}{Graph $web$, double $q=0.15$, int $iterations$} %q is a damping factor
\alertline<2> \ForAll{$page \in G$} \alertline<2> \ForAll{$page \in web$}
\alertline<3> \State $page.pageRank = \frac{1}{|G|}$ \Comment{intial probability} \alertline<3> \State $page.pageRank = \frac{1}{|web|}$ \Comment{intial probability}
\alertline<2> \EndFor \alertline<2> \EndFor
\alertline<4> \While{$iterations > 0$} \alertline<4> \While{$iterations > 0$}
\alertline<5> \ForAll{$page \in G$} \Comment{calculate pageRank of $page$} \alertline<5> \ForAll{$page \in web$} \Comment{calculate pageRank of $page$}
\alertline<6> \State $page.pageRank = q$ \alertline<6> \State $page.pageRank = q$
\alertline<7> \ForAll{$y \in L(page)$} \alertline<7> \ForAll{$y \in L(page)$}
\alertline<8> \State $page.pageRank$ += $\frac{y.pageRank}{C(y)}$ \alertline<8> \State $page.pageRank$ += $\frac{y.pageRank}{C(y)}$

View file

@ -1,3 +1,4 @@
\subsection{Factors of Influence}
\begin{frame}{Factors of Influence} \begin{frame}{Factors of Influence}
\begin{itemize}[<+->] \begin{itemize}[<+->]
\item language \item language

View file

@ -5,7 +5,7 @@
\selectlanguage{english} \selectlanguage{english}
\title{\titleText} \title{\titleText}
\subtitle{History, Algorithm} \subtitle{History of searching and the PageRank algorithm}
\author{\tutor} \author{\tutor}
\date{7th of February, 2013} \date{7th of February, 2013}
%\subject{Programmieren} %\subject{Programmieren}