Directed acylic graphs: topological sort

Поділитися
Вставка
  • Опубліковано 22 вер 2024

КОМЕНТАРІ • 20

  • @jvjplus
    @jvjplus 5 років тому +2

    Finally understood the algorithm completely! thank you sir.

  • @siddharthmundra
    @siddharthmundra 3 місяці тому +1

    Practice problems on this topic?

  • @ramankhinda5967
    @ramankhinda5967 5 років тому +1

    thank u so much sir ,,,,,,its really helpfull for me

  • @bohemia5302
    @bohemia5302 5 років тому

    didn't understand, for scanning the adjacency list E, the complexity will O(n), hence the Overall
    complexity of the problem becomes O(n^2). Unless we don't make an adjacency list as an Array of length N,
    so our search in adjacency list become O(1).

    • @hodgsontetteh4058
      @hodgsontetteh4058 3 роки тому

      i guess if u are using a hashmap adjacency list u can simply determine if a node is present or not in O(1) but if you are using a vector then I guess yr answer will be right since if u have to know if a node has a link to you ud have to traverse that vector in O(n) and doing this n times get n^2 complexity

  • @RT-ny9on
    @RT-ny9on 4 роки тому

    this is 100x better than my china prof

  • @DeepakSingh-xt5io
    @DeepakSingh-xt5io 6 років тому +1

    Thank you sir.

  • @SHASHANKRUSTAGII
    @SHASHANKRUSTAGII 6 років тому

    Badia videos sirji

  • @SHASHANKRUSTAGII
    @SHASHANKRUSTAGII 6 років тому

    amazing

  • @bipul2138
    @bipul2138 6 років тому

    great

  • @kushagr0123
    @kushagr0123 5 років тому

    Thanks