You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*-----------------------------------Dynamic Programming*************** Independent set in array----------------------------------------------------------------
Given a tree T of N nodes, where each node i has Ci coins attached with it.
You have to choose a subset of nodes such that no two adjacent nodes are chosen and sum of coins attached with nodes in chosen subset is maximum.