Algorithms For Dummies


Introducing boredom and teleporting



Download 7,18 Mb.
Pdf ko'rish
bet376/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   372   373   374   375   376   377   378   379   ...   651
Bog'liq
Algorithms

Introducing boredom and teleporting

Both dead ends (rank sinks) and spider traps (cycles) are common situations on the 

web because of users’ choices and spammers’ actions. The problem, however, is 

easily solved by making the random surfer randomly jump to another network 

node (teleporting, as in the sci-fi devices that take you instantaneously from one 

place to another). The theory is that a surfer will get bored at one point or another 

and move away from deadlocking situations. Mathematically, you define an alpha 

value representing the probability of continuing the random journey on the graph 

by the surfer. The alpha value redistributes the probability of being on a node 

independently of the transition matrix.

The value originally suggested by Brin and Page for alpha (also called the damping 

factor) is 0.85, but you can change it according to your needs. For the web, it 

works the best between 0.8 and 0.9 and you can read why this is the best value 

range at 

https://www.cise.ufl.edu/~adobra/DaMn/talks/damn05-santini. 

pdf


. The smaller the alpha value, the shorter the trip of the surfer on the network, 

on average, before restarting somewhere else.

def PageRank_teleporting(graph, iters = 50, alpha=0.85,

                         rounding=3):

    G, p = initialize_PageRank(graph)

    u = np.ones(len(p)) / float(len(p))

    for i in range(iters):

        p = alpha * np.dot(G,p) 

+ (1.0 - alpha) * u

    return np.round(p / np.sum(p), rounding)




220

 

   


  PART 3 


Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   372   373   374   375   376   377   378   379   ...   651




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2025
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish