1. Homepage
  2. Programming
  3. INFS 2042 Data Structures Advanced Assignment 2 - Contact Tracing

INFS 2042 Data Structures Advanced Assignment 2 - Contact Tracing

Engage in a Conversation
UniSAINFS 2042Data Structures AdvancedContact TracingJava

INFS 2042 Data Structures Advanced Assignment 2 – Contact Tracing CourseNana.COM

1. Introduction CourseNana.COM

To track and reduce the spread of a disease during an epidemic or pandemic situation it is critical that authorities and health experts can trace who has been in contact with whom, when the contact occurred and where. This is known as contact tracing. Efficiently searching potentially millions of people and where they have been will require an efficient way to store and navigate through the data. CourseNana.COM

In this assignment, you are tasked with building a basic contact tracing system. You must use your knowledge of data structures and search algorithms to efficiently store and process large quantities of contact tracing data. You are not restricted to the data structures and algorithms explored in this course. You may also make use of structures and algorithms from the Data Structures Essentials course. CourseNana.COM

2. Requirements CourseNana.COM

Your client has provided you with a strict set of system requirements that the program must meet. How you achieve those requirements and which algorithms or data structures you use are up to you. You must implement the program in Java using OpenJDK 11 or newer. You should also aim to make the program as efficient as possible. For example, exhaustively searching lists in nested loops would not be the most efficient implementation in many cases. CourseNana.COM

Generally, it is easier to design with optimisation in mind. When using the following data structures: Binary Search Tree, Self-Balancing Search Tree, Graph, Skip List, Blockchain, Hash Map, Hash Set etc. you must implement the data structure yourself. It is expected that a selection of these structures will be required to meet the client requirements as efficiently as possible. CourseNana.COM

You may use provided data structures in Java libraries (such as Linked List, Queue, Stack etc.) only if they are not a part of the content covered in this course to support the implementation of other structures and store data where necessary. Be wary of functions that are built into provided data structures, if you do use them ensure you consider their performance impact. CourseNana.COM

You are also required to provide supporting documentation, in this, you must explain each data structure you used, what they were used for and why. This includes cases where you have used Java’s built-in data structures. Consider your implementation in the context of a real contact tracing application. The data provided for this assignment, as described below, is for 40 people, with 80 visits to 6 locations. In a real application we likely have millions of people, with tens or hundreds of millions of visits to hundreds of thousands of locations. Your implementation should be efficient for storage and processing of large amounts of data. CourseNana.COM

Remember, it is not enough that your system implements the requirements, it must implement them efficiently. CourseNana.COM

2 CourseNana.COM

2.1 System Requirements CourseNana.COM

Below are a set of requirements for the operation of the program as provided by your client. CourseNana.COM

  • The system administrator would like the ability to load existing data from the provided .csv files. The code to read the files is already provided by the client however they have not implemented a method CourseNana.COM

    to store the data. CourseNana.COM

  • In addition, public health officials need the ability to add a new Person, Location or Visit to the data. CourseNana.COM

    The client has provided the input command parsing code to support this however they have not CourseNana.COM

    implemented the functionality. CourseNana.COM

  • Public health officials need the ability to search for a Person by name. This should show them all details CourseNana.COM

    about the person. This includes listing all visits the Person has made. CourseNana.COM

o Hint: This would require an efficient means of searching for the Person and all Visits in which CourseNana.COM

the Person has visited any Location.
o If a startDate and endDate are provided, this should also filter the list of Visits to only include CourseNana.COM

those between these times.
Public health officials need the ability to search for a Location by name. This should show them all CourseNana.COM

details about the location. This includes listing all people that have visited the location.
o If a startDate and endDate are provided, this should also filter the list of Visits to only include CourseNana.COM

those between these times. CourseNana.COM

Public health officials also need the ability to specify if the person is a new Active Case (i.e., they have
CourseNana.COM

become infected with the virus).
o When an Active Case is added, they also need to see an estimation of where, when and from CourseNana.COM

whom the person likely contracted the virus. Your program should output the most likely contact source including the location and time of contact. Note: The most likely contact source is the pair of people with the highest Chance of Spread (C) as defined later in this document. CourseNana.COM

