Given a network of users and their connections, costs, and values, select a set of seeds that maximizes the total market value while staying within a given budget.
Input
connections: A list of tuples representing connections between users.
costs: A dictionary mapping user IDs to their costs.
values: A dictionary mapping user IDs to their values.
budget: The maximum budget for selecting seeds.
d: The depth of the network.
Output
A tuple or structure containing three elements:
A list of the integer user IDs chosen as seeds, in the order they were selected.
The total market value reached by this set of seeds.
Given a network of users and their connections, costs, and values, select a set of seeds that maximizes the total market value while staying within a given budget.
Input
connections: A list of tuples representing connections between users.
costs: A dictionary mapping user IDs to their costs.
values: A dictionary mapping user IDs to their values.
budget: The maximum budget for selecting seeds.
d: The depth of the network.
Output
A tuple or structure containing three elements:
A list of the integer user IDs chosen as seeds, in the order they were selected.
The total market value reached by this set of seeds.