Chapter 0: Q27E (page 11)
Alice wants to throw a party and is deciding whom to call. She has n people to choose from, and she has made up a list of which pairs of these people know each other. She wants to pick as many people as possible, subject to two constraints: at the party, each person should have at least five other people whom they know and five other people whom they don’t know. Give an efficient algorithm that takes as input the list of n people and the list of pairs who know each other and outputs the best choice of party invitees. Give the running time in terms of n
Short Answer
Each vertex with each member inside the vertex set, such as , indicates that the person v knows the person u . So, find the subset v where another vertex has a value greater than 5 , then repeat the process with both the modified degrees for every node until a network is formed in which neither vertex may be destroyed after the procedure is finished. As a result, the running time's total complexity has increased.