22BCE7873 ASG9
22BCE7873 ASG9
ASSIGNMENT NUMBER 09
DATE 23-03-2025
CODE:
import java.util.Scanner;
scanner.close();
}
}
OUTPUT:
Enter the number of keys: 3
Enter the keys:
10 12 20
Enter the frequencies of the keys:
34 8 50
Cost of Optimal Binary Search Tree is: 142
...Program finished with exit code 0
3
—-------------------------------------------------THE END--------------------------------------------------------------