Optimal pruning with applications to tree-structured source coding and modeling | Synapse