Please help me with these C++ program questions

  1. Write C++ program to create directed-weighted-graph data structure using adjacency list (use link-list). Insert 1000 vertexes, use random function to insert edge direction and weight.
    a. Case-A: Sparse graph, insert 200 x 200 weighted edges
    b. Case-B: Dense Graph, insert 700 x 700 weighted edges
    c. Case-C: Complete graph, insert 1000 x 1000 weighted edges
    d. Test each Case- A, B, and C by counting the total number of edges, and print the correct total edges from above cases, separately.

  2. To extend above Task 2, write C++ program (functions) for graph shortest path algorithms. Implement Dijkstra and Bellman–Ford algorithms. Do comparative analysis of both algorithms by using Task 2.
    a. For analysis of each Case- A, B, and C, you need to compute the total time (seconds) consumed by each algorithm. Use time.h to calculate the time.
    b. In each Case- A, B, and C, search all possible paths for each vertex to all other vertexes from graph.
    c. You should compare both algorithms for each Case- A, B, and C, separately.

Thank you!!!

Firstly, welcome to the forums.

While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too.

With your current questions, we don’t have enough context to know what you already know or don’t know, so it is impossible to guide you without just telling you the answer (which we won’t do).

It is pretty typical on here for people to share a codepen / repl.it / jsfiddle example of what they have tried so that anyone helping has more of an idea of what help is actually helpful.

Please provide some example of what you’ve tried and I’m sure you’ll get more help.

Happy coding :slight_smile: