A undirected complete bipartite graph G = (U, V, E) exists where |U| = |V|. For all vertices u and v, the weight of the edge between u and v is Wu, v(assume positive).
We have to do perfect matching such that Bitwise OR of weights of edges in matching is maximised.
I was trying to think of a polynomial time solution, but couldn't succeed.