Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to write a program in java that can convert a linked list (which its content taken from text file) to adjacency list depend on

How to write a program in java that can convert a linked list (which its content taken from text file) to adjacency list depend on the ID of the course and prerequisite then making a directed graph.
image text in transcribed
This how the text file looks like which contains
ID,course name,prerequisite,hours
I stored each course content into a linked list but what can I do now ? How to represent it into a direct graph?
0817208, Intro. to statistics and Probability theory,0817111,3 0911210,0bject oriented Prog ,0911120,3 0911211, Data structure,0911120,3 0912212, Technical Reports,0912111,3 0913213,Digital Hardware,0913121,3 0914214, Com. & Network Fund,0911110,3 0817301,Discrete Math, 0817208,3 0911220,0bject oriented Prog (2),0911210,3

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_2

Step: 3

blur-text-image_3

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

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions