wu :: forums
« wu :: forums - optimal merging tree »

Welcome, Guest. Please Login or Register.
Dec 11th, 2024, 1:27pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: ThudnBlunder, Eigenray, william wu, Icarus, towr, SMQ, Grimbal)
   optimal merging tree
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: optimal merging tree  (Read 1628 times)
cuckoo
Junior Member
**





   


Gender: male
Posts: 57
optimal merging tree  
« on: Dec 7th, 2011, 7:00pm »
Quote Quote Modify Modify

Let T be a tree with n leaf nodes. Each node of the tree has a weight. The weight of each leaf node is w_i (1 \le i \le n), and the weight of an internal node is the sum of the weights of its child nodes.  
 
How to construct an optimal tree such that \sum w(v)*d(v) is minimized?
 
Notations: w(v) is the weight of node v, and d(v) is the out-degree of node v.
IP Logged
TenaliRaman
Uberpuzzler
*****



I am no special. I am only passionately curious.

   


Gender: male
Posts: 1001
Re: optimal merging tree  
« Reply #1 on: Dec 9th, 2011, 2:41am »
Quote Quote Modify Modify

So, are we given the leaf nodes with weights? and we need to create the internal nodes? Is that right?
 
-- AI
IP Logged

Self discovery comes when a man measures himself against an obstacle - Antoine de Saint Exupery
cuckoo
Junior Member
**





   


Gender: male
Posts: 57
Re: optimal merging tree  
« Reply #2 on: Dec 9th, 2011, 3:15am »
Quote Quote Modify Modify

Yes, the weights of leaf-nodes are pre-defined.
The tree is in any form with n leaf-nodes.
 
on Dec 9th, 2011, 2:41am, TenaliRaman wrote:
So, are we given the leaf nodes with weights? and we need to create the internal nodes? Is that right?
 
-- AI

IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board