Question: creates an adjacency linkedList from a text file using BreathFirstSearch and DeapthFirstSearch Using Java: --- Roster --- Student (Kathryn, 24.1, 36104) has friends: (Christine, 23.9,

creates an adjacency linkedList from a text file using BreathFirstSearch and DeapthFirstSearch Using Java:

--- Roster --- Student (Kathryn, 24.1, 36104) has friends: (Christine, 23.9, 49801) (Max, 23.4, 28608) (Timothy, 23.8, 96813) (Ivianni, 23.5, 13301) Student (Christine, 23.9, 49801) has friends: (Kathryn, 24.1, 36104) (Max, 23.4, 28608) (Brijian, 23.7, 62701) (Jose, 23.6, 55102) Student (Timothy, 23.8, 96813) has friends: (Kathryn, 24.1, 36104) (Brijian, 23.7, 62701) Student (Brijian, 23.7, 62701) has friends: (Christine, 23.9, 49801) (Timothy, 23.8, 96813) Student (Jose, 23.6, 55102) has friends: (Christine, 23.9, 49801) (Antoni, 23.2, 73102) Student (Ivianni, 23.5, 13301) has friends: (Kathryn, 24.1, 36104) (Peter, 23.1, 10000) Student (Max, 23.4, 28608) has friends: (Kathryn, 24.1, 36104) (Christine, 23.9, 49801) (Francisco, 23.3, 87501) Student (Francisco, 23.3, 87501) has friends: (Max, 23.4, 28608) (Antoni, 23.2, 73102) Student (Antoni, 23.2, 73102) has friends: (Jose, 23.6, 55102) (Francisco, 23.3, 87501) Student (Peter, 23.1, 10000) has friends: (Ivianni, 23.5, 13301)

Output:

--- Breadth First Search --- visit: (Kathryn, 24.1, 36104) visit: (Christine, 23.9, 49801) visit: (Max, 23.4, 28608) visit: (Timothy, 23.8, 96813) visit: (Ivianni, 23.5, 13301) visit: (Brijian, 23.7, 62701) visit: (Jose, 23.6, 55102) visit: (Francisco, 23.3, 87501) visit: (Peter, 23.1, 10000) visit: (Antoni, 23.2, 73102)

--- Depth First Search --- visit: (Kathryn, 24.1, 36104) visit: (Christine, 23.9, 49801) visit: (Max, 23.4, 28608) visit: (Francisco, 23.3, 87501) visit: (Antoni, 23.2, 73102) visit: (Jose, 23.6, 55102) visit: (Brijian, 23.7, 62701) visit: (Timothy, 23.8, 96813) visit: (Ivianni, 23.5, 13301) visit: (Peter, 23.1, 10000)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!