Goal Find Node Value 288 Print Path Root Task 1 Please Use Bfs Find Path Implement Method Q34802435

Question

The goal of you is to find node with value 288 and print thepath from root.

Task 1: Please use the BFS to find the path.You should implementthe method in binaryTree.java class,and test the method intest.java class

Task 2: Please use the DFS to find the path.You should implementthe method in binaryTree.java class,and test the method intest.java class

Test.java

package uninformed_search;
/*
* AI: uninformed search
*
*
*/

import java.util.Random;

public class test {
  
   public static void main(String[] args)
{   

/* Creating object of BST */
binaryTree bst = new

Leave a Comment