Add and Remove Vertex in Adjacency Matrix Representation of Graph
Don’t start Add and Remove Vertex in Adjacency Matrix Representation of Graph with jargon. Start with bus routes. That is the whole point.
Add and Remove Vertex in Adjacency Matrix Representation of Graph on the board: BFS queue / DFS stack. Then say what bus routes looks like after.
Add and Remove Vertex in Adjacency Matrix Representation of Graph exists so Arun can keep bus routes correct in a city map.
Arun ships Add and Remove Vertex in Adjacency Matrix Representation of Graph in a city map. That is the use case worth saying.
Don’t do this with Add and Remove Vertex in Adjacency Matrix Representation of Graph: no visited set → infinite loop. Interviewers spot it in ten seconds.
Place Add and Remove Vertex in Adjacency Matrix Representation of Graph next to nearby DSA work — BFS queue / DFS stack is the link.
Viva for Add and Remove Vertex in Adjacency Matrix Representation of Graph: what it is → BFS queue / DFS stack → the mistake (no visited set → infinite loop).
Say Add and Remove Vertex in Adjacency Matrix Representation of Graph in one breath, then BFS queue / DFS stack, then no visited set → infinite loop.