o If a new Active Case has no immediate contacts that are also an Active Case, the program should instead find the nearest or most likely Active Case. That is, the existing Active Case for which each contact between them and the new Active Case have the highest total Chance of Spread (C). CourseNana.COM

o Hint: This would require a method for identifying the person from which the visit during which the person most likely contracted the virus. CourseNana.COM

The public health officials would like to output a trace of the transmission of the virus from its original source to a target person. In this process this trace should ensure the date each person along the path was infected is correct by verifying the start date of their infection is the day after the contact with the highest Chance of Spread (C). In a ‘real world’ data set this would be useful for identifying different branches of the virus as it spreads and tracing the virus back to its original source. CourseNana.COM

o Hint: this would require a method for tracing the path through each person backwards from the given person until no previous source case can be found (in the provided data). CourseNana.COM

  • The public health officials would like to be able to produce a list of all active cases. CourseNana.COM

  • The program must be robust and user friendly, so it does not crash but print proper messages. CourseNana.COM

    3 CourseNana.COM

2.2 Supporting Documentation CourseNana.COM

You must provide a document to support your program design and demonstrate your program meets the requirements. This must include: CourseNana.COM

  • One-page summary of your program design and the reasoning behind your design decision.
    Explain all data structures and algorithms you used, what they were used for, and your reasoning for selecting them. (e.g., estimate of overall performance, space and time-efficiency)
    CourseNana.COM

  • Sample outputs from your program. (no page limit)
    This is to demonstrate that your program meets the requirements. Provide headings to clarify what requirement does the provided sample output demonstrates.
    CourseNana.COM

    3. Data and Code CourseNana.COM

    For simplicity, a limited data set is provided. A person is only considered infectious if they are currently an active case and only the dates between which they are infections is recorded. All of the data is artificial data that has been procedurally generated. A person is only considered an active case if they have an activeStartDate, and they either don’t have an activeEndDate or the activeEndDate is after the “current date”. CourseNana.COM

    3.1 Provided Data Format CourseNana.COM

    The data in the provided CSV files are structured as follows: CourseNana.COM

  • Person.csv – A list of people where each person has: CourseNana.COM

    o name
    § The person’s full name, or the purposes of this assignment you can assume the CourseNana.COM

    person’s full name is unique within the data set o activeStartDate CourseNana.COM

    § The date after the person is estimated to have contracted the virus the virus (empty if they have not contracted the virus) CourseNana.COM

    o activeEndDate
    § The date the person stopped being contagious (or is estimated to stop if after the CourseNana.COM

    “current date”). CourseNana.COM

  • o date
    § Dateofthevisit CourseNana.COM

    o entryTime
    § Timethepersonenteredthelocation CourseNana.COM

    o exitTime
    § Timethepersonexitedthelocation CourseNana.COM

    4 CourseNana.COM

3.2 Provided Code CourseNana.COM

The client has provided the basic interface commands they wish to use to handle the data. You are free to add commands for your testing purposes if you wish, however you must keep the commands listed here the same. The provided base code handles the parsing of these commands and provides some supporting types and functions. It is recommended that you retain the command functionality and build upon it, however you are free to modify the base code however you want/need to meet the requirements. See testfiles/test.txt in the provided code for a set of example commands. CourseNana.COM

The program is configured with an artificial “CURRENT_DATE” variable that relates to the provided data files. You should use whenever referring to the current date. This is configured by an initialization command in the test files. CourseNana.COM

For simplicity, a limited data set is provided. A person is only considered infectious if they are currently an active case and only the dates between which they are infections is recorded. All of the data is artificial data that has been procedurally generated. A person is only considered an active case if they have an activeStartDate, and they either don’t have an activeEndDate or the activeEndDate is after the “current date”. CourseNana.COM

Command INIT CourseNana.COM

LOAD_DATA CourseNana.COM

ADD_PERSON ADD_LOCATION CourseNana.COM

Purpose
Initializes the program and sets the artificial CURRENT_DATE
Loads data from the
People, Locations and
files
Adds a new person
CourseNana.COM

Adds a new location CourseNana.COM

Parameters
currentDate – the artificial current date for the program
peoplePath – path to people csv locationPath – path to location csv
visitPath – path to visit csv
personName – name of the person to add
CourseNana.COM

