Horje
graph representation Code Example
graph representation
GRAPH REPRESENTATION:
	- adjacency matrix (linear representation) 
			Pro: esay implement, removing edge=O(1), queries of vertex or edge is O(1), 
			Cons: Consume space O(V^2), adding a vertex is O(V^2) ;
	- adjacency list 
		-ArrayList (or Array of LinkedList) 
			Pro: save space: O(|V|+|E|), worst case O(V^2)
			Cons: queries are not efficient O(V);
		-LinkedList - a pointer from one vertex to second
		-HashMap collection. K,V . (adjancency list in HashMap)
			private HashMap<Integer, Node> nodeLookup = new HashMap<Integer, Node>();
	- Incidence Matrix
	- Incidence List




Whatever

Related
cloudglare dns Code Example cloudglare dns Code Example
docker socket Code Example docker socket Code Example
useformik type for typescript Code Example useformik type for typescript Code Example
bootstrap 5 stable get started css Code Example bootstrap 5 stable get started css Code Example
boot5 css Code Example boot5 css Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6