G-3. Graph Representation in Java | Two Ways to Represent

preview_player
Показать описание


In case you are thinking to buy courses, please check below:

---------------------------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Lets continue the habit of commenting “understood” if you got the entire video.

Do follow me at Instagram: striver_79

takeUforward
Автор

@striver bhaiya at 10:03 i think there was a bit error coz we need to use the for loop for all the nodes but you used from i=1 to i<n whereas it should be i<=n otherwise we wont be able to access the edges at vertex at n

CodeMode
Автор

00:03 Learn how to store complex graph data in Java
01:47 Storing a graph can be done using adjacency matrix or adjacency list.
03:29 Adjacency matrix stores graph edges in a matrix
05:13 Adjacency list is a space-efficient way to store graph data.
07:00 Storing vertex neighbors in an array list
08:41 Learn how to store an undirected and directed graph
10:12 Weighted graphs assign values to edges
11:44 Implementing Graph in Java
Crafted by Merlin AI.

ExpoDev_Dash
Автор

Sir there has been a typo in your video
to print all the edges the first for loop shall have i <= n and not i < n.

frustrato
Автор

was struggling to understand the basic from the last 2 days, finally got concept through this video

rajatmehta
Автор

please do a number theory course (Modular arithmetic etc). there are no quality videos on these topics and no one explains just like how you do

rana
Автор

this video was simply GREAT. I really loved it, it was so much help. I hope to keep learning from you :') Greetings from a Cuban Computer Science student :3

adrianagaraychavez
Автор

Understood! Great explanation as always, thank you so much!!

cinime
Автор

@striver at 8:55, I think the space complexity should be O (n + 2m) because irrespective of the number of edges we are gonna create empty lists for each of the vertex. Correct me if I am wrong?

VikasBagri-ij
Автор

we can use Arrays of list same as u did in c++ using vector -->List<Integer> list[]=new ArrayList[n];

hemanthkumar
Автор

understood!!! but no code for java people!!

suheabkhan
Автор

Awesome explanation Pleass continue this 😌

farooqshareef
Автор

Understood, Awsome content, keep going 🙌

Sillysmiles
Автор

Lecture successfully completed on 02/12/2024 🔥🔥

PCCOERCoder
Автор

Thank you very much for these quality content💙💜💙

p_amankuldeep
Автор

but every node has 2 different weights assosiated with it with diferent edges. SO at 12:30 it looks like confusing.

AdiCode_Hub
Автор

understood the whole part! Thank you so much.

chandrakantkhannade
Автор

very nice bro.. plz continue full Java DSA

manojhr
Автор

Thank you very much. You are a genius.

vakhariyajay
Автор

hey striver please make a video on how to participate or the steps required to register in icpc please.

gamesensei.