locationName – name of the location to add CourseNana.COM

provided CourseNana.COM

ADD_VISIT CourseNana.COM

Adds a new visit CourseNana.COM

personName – name of the person locationName – name of the location date – date of the visit
entryTime – time visit started exitTime – time visit ended
CourseNana.COM

GET_PERSON CourseNana.COM

Finds the Person by name and lists all visits (or a filtered list of visits between startDate and endDate) CourseNana.COM

personName – name of the person to get startDate (optional) – filter visit list by this start time
endDate (optional) – filter visit list by this end time
CourseNana.COM

GET_LOCATION CourseNana.COM

Finds the Location by name and lists all visits (or a filtered list of visits between startDate and endDate) CourseNana.COM

locationName – name of the location to get startDate (optional) – filter visit list by this start time
endDate (optional) – filter visit list by this end time
CourseNana.COM

LIST_CONTACTS CourseNana.COM

Finds the Person by name and lists all contacts within (n) contacts of the given person. i.e. n=1 is direct contact, n=2 is contact with an n=1 contact ... n=N is contact with an n=N-1 contact. CourseNana.COM

personName – person to get contacts of n – number of levels of contact CourseNana.COM

CURRENTLY_ACTIVE CourseNana.COM

Lists all currently active people. 5 CourseNana.COM

NEW_CASE CourseNana.COM

Sets the given Person to now be an active case and the date and time they tested positive. Also outputs the most likely infection source for the target and updates the activeStartDate for the person (1 day after the contact took place), if no viable contact is detected, sets the activeStartDate to the CURRENT_DATE variable in DateHelpers. CourseNana.COM

personName – name of the person to make a new case CourseNana.COM

TRACE_PATH Traces the path that the virus personName – name of the person to trace travelled from person to person the vius transmission for CourseNana.COM

until it reaches the target. CourseNana.COM

3.3 Calculating the Chance of Spread CourseNana.COM

For this assignment, we have an imaginary virus that has a high chance of spreading and becomes detectable and contagious the following day. That is. if John is detected as an active case on 5/1/2021, they must have caught the virus some day before 5/1/2021 CourseNana.COM

For this virus the chance of contact between an active case and another person resulting in a spread to that person is based on the overlap in time spent by two people at a given location, the time since the active case contracted the virus and the incubation time. The chance is the percentage of one hour spent in contact (in the same location). CourseNana.COM

Let D be the time spent by two people in the same location (in minutes) The Chance of Spread (C) is: CourseNana.COM

𝐶=#! ×100' "# CourseNana.COM

Note that C cannot be less than 0% or greater than 100%. CourseNana.COM

3.4 Running the Provided Code CourseNana.COM

To run the provided code you will need to pass it the path to the test file as a program argument through the “Run Configuration” in eclipse. The default included test file is at the relative location “testfiles/test.txt”. Throughout development it may help to create your own test files and data sets that you can use to help with implementation of specific functions. If you are using your own test file, make sure you update the “Arguments” under the “Run Configuration” in eclipse. Note that a different test file may be used for marking. CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
UniSA代写,INFS 2042代写,Data Structures Advanced代写,Contact Tracing代写,Java代写,UniSA代编,INFS 2042代编,Data Structures Advanced代编,Contact Tracing代编,Java代编,UniSA代考,INFS 2042代考,Data Structures Advanced代考,Contact Tracing代考,Java代考,UniSAhelp,INFS 2042help,Data Structures Advancedhelp,Contact Tracinghelp,Javahelp,UniSA作业代写,INFS 2042作业代写,Data Structures Advanced作业代写,Contact Tracing作业代写,Java作业代写,UniSA编程代写,INFS 2042编程代写,Data Structures Advanced编程代写,Contact Tracing编程代写,Java编程代写,UniSAprogramming help,INFS 2042programming help,Data Structures Advancedprogramming help,Contact Tracingprogramming help,Javaprogramming help,UniSAassignment help,INFS 2042assignment help,Data Structures Advancedassignment help,Contact Tracingassignment help,Javaassignment help,UniSAsolution,INFS 2042solution,Data Structures Advancedsolution,Contact Tracingsolution,Javasolution,