Remember
Register
Algorithms Q&A
Nobel Prize in Economics
Algorithms Textbook
Q&A
Questions
Unanswered
Ask a Question
AI Teams
Lecture Notes
Categories
All categories
Math Basics
(5)
Asymptotic Analysis
(37)
Divide & Conquer
(18)
Greedy Algorithms
(10)
Dynamic Programming
(19)
Backtracking/DFS/BFS
(2)
Branch & Bound
(6)
Graph Theory
(11)
NP-Completeness
(8)
Artificial Intelligence
(28)
Randomized Algorithms
(1)
Most popular tags
recurrence-relations
time-complexity
asymptotic-analysis
loops
graph
asymptotic-notation
dynamic-programming
greedy
substitution-method
a-star
np-completeness
nested-loops
vertex-coloring
analysis
mdp
log
probability
stochastic
heuristic
master-theorem
markov-model
n-puzzle
csp
graph-coloring
exam
mvcs
small-oh
exponent
proof
viterbi
bayes-rule
hmm
tree-search
grid-world
admissible
n-queens
conflict
ai
clique
coins
reduction
dfs
prime-numbers
sqrt
count
easy
sorted-lists
logn
example
recursive
gcd
independent-set
unsolvable
pcp
counter-example
not-master-theorem
modulus
algebra
most-likely-estimate
reinforcement-learning
direct-evaluation
meu
articulation-point
hotel-room
small-omega
limit-method
mle
graph-search
while-loop
greedy-suboptimal
job-assignment
maximize-value
gold
constraint-satisfaction-problem
8-puzzle
task-environments
min-max
peak
randomized
satisfiability
random-graph-generation
proxy
network
sudoku
branchandbound
d&c
degree-constrained
spanning-tree
vertex-cover
branch
subtree
series
pmi
bound
contradiction
math
backtracking
tree
minimize
floors
Maximum Product Spanning Tree
+1
vote
Consider problem similar to a minimum or maximum spanning tree, but instead we want to find the maximum product spanning tree, that is a tree that maximums the product of weights of the edges. Describe an efficient algorithm to find the maximum product spanning tree.
[Assume each edge weight is at least 1.]
greedy
asked
Mar 3, 2018
in
Greedy Algorithms
by
jmlitfi
AlgoMeister
(
684
points)
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
+2
votes
If w1 w2 w3 is maximized, then log w1 + log w2 + log w3 is maximized.
So, if we replace each w1 with its log value, and then find the maximum weight spanning tree, that is like finding maximum product spanning tree for the original tree.
answered
Mar 6, 2018
by
Amrinder Arora
AlgoMeister
(
1.6k
points)
Adding to that, can we also assert that if logw1 + logw2 + logw3 is maximized then w1 + w2 + w3 is also maximized? Concluding that MPST is the same as MST?
No, that statement (logw1 + logw2 + logw3 is maximized then w1 + w2 + w3 is also maximized) is not relevant for this question. Product of edge weights is maximized <=> Sum of logs of edge weights is maximized.
Please
log in
or
register
to add a comment.
0
votes
If the product w1*w2*w3 is at its maximum, then the sum log(w1) + log(w2) + log(w3) is also at its maximum due to the logarithmic property. Therefore, substituting each w1 with its logarithmic value and determining the maximum weight spanning tree is similar to discovering the maximum product spanning tree in the original tree.
answered
Dec 16, 2023
by
sharath_2002
(
220
points)
Please
log in
or
register
to add a comment.
Related questions
0
votes
2
answers
Maximum Spanning Tree
asked
Mar 3, 2018
in
Greedy Algorithms
by
jmlitfi
AlgoMeister
(
684
points)
greedy
0
votes
4
answers
Is Greed the best choice?
asked
Mar 3, 2018
in
Greedy Algorithms
by
jmlitfi
AlgoMeister
(
684
points)
greedy
0
votes
3
answers
Symbol Frequency
asked
Mar 3, 2018
in
Greedy Algorithms
by
jmlitfi
AlgoMeister
(
684
points)
greedy
+1
vote
2
answers
Maximize Party Planning Reward
asked
Mar 3, 2018
in
Greedy Algorithms
by
jmlitfi
AlgoMeister
(
684
points)
greedy
+1
vote
2
answers
Interval Scheduling
asked
Mar 3, 2018
in
Greedy Algorithms
by
jmlitfi
AlgoMeister
(
684
points)
greedy
The Book: Analysis and Design of Algorithms
|
Presentations on Slideshare
|
Lecture Notes, etc
...