Thread: i need help

  1. #1
    Registered User
    Join Date
    Mar 2017
    Posts
    2

    Talking i need help

    write a program in cpp to find out all posible paths in graph using adjustancy matrix.

    i need help-paths-png
    thas means graph shown in image if source is 1
    and destination is 3
    then paths are:
    path 1:1-2-3
    path 2:1-4-3
    path 3:1-3

    thanks for help in advanced

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    https://cboard.cprogramming.com/cplu...uncements.html
    You need to show some effort.
    You can't just dump your assignment and expect complete code handed to you on a plate.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2017
    Posts
    2
    I want know just what algo will be suitable for do the code

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    Quote Originally Posted by premkoli View Post
    I want know just what algo will be suitable for do the code
    Odd, your first post began with "write a program" suggesting you were demanding far more than just an algorithm.

    Perhaps your tutor went through some of this during the lecture, before giving you the homework.
    After all, homework is normally a test of comprehension of the recently received material.

    Anyway, here's a free bone.
    Dijkstra's algorithm - Wikipedia

    FETCH!
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Tags for this Thread