49 C Program to implment Dijkstra's Algorithm to find shortest path from a given source vertex

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

КОМЕНТАРІ • 32

  • @satvikmanchanda7090
    @satvikmanchanda7090 Рік тому +2

    Thank you sir, you did a great job

  • @AshishBennyBPS
    @AshishBennyBPS Рік тому +2

    thanks for the code,sir

  • @darshinisiripuram5167
    @darshinisiripuram5167 4 місяці тому +1

    ❤ thank u sir

  • @arvindkr8966
    @arvindkr8966 Рік тому +1

    thankyou sir

  • @shatishkumars9504
    @shatishkumars9504 Рік тому +1

    Nice.... 💯

  • @chanu2400
    @chanu2400 7 місяців тому +1

    Thank you sir

  • @pushpraj__
    @pushpraj__ Рік тому +1

    thank you so much sir for this lecture.

  • @Akash-oz3xs
    @Akash-oz3xs 7 місяців тому

    Wht about o/p sir

  • @nobimomedits2460
    @nobimomedits2460 Рік тому +6

    sir is to innocent and understanding...we needed such professors in our college...and a humble request sir..create a new where you explain all these algos in hindi..it will be helpful for many students to understand concepts easily...overall thank you sir for explaining this

  • @royalboy850
    @royalboy850 Рік тому +1

    Sir can you upload np and np complete class for unit 5 we have cie on coming Tuesday

  • @vishwajitjadhav1170
    @vishwajitjadhav1170 2 роки тому +2

    sir can you give written program

    • @datastructuresalgorithmsby7411
      @datastructuresalgorithmsby7411  2 роки тому +1

      I didn't get what u meant by written program

    • @RiteshKumar-ud7bf
      @RiteshKumar-ud7bf 2 роки тому +10

      @@datastructuresalgorithmsby7411 Sir, he meant like this:
      #include
      #include
      void dijkstra(int n,int cost[10][10],int s,int dist[10])
      {
      int i,v,count=1,min,visited[10];
      for(i=1; i

    • @manasigurav1538
      @manasigurav1538 2 роки тому

      Why 16 values. Why square of number values will be take?

    • @akhilkrishnahere
      @akhilkrishnahere Рік тому

      @@RiteshKumar-ud7bf do you have the correct code?

    • @RiteshKumar-ud7bf
      @RiteshKumar-ud7bf Рік тому

      @@akhilkrishnahere No. I don't have it.

  • @Ckpersonal123
    @Ckpersonal123 2 роки тому +8

    explain it clearly while writing code dont write simply ..................

  • @dankmemes3859
    @dankmemes3859 2 роки тому +5

    This cod e isn't working !!

    • @arvindkr8966
      @arvindkr8966 Рік тому

      bhai its working properly
      I used the code in VS Code
      it gave me correct output

    • @nbsaismaran7
      @nbsaismaran7 Рік тому

      @@arvindkr8966 can u post the code

    • @akhilkrishnahere
      @akhilkrishnahere Рік тому

      for sure?

  • @future_engineer020
    @future_engineer020 11 місяців тому +5

    Thanks a lot sir🙆‍♂️
    This is complete written code 😀:
    //Dijkstra code
    //with time complexity
    #include
    #include
    void dij(int n, int cost[10][10], int s, int dist[10]) {
    int i, v, count = 1, min, visited[10];
    for (i = 1; i

  • @yeeehaww69yearsago81
    @yeeehaww69yearsago81 Рік тому +13

    working code- #include
    #include
    void prn(int n, int m[][50]) {
    printf("
    ");
    for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
    printf("%d\t", m[i][j]);
    }
    printf("
    ");
    }
    }
    void dijkstra(int n, int s, int m[][50], int dist[10]) {
    int i, v, count = 1, min, visited[10];
    for (i = 1; i