Question: Collider.javaCollider.java With the dimensional connections mapped out via our separate chaining hash table, we can use this to create a final Adjacency List in order
Collider.javaCollider.java
With the dimensional connections mapped out via our separate chaining hash table, we can use this to create a final Adjacency List in order to more efficiently
navigate the SpiderVerse and track down anomalies.
This Java class will take three command line arguments in the following order: an dimensions list input file name, a spiderverse input file name, and an
output file name.
The dimensions input file will be formatted the same as above.
The spiderverse input file will be formatted as follows:
An integer the number of people in the file
lines, each with
The dimension this person is currently at an integer
The name of the person a String
The dimensional signature of the person an integer
With the clusters being completed, you and Miles need to represent these connections between each Dimension as an adjacency list showing
undirected links.
Let the first Dimension in a cluster be linked to every Dimension in its cluster and have a link going back to represent it being undirected. More
formally, in the adjacency list there must exist an edge from first and first for each dimension appearing in a cluster starting at first.
So edges exist from and and dotsdotsdotsdots, and where is the last dimension in the
cluster
Insert people from the Spiderverse input file in
With the dimensional connections mapped out via our separate chaining hash table, we can use this to create a final Adjacency List in order to more efficiently
navigate the SpiderVerse and track down anomalies.
This Java class will take three command line arguments in the following order: an dimensions list input file name, a spiderverse input file name, and an
output file name.
The dimensions input file will be formatted the same as above.
The spiderverse input file will be formatted as follows:
An integer the number of people in the file
lines, each with
The dimension this person is currently at an integer
The name of the person a String
The dimensional signature of the person an integer
With the clusters being completed, you and Miles need to represent these connections between each Dimension as an adjacency list showing
undirected links.
Let the first Dimension in a cluster be linked to every Dimension in its cluster and have a link going back to represent it being undirected. More
formally, in the adjacency list there must exist an edge from first and first for each dimension appearing in a cluster starting at first.
So edges exist from and and dotsdotsdotsdots, and where is the last dimension in the
cluster
Insert people from the Spiderverse input file into their corresponding dimensions. They belong to a dimension, they're not connected via edges.
The output file will be formatted as follows:
a lines, where each line starts with a dimension number, then lists all the dimensions linked to that dimension space separated
The order in which you output the lines DOES NOT MATTER for grading.
Compile command: javacd bin srcspidermanjava
Run command: java cp bin spiderman.Collider
dimension.in
spiderverse.in collider.out
Bellow is one example of a correct "collider.out" file obtained from running the Collider.java file with the command line arguments
dimension.in
spiderverse.in and "collider. out' in that order
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
