CSC2556 Lecture 4 Impartial Selection; PageRank; Facility Location
CSC2556 - Nisarg Shah 1
PageRank; Facility Location CSC2556 - Nisarg Shah 1 Announcements - - PowerPoint PPT Presentation
CSC2556 Lecture 4 Impartial Selection; PageRank; Facility Location CSC2556 - Nisarg Shah 1 Announcements Proposal tentatively due around the end of Feb But it will help to decide the topic earlier, and start working. Ill put up
CSC2556 - Nisarg Shah 1
CSC2556 - Nisarg Shah 2
➢ But it will help to decide the topic earlier, and start
working.
➢ Will also be available to have more meetings during the
next two months to help select projects
CSC2556 - Nisarg Shah 3
CSC2556 - Nisarg Shah 4
➢ Applications: electing a student representation committee,
selecting 𝑙 out of 𝑜 grant applications to fund using peer review, …
➢ Input: a directed graph 𝐻 = (𝑊, 𝐹) ➢ Nodes 𝑊 = {𝑤1, … , 𝑤𝑜} are the 𝑜 people ➢ Edge 𝑓 = 𝑤𝑗, 𝑤𝑘 ∈ 𝐹: 𝑤𝑗 supports/approves of 𝑤𝑘
➢ Output: a subset 𝑊′ ⊆ 𝑊 with 𝑊′ = 𝑙 ➢ 𝑙 ∈ {1, … , 𝑜 − 1} is given
CSC2556 - Nisarg Shah 5
➢ 𝑤𝑗 cannot manipulate his outgoing edges to get selected ➢ Q: But the definition says 𝑤𝑗 can neither go from 𝑤𝑗 ∉ 𝑔(𝐻)
to 𝑤𝑗 ∈ 𝑔(𝐻), nor from 𝑤𝑗 ∈ 𝑔(𝐻) to 𝑤𝑗 ∉ 𝑔(𝐻). Why?
➢ 𝑗𝑜(𝑤) = set of nodes that have an edge to 𝑤 ➢ 𝑝𝑣𝑢 𝑤 = set of nodes that 𝑤 has an edge to ➢ Note: OPT will pick the 𝑙 nodes with the highest indegrees
CSC2556 - Nisarg Shah 6
𝑤1 𝑤2 𝑤3 𝑤𝑜
CSC2556 - Nisarg Shah 7
Rule: “Select the lowest index vertex in 𝑝𝑣𝑢 𝑤1 . If 𝑝𝑣𝑢 𝑤1 = ∅, select 𝑤2.”
➢ A. Impartial + constant approximation ➢ B. Impartial + bad approximation ➢ C. Not impartial + constant approximation ➢ D. Not impartial + bad approximation
CSC2556 - Nisarg Shah 8
➢ For small 𝑙, this is trivial. E.g., consider 𝑙 = 1.
there are no other edges?
choose 𝑤2 for any finite approximation.
rule”, and not just the optimal rule.
CSC2556 - Nisarg Shah 9
➢ Proof is more intricate for larger 𝑙. Let’s do 𝑙 = 𝑜 − 1.
➢ Suppose for contradiction that there is such a rule 𝑔. ➢ W.l.o.g., say 𝑤𝑜 is eliminated in the empty graph. ➢ Consider a family of graphs in which a subset of
CSC2556 - Nisarg Shah 10
➢ Consider star graphs in which a non-empty
subset of {𝑤1, … , 𝑤𝑜−1} have edge to 𝑤𝑜, and there are no other edges
➢ 𝑤𝑜 cannot be eliminated in any star graph
➢ 𝑔 maps 0,1 𝑜−1\{0} to {1, … , 𝑜 − 1}
➢ Impartiality: 𝑔 Ԧ
𝑦 = 𝑗 ⇔ 𝑔 Ԧ 𝑦 + Ԧ 𝑓𝑗 = 𝑗
𝑓𝑗 has 1 at 𝑗𝑢ℎ coordinate, 0 elsewhere
𝑤1 𝑤2 𝑤3 𝑤𝑜 𝑤𝑜−1 𝑤4 𝑤1 𝑤2 𝑤3 𝑤𝑜 𝑤𝑜−1 𝑤4
CSC2556 - Nisarg Shah 11
➢ 𝑔: 0,1 𝑜−1\{0} → {1, … , 𝑜 − 1} ➢ 𝑔 Ԧ
𝑓𝑗 has 1 only in 𝑗𝑢ℎ coordinate
➢ Pairing implies…
even, for every 𝑗.
must be even too.
➢ So impartiality must be violated for some
pair of Ԧ 𝑦 and Ԧ 𝑦 + Ԧ 𝑓𝑗
𝑤1 𝑤2 𝑤3 𝑤𝑜 𝑤𝑜−1 𝑤4 𝑤1 𝑤2 𝑤3 𝑤𝑜 𝑤𝑜−1 𝑤4
CSC2556 - Nisarg Shah 12
➢ Impartiality now requires that the probability of an agent
being selected be independent of his outgoing edges.
➢ Choose 𝑙 nodes uniformly at random
nodes having indegree 0.
Τ 𝑙 𝑜 ∗ 𝑃𝑄𝑈 ⇒ approximation = 𝑜/𝑙
CSC2556 - Nisarg Shah 13
➢ What if we partition 𝑊 into 𝑊
1 and 𝑊 2, and select 𝑙 nodes
from 𝑊
1 based only on edges coming to them from 𝑊 2?
➢ Assign each node to 𝑊
1 or 𝑊 2 i.i.d. with probability ½
➢ Choose 𝑊
𝑗 ∈ 𝑊 1, 𝑊 2 at random
➢ Choose 𝑙 nodes from 𝑊
𝑗 that have most incoming edges
from nodes in 𝑊
3−𝑗
CSC2556 - Nisarg Shah 14
➢ Goal: approximate 𝐽 = # edges incoming to 𝑃𝑄𝑈.
2 → 𝑃𝑄𝑈 ∩ 𝑊 1, 𝐽2 = # edges 𝑊 1 → 𝑃𝑄𝑈 ∩ 𝑊 2
➢ Note: 𝐹 𝐽1 + 𝐽2 = 𝐽/2. (WHY?) ➢ W.p. ½, we pick 𝑙 nodes in 𝑊
1 with the most incoming
2 ⇒ # incoming edges ≥ 𝐽1 (WHY?)
1 ≤ 𝑙; 𝑃𝑄𝑈 ∩ 𝑊 1 has 𝐽1 incoming edges from 𝑊 2
➢ W.p. ½, we pick 𝑙 nodes in 𝑊
2 with the most incoming
1 ⇒ # incoming edges ≥ 𝐽2
➢ E[#incoming edges] ≥ 𝐹
1 2 ⋅ 𝐽1 + 1 2 ⋅ 𝐽2 = 𝐽 4
CSC2556 - Nisarg Shah 16
➢ Divide into ℓ parts, and pick 𝑙/ℓ nodes from each part
based on incoming edges from all other parts.
➢ ℓ = 2 gives a 4-approximation. ➢ For 𝑙 ≥ 2, ℓ~𝑙1/3 gives 1 + 𝑃
1 𝑙1/3 approximation.
CSC2556 - Nisarg Shah 17
➢ (For which their mechanism is a 4-approximation) ➢ It should be possible to achieve a 2-approximation. ➢ Recently proved by Fischer & Klimm [2014] ➢ Permutation mechanism:
change the current answer to 𝑧 = 𝜌𝑢+1.
CSC2556 - Nisarg Shah 18
➢ In an 𝑜-node graph, fix 𝑣 and 𝑤, and suppose no other
nodes have any incoming/outgoing edges.
➢ Three cases: only 𝑣 → 𝑤 edge, only 𝑤 → 𝑣, or both.
in every case, and achieves 2-approximation.
➢ What if every node must have an outgoing edge? ➢ Fischer & Klimm [2014]:
12 7 and Τ 3 2
approximation.
CSC2556 - Nisarg Shah 19
CSC2556 - Nisarg Shah 20
➢ Instead of selecting 𝑙 nodes, we want to rank all nodes
➢ Think of the web graph, where nodes are webpages, and
➢ What properties do we want from such a rule? ➢ What rule satisfies these properties?
CSC2556 - Nisarg Shah 21
➢ Start from any node 𝑗 in the graph. ➢ At each iteration, choose an outgoing edge 𝑗 → 𝑘,
uniformly at random among all outgoing edges of 𝑗.
➢ Move to the neighbor node 𝑘. ➢ In the long run, measure the fraction of time the random
➢ Rank the nodes by these “stationary probabilities”.
CSC2556 - Nisarg Shah 22
➢ Let 𝑞𝑗 = stationary probability of visiting 𝑗. ➢ Let 𝑂 𝑗 = set of nodes to which 𝑗 has an edge ➢ Then, 𝑞𝑗 = σ𝑘:𝑗∈𝑂(𝑘)
𝑞𝑘 𝑂 𝑘
➢ Matrix 𝐵: 𝐵𝑗,𝑘 =
Τ 1 𝑂 𝑗 if 𝑗, 𝑘 ∈ 𝐹 and 0 otherwise
➢ We are searching for a solution 𝑤 such that 𝐵𝑤 = 𝑤. ➢ Start from any 𝑤0, and compute lim
𝑙→∞ 𝐵𝑙𝑤0
CSC2556 - Nisarg Shah 23
➢ Permuting node names permutes the final
ranking.
➢ Voting through intermediate fake nodes
cannot change the ranking.
➢ 𝑤 adding a self edge cannot change the
➢ Merging identically voting nodes cannot change the
➢ If 𝑙 nodes with equal score vote for 𝑙 other nodes
through a proxy, it should be no different than a direct 1-1 voting.
𝑏 𝑏
CSC2556 - Nisarg Shah 24
CSC2556 - Nisarg Shah 25
CSC304 - Nisarg Shah 26
CSC2556 - Nisarg Shah 27
➢ Takes as input reports
➢ Returns a location 𝑧 ∈ ℝ for the new facility
CSC2556 - Nisarg Shah 28
➢ 𝑜 is odd → the unique “(n+1)/2”th smallest value ➢ 𝑜 is even → “n/2”th or “(n/2)+1”st smallest value ➢ Why?
CSC2556 - Nisarg Shah 29
➢ Median is also strategyproof (SP)! ➢ Irrespective of the reports of other agents, agent 𝑗 is best
CSC2556 - Nisarg Shah 30
CSC2556 - Nisarg Shah 31
𝑗
𝑗
𝑗
CSC2556 - Nisarg Shah 32
CSC2556 - Nisarg Shah 33
➢ Leftmost: Choose the leftmost reported location ➢ Rightmost: Choose the rightmost reported location ➢ Dictatorship: Choose the location reported by agent 1 ➢ …
CSC2556 - Nisarg Shah 34
CSC2556 - Nisarg Shah 35
➢ Choose min
𝑗
𝑦𝑗 with probability ¼
➢ Choose max
𝑗
➢ Choose (min
𝑗
𝑦𝑗 + max
𝑗
𝑦𝑗)/2 with probability ½
(1/4)∗2𝐷+(1/4)∗2𝐷+(1/2)∗𝐷 𝐷
3 2
CSC2556 - Nisarg Shah 36
1/4 1/4 1/2 1/4 1/4 1/2 2𝜀 𝜀
CSC2556 - Nisarg Shah 37