Define the optimization problem longest-path-length as the relation that associates
Define the optimization problem longest-path-length as the relation that associates each instance of an undirected graph and two vertices with the number of edges in a longest simple path between the two vertices. define the decision problem longest-path = {(g, u, v, k): g = (v, e) is an undirected graph, u, v element v, k greaterthanorequalto 0 is an integer, and there exists a simple path from u to v in g consisting of at least k edges}. show that the optimization problem longest-path-length can be solved in polynomial time if and only if longest-path element p.