Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortest and Cheapest path Home [C Programming] #11

Open
rishitc opened this issue Oct 16, 2019 · 0 comments
Open

Shortest and Cheapest path Home [C Programming] #11

rishitc opened this issue Oct 16, 2019 · 0 comments
Labels
enhancement New feature or request Hacktoberfest help wanted Extra attention is needed

Comments

@rishitc
Copy link
Owner

rishitc commented Oct 16, 2019

Write a C program, to help ship packages to their destination using the shortest path algorithm and greedy algorithms:

  • The input to the program will be a .csv file, which should look as follows:
Name of Item Value of Item (Value from 0-100) Source Destination
Duffle Bag 90 New York London
  • Use graphs for representing the nodes/cities and the connections and prices for transit between them
    • The graph edges must be randomly generated
    • The nodes themselves can be static/fixed in the program
    • The weight/price of the edge must also be randomly generated
  • Maximum of 10 items are allowed in this problem
    • Names of cities or items need not be real A, B, C... or 1, 2, 3 is enough
  • Use a priority queue to ship out packages with higher value first
  • Make sure that the total distance travelled for shipping all the packages and the total cost spent on shipping them is minimised.
@rishitc rishitc added enhancement New feature or request help wanted Extra attention is needed Hacktoberfest labels Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant