Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this question you will be asked to write java code that allows you to read two CSV files that represent the problem in the

In this question you will be asked to write java code that allows you to read two CSV files that represent the problem in the previous question. More specifically, you are given two files. One file is "libraries.csv", which has a list of the library names that you need to install, which looks like this (see example attached): library NumPy SciPy Pandas Matplotlib TensorFlow libraries.csv Note that "library" is simply the column name (in this case there is only one column). This specific file simply means that you need to install 5 libraries: NumPy, SciPu, ... etc. The second file, "dependencies.csv", contains the dependencies between the libraries that need to be installed, which looks like this: dependentLibrary,neededLibrary TensorFlow,SciPy Matplotlib,NumPy Pandas,SciPy TensorFlow,Matplotlib Matplotlib,Pandas dependencies.csv The first column indicates the dependent library, while the second column is the needed library. In this example, you will need to install Scipy before installing TensorFlow, and install NumPy before installing Matplotlip, ...etc. You need to write an efficient java program that: read both library.csv and dependencies files implement function "getNumberOfDepencies(String libraryName)" which returns how many times a particular library was needed implement function "dependencyExists( Dependency depend )" which returns whether a dependency relationship exists. You will need to modify the Dependency class (attached) so you can use it as a hashtable key Dependency.java Note that your code need to be generic enough to work with bigger libraries.csv and dependencies.csv files and need to be as efficient as possible when it comes to complexity.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions