top of page

CEG-7450-01- Packet Routing - Part I. Least Cost Path Routing Java Solution

Updated: Sep 4

Are you working on the Packet Routing lab assignment for Wright State University and need help understanding or implementing the solution? You are in the right place.


This lab focuses on Least Cost Path Routing using Java. You are required to determine all the nodes that must appear on every shortest path from the source node to the destination in a directed weighted graph. With large input sizes and a strict time constraint, it tests your grasp on algorithms like Dijkstra’s algorithm, graph traversal, and performance optimization.


We Offer:


  • Complete Java solution for this assignment

  • Assistance with code explanation and walkthroughs

  • Help in writing the report, including algorithm design, pseudo code, and time complexity analysis


Assignment Requirements:


Packet Routing


Total points: 50 (this lab is optional; completing it will give you extra credits)


Warning: Students are members of a learning community committed to the search for knowledge and truth. Essential to that search is the faithful adherence by all students to the highest standards of honesty and integrity. A grade of “0” or “F” will be assigned to assignments on which cheating, plagiarism, or any other form of academic dishonesty is committed or determined to have occurred. Using source code for your assignments from anywhere is considered plagiarism/cheating and is therefore prohibited. For details, see the Wright State University Student Handbook under “Academic Dishonesty”.


You must not attempt to get help from external sources such as online sites that offer solutions. Any submission for grading must be your own work. You must not copy from others or allow your work to be copied. We will check for similarities in code. Any violation will result in your receiving zero for this assignment. No exceptions.


This project needs to be completed using Java and is an individual project. Naming of your programs must strictly follow the following convention: (1) one file for each part; (2) Lab4 followed by your Uid and I for part I (for example Lab4U00998499I.java). Upload only your source code (one file for each part) and report to the Pilot dropbox.


Your report must adequately describe your solutions, such as algorithm, pseudo code, implementation, time complexity, etc.


The solution's time complexity for this lab is an important consideration in grading. Therefore, you should use proper data structures and implement your solutions carefully. Test cases will exercise your programs thoroughly. Your programs should efficiently handle potentially large problems. Expect that your program produces results for all test cases within 4-5 seconds.


Grading: report (20%) and test cases passed (80%).


Part I: Least Cost Path Routing


Packets in a network need to traverse a minimum-cost route. Design an algorithm to determine which nodes the packets will definitely visit if least cost path(s) are used. Note there may be multiple least cost paths.


Input Format:


Unlike previous labs, this lab reads input from the standard input. DO NOT use the Java keyword package in your program.


The first input line contains two integers n (1 <= n <= 10^5) and m (1 <= m <= 2x10^5): the number of nodes and the number of links. The nodes are numbered 1, 2, …, n. Node 1 is the source, and node n is the destination. After this first line, there are m lines describing the links. Each line has three integers a, b, and c: there is a link from node a to node b with cost c. All links are directional. That is, a, b, c indicates that there is a link from a to b only, with a cost of c. In addition, 1 <= a, b <= n, 1 <= c <= 10^9. You may assume that there is a route from the source to the destination.


Output Format:


Unlike previous labs, the output is to the standard output. First print an integer k: the number of nodes that are certainly in the route. After this, print the k nodes sorted in increasing order.


Sample Input 1:


```

5 6

1 2 3

1 3 4

2 3 1

2 4 5

3 4 1

4 5 8

```


Sample Output 1:


```

4

1 3 4 5

```


Grading


Report (20%): Your report must adequately describe your solutions, such as algorithm, pseudo code, implementation, time complexity, etc.


Test Cases (80%): Your code will be tested using the case given in this handout and 13 test cases (not given to you). Passing a test case is defined as producing the correct output, and the output is produced within a few seconds (<5 seconds). Passing the case given in this handout is worth 7.5 points. Passing each of the 13 test cases is worth 2.5 points.


Need Plagiarism-Free and Manual Written Solution with 100% Accuracy?


📞 Call or WhatsApp: +91- 995 - 314 - 1035 (For quick response)


Solution Includes: AI reports + Turnitin plagiarism report (100% accurate and accepted)


3 Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
Diaz AL
Aug 07
Rated 5 out of 5 stars.

Got 100% score in my all ACN and AWN assignments even in other courses, Thank you very much. Personally recommend for all WSU students.

Like

Thank you sir....I scored a perfect 100% in the in my all all Java ACN and AWN assignments and that’s only because I took complete help from R K Gaur. While others in my class were depending on AI tools and barely managed 30-40% and retake the course, I got expert guidance every step of the way. From the Java code to the Dijkstra’s algorithm explanation and a perfectly written report, everything was delivered with clarity, accuracy and professionalism. AI may give you generic answers, but R K Gaur gives you results. He is not just good, he is just a true pro if you find him by the grace of GOD, who knows exactly what the course demands. Don't want to say more..…

Like
Replying to

This is Pushpa I have already taken my entire Masters courses from Anderson University and in every subject I got 95+ which is very difficult to achieve from any expert, but same I got help here, Thank you sir, do you remember me? Pushpa here.. now doing additional expertise..Thank you sir ji ,, in future sure I will need guidance and help from you...

Edited
Like
bottom of page