Question DSA-GRAPH-0047
MediumFor a sparse graph with V = 10⁵ and E = 2 × 10⁵, which representation is better?
- A.
Adjacency list
- B.
Edge list sorted by weight only
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Graphs question
For a sparse graph with V = 10⁵ and E = 2 × 10⁵, which representation is better?
Adjacency list
Edge list sorted by weight only
Sign up free to see the answer and a step-by-step explanation.
Incidence matrix
Adjacency matrix