1. Homepage
  2. Homework
  3. Computer Science 320SC – (2022) Assignment3: Congested Networks
This question has been solved

Computer Science 320SC – (2022) Assignment3: Congested Networks

Engage in a Conversation
320SCCongested Networks

Computer Science 320SC – (2022) CourseNana.COM

Assignment 3 CourseNana.COM

Due: Monday, September 5th CourseNana.COM

Congested Networks (part 1) CourseNana.COM


CourseNana.COM


CourseNana.COM

Given a connected computer network (bidirectional communication) we want to find two different nodes u and v such that we can maximize the congestion between u and v with a continuously sent virus being sent between the pair. CourseNana.COM

We define the congestion level as the maximum number of edge-disjoint paths between nodes u and v. For example, the network shown in the following figure has three different paths between nodes 0 and 6 such that each edge is only part of one of the paths. Note that two paths are allowed to go through the same node, such as node 7. No other pair of nodes has a higher congestion level. CourseNana.COM


CourseNana.COM

CourseNana.COM

CourseNana.COM

We have two test cases (easy and harder) for marking on the automarker, worth 1 and 2 marks, respectively. CourseNana.COM


CourseNana.COM


CourseNana.COM

Input Specification CourseNana.COM

We will be given a sequence of connected computer networks each with n nodes, n 40, labeled {0,1,...,n 1}. The last input case will be followed by a network of n = 0 nodes, which should not be processed. CourseNana.COM

The specification for a computer network will be as follows: the first line contains a single non-negative value n, denoting the number of nodes. This is then followed by n lines of integers, separated by spaces, denoting the neighbors (zero indexed) of each node. Expect up to 2000 test cases. CourseNana.COM

Output Specification CourseNana.COM

For each input case output one integer on a line by itself denoting the maximum congestion level possible for some pair of its network nodes CourseNana.COM


CourseNana.COM

Sample Input Output for Sample Input                                            Output for Sample Input CourseNana.COM

8                                                                                                                           3 CourseNana.COM

457                                                                                                                     2 CourseNana.COM

56 CourseNana.COM

67 CourseNana.COM

7 CourseNana.COM

07 CourseNana.COM

01 CourseNana.COM

127 CourseNana.COM

02346 CourseNana.COM

4 CourseNana.COM

12 CourseNana.COM

02 CourseNana.COM

301 CourseNana.COM

2 CourseNana.COM

0 CourseNana.COM


CourseNana.COM


CourseNana.COM

Congested Networks (part 2) CourseNana.COM

We extend the problem of the previous section to the case were we want to count only vertex-disjoint paths as a measure of congestion. For this case, the two paths through node 7 of the previous example are not allowed. However, there does exist another pair of nodes (e.g. 6 and 7) that do have three vertex-disjoint paths between them. The input and output specifications are the same as before. This problem will have two test cases on the automarker: an easy set with unlimited submissions allowed (0 marks) and a harder set (2 marks). CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
320SC代写,Congested Networks代写,320SC代编,Congested Networks代编,320SC代考,Congested Networks代考,320SChelp,Congested Networkshelp,320SC作业代写,Congested Networks作业代写,320SC编程代写,Congested Networks编程代写,320SCprogramming help,Congested Networksprogramming help,320SCassignment help,Congested Networksassignment help,320SCsolution,Congested Networkssolution,