Question: Which answer is correct? I thought creating a list of edges was constant time and am wrong. Consider the operation: determine if there is an

Which answer is correct? I thought creating a list of edges was constant time and am wrong.
Consider the operation: determine if there is an edge between u and v in a graph. Which representation would perform this operation in constant time? list of edges adjacency list adjacency matrix both b and c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
